From 03eb5a53e1990094c317c12d496245d8b472333c Mon Sep 17 00:00:00 2001 From: ggn Date: Sat, 6 May 2017 18:00:34 +0300 Subject: [PATCH] Increase line lengths for listing and line parser. --- listing.h | 4 ++-- symbol.c | 4 ++-- token.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/listing.h b/listing.h index dbc49c5..d87e1fc 100644 --- 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) diff --git a/symbol.c b/symbol.c index b89cd80..8828cbe 100644 --- 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 9adabef..f8f0d9a 100644 --- 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 -- 2.37.2