projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ドキュメントを整理
[YACASL2.git]
/
test
/
unit
/
linetok
/
linetok.c
diff --git
a/test/unit/linetok/linetok.c
b/test/unit/linetok/linetok.c
index
a4ea173
..
28555cd
100644
(file)
--- a/
test/unit/linetok/linetok.c
+++ b/
test/unit/linetok/linetok.c
@@
-17,8
+17,10
@@
int main(){
"\n",
" ;comment\n"
};
"\n",
" ;comment\n"
};
+
CMDLINE *testcl = malloc(sizeof(CMDLINE));
CMDLINE *testcl = malloc(sizeof(CMDLINE));
-
+ cerr = malloc_chk(sizeof(CERR), "cerr"); /* エラーの初期化 */
+ addcerrlist_assemble();
for(i = 0; i < sizeof testline /sizeof testline[0]; i++) {
printf("%d: %s", i, testline[i]);
testcl = linetok(testline[i]);
for(i = 0; i < sizeof testline /sizeof testline[0]; i++) {
printf("%d: %s", i, testline[i]);
testcl = linetok(testline[i]);
@@
-36,11
+38,11
@@
int main(){
}
}
}
}
}
}
- if(cerrno != 0) {
- printf("\terror - %d: %s\n", cerrno, cerrmsg);
- freecerr();
+ if(cerr->num != 0) {
+ printf("\terror - %d: %s\n", cerr->num, cerr->msg);
}
printf("\n");
}
}
printf("\n");
}
+ freecerr();
return 0;
}
return 0;
}