summaryrefslogtreecommitdiff
path: root/parser.y
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-27 10:04:57 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-27 10:04:57 (GMT)
commit8b69cec1f8c4e579e3183a7099e0648a8ffffdd7 (patch)
tree9ec87d508edda186e15a619503e2c8803de45b2e /parser.y
parente8218ae0c73e6963362181df6c5736a4eef0900c (diff)
Clifford Wolf:
Some UI improvements git-svn-id: http://svn.clifford.at/openscad/trunk@33 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/parser.y b/parser.y
index d4c7255..1a65c37 100644
--- a/parser.y
+++ b/parser.y
@@ -400,8 +400,9 @@ int parserlex(void)
void yyerror (char const *s)
{
- fprintf(stderr, "Parser error in line %d: %s\n", lexerget_lineno(), s);
- exit(1);
+ // FIXME: We leak memory on parser errors...
+ PRINTF("Parser error in line %d: %s\n", lexerget_lineno(), s);
+ module = NULL;
}
extern const char *parser_input_buffer;
contact: Jan Huwald // Impressum