10 /* "IOTEST START\n", */
12 " OUT OBUF2,OLEN2 ;comment\n",
13 " OUT OBUF1,OLEN1 \n",
14 " OUT OBUF1,OLEN1 \n",
15 " OUT OBUF2,OLEN2 \n",
16 " OUT OBUF1, OLEN1 \n",
23 CMDLINE *testcl = malloc(sizeof(CMDLINE));
25 for(i = 0; i < sizeof testline /sizeof testline[0]; i++) {
26 cerr_init(); /* エラーの初期化 */
27 printf("%d: %s", i, testline[i]);
28 testcl = linetok(testline[i]);
32 if(testcl->label != NULL){
33 printf("cl->label: %s\n", testcl->label);
35 if(testcl->cmd != NULL){
36 printf("cl->cmd: %s\n", testcl->cmd);
37 printf("cl->opdc: %d\n", testcl->opd->opdc);
38 for(j = 0; j < testcl->opd->opdc; j++) {
39 printf("cl->opdv[%d]: %s\n", j, testcl->opd->opdv[j]);
44 printf("\terror - %d: %s\n", cerr->num, cerr->msg);