projects
/
YACASL2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
公開のため、ファイルを整理
[YACASL2.git]
/
test
/
unit
/
TEMPLATE.c
1
#include <stdio.h>
2
#include "casl2.h"
3
#include "assemble.h"
4
#include "exec.h"
5
6
int main(){
7
int i;
8
WORD r;
9
char *str[] = {
10
"str0", "str1", "str2", "str3", "str4", "str5", "str6", ...
11
};
12
for(i = 0; i < sizeof(str)/sizeof(str[0]); i++) {
13
r = ##testfunc##(str[i]);
14
printf("%s\t0x%04x", str[i], r);
15
if(cerrno > 0) {
16
printf("\tError - %d\t%s", cerrno, cerrmsg);
17
freecerr();
18
}
19
printf("\n");
20
}
21
return 0;
22
}