Increase line lengths for listing and line parser.
authorggn <ggn.dbug@gmail.com>
Sat, 6 May 2017 15:00:34 +0000 (18:00 +0300)
committerShamus Hammons <jlhamm@acm.org>
Sat, 6 May 2017 18:07:07 +0000 (13:07 -0500)
listing.h
symbol.c
token.h

index dbc49c57b4720a52935db8e0c531c0ac98674647..d87e1fccf6d8d48b5d4dc6937965484e89762a7e 100644 (file)
--- a/listing.h
+++ b/listing.h
@@ -13,8 +13,8 @@
 #include "rmac.h"
 
 #define BOT_MAR         1                              // #blank lines on bottom of page
-#define IMAGESIZ        200                            // Max size of a line of text
-#define TITLESIZ        200                            // Max size of a title
+#define IMAGESIZ        1024                   // Max size of a line of text
+#define TITLESIZ        1024                   // Max size of a title
 #define LN_COL          0                              // Column for line numbers
 #define LOC_COL         7                              // Location ptr
 #define DATA_COL        17                             // Data start (for 20 chars, usually 16)
index b89cd8091587571de30190d93d932a025fe6ce36..8828cbe7e5f6e47c8f854f4c7c6f2a7b3b43def6 100644 (file)
--- a/symbol.c
+++ b/symbol.c
@@ -390,8 +390,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;
diff --git a/token.h b/token.h
index 9adabefa06c93b46ccb8dff2e722fd7b75ecc26d..f8f0d9af9014023602f4cbb179204e68d745b2ee 100644 (file)
--- a/token.h
+++ b/token.h
@@ -25,7 +25,7 @@
 #define IFENT           struct _ifent
 
 // Tunable definitions
-#define LNSIZ           256                                    // Maximum size of a line of text
+#define LNSIZ           1024                           // Maximum size of a line of text
 #define TOKBUFSIZE      400                                    // Size of token-line buffer
 #define QUANTUM         4096L                          // # bytes to eat at a time from a file
 #define LNBUFSIZ        (QUANTUM*2)                    // Size of file's buffer