aboutsummaryrefslogtreecommitdiffstats
path: root/z02.c
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-05-19 00:42:48 +0200
committerMatěj Cepl <mcepl@cepl.eu>2024-05-19 00:42:48 +0200
commiteb3942e15700f3f4f61b4e46917ae8fbe614e524 (patch)
treebe0c003fa8a0dead8d9dc921050ba13a56d1a9dd /z02.c
parent71d625f730d872791eef74d7999e1be28d5e5c7e (diff)
downloadlout-eb3942e15700f3f4f61b4e46917ae8fbe614e524.tar.gz
Lout 3.41.HEADmaster
http://jeffreykingston.id.au/lout/lout-3.41.tar.gz
Diffstat (limited to 'z02.c')
-rw-r--r--z02.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/z02.c b/z02.c
index 87576ff..6e3cf03 100644
--- a/z02.c
+++ b/z02.c
@@ -1,7 +1,7 @@
/*@z02.c:Lexical Analyser:Declarations@***************************************/
/* */
-/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.39) */
-/* COPYRIGHT (C) 1991, 2008 Jeffrey H. Kingston */
+/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.41) */
+/* COPYRIGHT (C) 1991, 2023 Jeffrey H. Kingston */
/* */
/* Jeffrey H. Kingston (jeff@it.usyd.edu.au) */
/* School of Information Technologies */
@@ -300,6 +300,7 @@ void LexPop(void)
/* setword(typ, res, file_pos, str, len) */
/* */
/* Set variable res to a WORD or QWORD token containing string str, etc. */
+/* Here str has length len, but will usually not be NULL-terminated. */
/* */
/*****************************************************************************/
@@ -629,7 +630,8 @@ OBJECT LexGetToken(void)
case LETTER:
col_num(file_pos) = (startpos = p-1) - startline;
- while( chtbl[*p++] == LETTER ); --p;
+ while( chtbl[*p++] == LETTER );
+ --p;
res = SearchSym(startpos, p - startpos);
MORE: if( res == nilobj )