summaryrefslogtreecommitdiffstats
path: root/parser.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-18 23:02:59 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-18 23:02:59 -0800
commit61abd16ff59debebdacfe0de5050070b5dde46ee (patch)
tree2121409ef6d878412a9ecb71cf6134b1a6974ef3 /parser.h
parent9eddf1e4e0482ca8db81fcc4411fadd01190476c (diff)
downloadtxr-61abd16ff59debebdacfe0de5050070b5dde46ee.tar.gz
txr-61abd16ff59debebdacfe0de5050070b5dde46ee.tar.bz2
txr-61abd16ff59debebdacfe0de5050070b5dde46ee.zip
Following-up on diagnostics obtained by running code through C++
compiler. Idea: allocator functions return char * instead of void *, like malloc did in classic pre-ANSI C. That way we are forced to use a cast except when the target pointer is char * already.
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.h b/parser.h
index 85f0f582..af858a53 100644
--- a/parser.h
+++ b/parser.h
@@ -25,7 +25,7 @@
*/
#include <stdio.h>
-long lineno;
+extern long lineno;
extern int errors;
extern obj_t *yyin_stream;
extern const wchar_t *spec_file;