11 " OUT OBUF2,OLEN2 ;comment\n",
12 " OUT OBUF1,OLEN1 \n",
13 " OUT OBUF1,OLEN1 \n",
14 " OUT OBUF2,OLEN2 \n",
15 " OUT OBUF1, OLEN1 \n",
21 CMDLINE *testcl = malloc(sizeof(CMDLINE));
22 cerr = malloc_chk(sizeof(CERR), "cerr"); /* エラーの初期化 */
23 addcerrlist_assemble();
24 for(i = 0; i < sizeof testline /sizeof testline[0]; i++) {
25 printf("%d: %s", i, testline[i]);
26 testcl = linetok(testline[i]);
30 if(testcl->label != NULL){
31 printf("cl->label: %s\n", testcl->label);
33 if(testcl->cmd != NULL){
34 printf("cl->cmd: %s\n", testcl->cmd);
35 printf("cl->opdc: %d\n", testcl->opd->opdc);
36 for(j = 0; j < testcl->opd->opdc; j++) {
37 printf("cl->opdv[%d]: %s\n", j, testcl->opd->opdv[j]);
42 printf("\terror - %d: %s\n", cerr->num, cerr->msg);