projects
/
henge
/
apc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
44adcae
)
link fixes
author
ken
<ken@mihrtec.com>
Fri, 16 Dec 2016 08:00:15 +0000
(
00:00
-0800)
committer
ken
<ken@mihrtec.com>
Fri, 16 Dec 2016 08:00:15 +0000
(
00:00
-0800)
src/apc.c
patch
|
blob
|
history
src/testapc.c
patch
|
blob
|
history
diff --git
a/src/apc.c
b/src/apc.c
index
2307ccc
..
a4ae543
100644
(file)
--- a/
src/apc.c
+++ b/
src/apc.c
@@
-19,7
+19,7
@@
#include <stdlib.h> //exit
#include <unistd.h> //getopt
/* Internal */
#include <stdlib.h> //exit
#include <unistd.h> //getopt
/* Internal */
-#include
<apc/parser.tab.h>
//bison
+#include
"parser.tab.h"
//bison
const char* cargs['Z'] = {0};
const char* cargs['Z'] = {0};
diff --git
a/src/testapc.c
b/src/testapc.c
index
77b825e
..
d55f97d
100644
(file)
--- a/
src/testapc.c
+++ b/
src/testapc.c
@@
-14,13
+14,13
@@
#include <stdlib.h> //exit
#include <unistd.h> //getopt
/* Internal */
#include <stdlib.h> //exit
#include <unistd.h> //getopt
/* Internal */
-#include
<apc/parser.tab.h>
//bison
-#include
<apc/ir.h>
//ir
+#include
"parser.tab.h"
//bison
+#include
"ir.h"
//ir
/* Import apc.c but redefine its primary symbols for jumping */
#define main apc_main
#define yyparse testapc_yyparse
/* Import apc.c but redefine its primary symbols for jumping */
#define main apc_main
#define yyparse testapc_yyparse
-#include
<bin/tools/apc.c>
+#include
"apc.c"
#undef yyparse
#undef main
#undef yyparse
#undef main
@@
-110,13
+110,10
@@
int test_yyparse
tok_string = $(T); \
tok_pattern[LOFFS] = C; \
break
tok_string = $(T); \
tok_pattern[LOFFS] = C; \
break
- { TOK_CASE(STR,'s');
- TOK_CASE(NAME,'s');
+ { TOK_CASE(NAME,'s');
TOK_CASE(REF,'x');
TOK_CASE(REF,'x');
- TOK_CASE(FPTR,'x');
TOK_CASE(NUM,'i');
TOK_CASE(SS,'i');
TOK_CASE(NUM,'i');
TOK_CASE(SS,'i');
- TOK_CASE(SSD,'i');
TOK_CASE(CLOPEN,'i');
TOK_CASE(CLCLOSE,'i');
default:
TOK_CASE(CLOPEN,'i');
TOK_CASE(CLCLOSE,'i');
default:
@@
-140,7
+137,9
@@
int test_yyparse
done:
printf(";\n" GREEN "Done" CLRC ".\n");
return 0;
done:
printf(";\n" GREEN "Done" CLRC ".\n");
return 0;
+#if 0
error:
printf(";\n" RED "FAILED" CLRC ".\n");
return -1;
error:
printf(";\n" RED "FAILED" CLRC ".\n");
return -1;
+#endif
}
}