]> Shamusworld >> Repos - rmac/blobdiff - symbol.c
Multiple fixes for 020+ mode, including:
[rmac] / symbol.c
index f2f513cc3671aa0ca652d7be9f300c40fd8281d4..6700f149968511a9a707660f03a9ab01ff4241af 100644 (file)
--- a/symbol.c
+++ b/symbol.c
@@ -1,7 +1,7 @@
 //
-// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
+// RMAC - Reboot's Macro Assembler for all Atari computers
 // SYMBOL.C - Symbol Handling
-// Copyright (C) 199x Landon Dyer, 2011-2012 Reboot and Friends
+// Copyright (C) 199x Landon Dyer, 2011-2017 Reboot and Friends
 // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
 // Source utilised with the kind permission of Landon Dyer
 //
@@ -382,7 +382,6 @@ void ToUppercase(uint8_t * s)
 //
 int symtable(void)
 {
-       extern int pagelen;
        int i;
        int j;
        SYM * q = NULL;
@@ -390,8 +389,8 @@ int symtable(void)
        SYM * r;
        SYM * k;
        SYM * colptr[4];
-       char ln[200];
-       char ln1[200];
+       char ln[1024];
+       char ln1[1024];
        char ln2[20];
        char c, c1;
        WORD w;
@@ -400,7 +399,7 @@ int symtable(void)
 
        // Allocate storage for list headers and partition all labels. Throw away
        // macros and macro arguments.
-       SYM ** sy = (SYM **)malloc(128 * sizeof(uint32_t));
+       SYM ** sy = (SYM **)malloc(128 * sizeof(SYM **));
 
        for(i=0; i<128; i++)
                sy[i] = NULL;