| 412 | } |
| 413 | |
| 414 | static void ssiWriteCommand(si_link l, command D) |
| 415 | { |
| 416 | ssiInfo *d=(ssiInfo*)l->data; |
| 417 | // syntax: <num ops> <operation> <op1> <op2> .... |
| 418 | fprintf(d->f_write,"%d %d ",D->argc,D->op); |
| 419 | if (D->argc >0) ssiWrite(l, &(D->arg1)); |
| 420 | if (D->argc < 4) |
| 421 | { |
| 422 | if (D->argc >1) ssiWrite(l, &(D->arg2)); |
| 423 | if (D->argc >2) ssiWrite(l, &(D->arg3)); |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | static void ssiWriteProc(const ssiInfo *d,procinfov p) |
| 428 | { |