aboutsummaryrefslogtreecommitdiff
path: root/src/build.y
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-04 21:01:05 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-04 21:01:05 +0000
commit13bda5d4f77ca469bbbe0d9b1f268682a9f0ec71 (patch)
treebcacd0acb83d68c5071165d26ba253d9c6f217da /src/build.y
parent1190030155a43c15fd7e30c8e8c3a9f166955365 (diff)
downloadbuild-13bda5d4f77ca469bbbe0d9b1f268682a9f0ec71.tar.gz
build-13bda5d4f77ca469bbbe0d9b1f268682a9f0ec71.tar.bz2
build-13bda5d4f77ca469bbbe0d9b1f268682a9f0ec71.tar.xz
build-13bda5d4f77ca469bbbe0d9b1f268682a9f0ec71.zip
Better error handling again, and about to add more language features.
Diffstat (limited to '')
-rw-r--r--src/build.y7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/build.y b/src/build.y
index 4d87a86..bf565fb 100644
--- a/src/build.y
+++ b/src/build.y
@@ -244,10 +244,5 @@ rulecompletion: TOK_COMMAND STRING
244 244
245void yyerror( YYLTYPE *locp, Builder &bld, char const *msg ) 245void yyerror( YYLTYPE *locp, Builder &bld, char const *msg )
246{ 246{
247 fprintf( stderr, "%s:%d-%d:%d-%d: %s\n", 247 bld.error( locp, msg );
248 bld.file.c_str(),
249 locp->first_line, locp->last_line,
250 locp->first_column, locp->last_column,
251 msg
252 );
253} 248}