aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/grecs.h2
-rw-r--r--src/preproc.c9
2 files changed, 7 insertions, 4 deletions
diff --git a/src/grecs.h b/src/grecs.h
index 40ade87..b2ef734 100644
--- a/src/grecs.h
+++ b/src/grecs.h
@@ -285,2 +285,4 @@ void *grecs_list_index(struct grecs_list *lp, size_t idx);
void *grecs_list_remove_tail(struct grecs_list *lp);
+void grecs_list_remove_entry(struct grecs_list *lp,
+ struct grecs_list_entry *ent);
void grecs_list_clear(struct grecs_list *lp);
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);

Return to:

Send suggestions and report system problems to the System administrator.