X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=compile.c;h=f8b1167b667a279867c587054b57abd989a89262;hb=924157fa9f3dd5c62a4a9c7d9621aae9d8a418d3;hp=9ffaf4c44924bba71e0bfe475dc8311e1524ca6d;hpb=fd10d380df6804dca3b19ea68dc32df2de6090bd;p=open-adventure.git diff --git a/compile.c b/compile.c index 9ffaf4c..f8b1167 100644 --- a/compile.c +++ b/compile.c @@ -22,11 +22,11 @@ const char advent_to_ascii[] = {0, 32, 33, 34, 39, 40, 41, 42, 43, 44, 45, 46, 6 const char ascii_to_advent[] = {0, 74, 75, 76, 77, 78, 79, 80, 81, 82, 0, 0, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 0, 1, 2, 106, 107, 63, 108, 3, 4, 5, 6, 7, 8, 9, 10, 109, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 110, 111, 112, 113, 114, 115, 116, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 117, 118, 119, 120, 121, 122, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 123, 124, 125, 126, 83}; // Global variables for use in functions below that can gradually disappear as code is cleaned up -long LNLENG; -long LNPOSN; -char INLINE[LINESIZE+1]; -long NEWLOC; -long OLDLOC; +static long LNLENG; +static long LNPOSN; +static char INLINE[LINESIZE+1]; +static long NEWLOC; +static long OLDLOC; // Storage for what comes out of the database long LINUSE; @@ -550,7 +550,7 @@ void write_files(FILE* c_file, FILE* header_file) fprintf(header_file, "#define RTXSIZ 277\n"); fprintf(header_file, "#define CLSMAX 12\n"); fprintf(header_file, "#define LOCSIZ 185\n"); - fprintf(header_file, "#define LINSIZ 12500\n"); + fprintf(header_file, "#define LINSIZ %d\n", LINSIZ); fprintf(header_file, "#define TRNSIZ 5\n"); fprintf(header_file, "#define TABSIZ 330\n"); fprintf(header_file, "#define VRBSIZ 35\n");