diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-12 00:03:51 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-12 00:03:51 +0300 |
commit | f8ca129aaf4876dfa9778c34ed5bd8a669ca22e8 (patch) | |
tree | 9364824e2bc04d62c14a9f539e6b258131e437ad /src/preproc.c | |
parent | 3e5d6e9683d5d3efa3a82556d0f73892d674ed71 (diff) | |
download | grecs-f8ca129aaf4876dfa9778c34ed5bd8a669ca22e8.tar.gz grecs-f8ca129aaf4876dfa9778c34ed5bd8a669ca22e8.tar.bz2 |
Bugfixes.
Diffstat (limited to 'src/preproc.c')
-rw-r--r-- | src/preproc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/preproc.c b/src/preproc.c index cff8224..cd83e2f 100644 --- a/src/preproc.c +++ b/src/preproc.c @@ -418,3 +418,4 @@ push_source(const char *name, int once) if (!fp) { - grecs_error(&LOCUS, errno, _("Cannot open `%s'"), name); + grecs_error(context_stack ? &LOCUS : NULL, errno, + _("Cannot open `%s'"), name); return 1; @@ -459,3 +460,3 @@ pop_source() if (grecs_yy_flex_debug) - fprintf (stderr, "End of input\n"); + fprintf(stderr, "End of input\n"); return 1; @@ -466,4 +467,4 @@ pop_source() if (grecs_yy_flex_debug) - fprintf (stderr, "Resuming file `%s' at line %lu\n", - LOCUS.file, (unsigned long) LOCUS.line); + fprintf(stderr, "Resuming file `%s' at line %lu\n", + LOCUS.file, (unsigned long) LOCUS.line); |