Mercurial > hg > Members > kono > os9 > sbc09
diff os9/mc09/mc.c @ 100:990add11e9f8
add micro-c stuff
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 27 Dec 2018 11:49:54 +0900 |
parents | 92ed427b7f7d |
children | 15569aa4098e |
line wrap: on
line diff
--- a/os9/mc09/mc.c Thu Dec 27 11:01:16 2018 +0900 +++ b/os9/mc09/mc.c Thu Dec 27 11:49:54 2018 +0900 @@ -5,6 +5,10 @@ */ #include <stdio.h> +/* to avoid conflict with stdio.h */ +#define getline getline1 +#define index index1 + #define INT (-1) #define CHAR (-2) #define UNSIGNED (-3) @@ -235,7 +239,7 @@ fprintf(stderr, "Total global variables : %u bytes.\n\n",gpc); printf("_%d\tRTS\n_INITIALIZE\tEQU\t_1\n",ilabel); - printf("_GLOBALS\tEQU\t%u\n\tEND\n",gpc); + printf("_GLOBALS\tEQU\t%u\n",gpc); exit(0); } fprintf(stderr,"%5d:%s.\n",lineno,