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
/
cmd.c
diff --git
a/test/unit/linetok/cmd.c
b/test/unit/linetok/cmd.c
index
28555cd
..
854f565
100644
(file)
--- a/
test/unit/linetok/cmd.c
+++ b/
test/unit/linetok/cmd.c
@@
-1,7
+1,8
@@
#include <stdio.h>
#include <stdio.h>
-#include <malloc.h>
-#include "casl2.h"
#include "assemble.h"
#include "assemble.h"
+#include "cmem.h"
+#include "cerr.h"
+#include "word.h"
int main(){
int i, j;
int main(){
int i, j;
@@
-19,8
+20,8
@@
int main(){
};
CMDLINE *testcl = malloc(sizeof(CMDLINE));
};
CMDLINE *testcl = malloc(sizeof(CMDLINE));
- cerr
= malloc_chk(sizeof(CERR), "cerr"
); /* エラーの初期化 */
- addcerrlist_
assemble
();
+ cerr
_init(
); /* エラーの初期化 */
+ addcerrlist_
tok
();
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]);