Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125429
b: refs/heads/master
c: 7826005
h: refs/heads/master
i:
  125427: 1e56d27
v: v3
  • Loading branch information
Sam Ravnborg committed Jan 2, 2009
1 parent 0ef29b9 commit ed09cb6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf82607a904d3b2ed3d66f8799f00d1099c1849c
refs/heads/master: 7826005e5a53645d7aab7c13eda76126eadebf0b
7 changes: 5 additions & 2 deletions trunk/scripts/kconfig/lex.zconf.c_shipped
Original file line number Diff line number Diff line change
Expand Up @@ -2370,11 +2370,14 @@ void zconf_nextfile(const char *name)
current_buf = buf;

if (file->flags & FILE_BUSY) {
printf("recursive scan (%s)?\n", name);
printf("%s:%d: do not source '%s' from itself\n",
zconf_curname(), zconf_lineno(), name);
exit(1);
}
if (file->flags & FILE_SCANNED) {
printf("file %s already scanned?\n", name);
printf("%s:%d: file '%s' is already sourced from '%s'\n",
zconf_curname(), zconf_lineno(), name,
file->parent->name);
exit(1);
}
file->flags |= FILE_BUSY;
Expand Down
7 changes: 5 additions & 2 deletions trunk/scripts/kconfig/zconf.l
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,14 @@ void zconf_nextfile(const char *name)
current_buf = buf;

if (file->flags & FILE_BUSY) {
printf("recursive scan (%s)?\n", name);
printf("%s:%d: do not source '%s' from itself\n",
zconf_curname(), zconf_lineno(), name);
exit(1);
}
if (file->flags & FILE_SCANNED) {
printf("file %s already scanned?\n", name);
printf("%s:%d: file '%s' is already sourced from '%s'\n",
zconf_curname(), zconf_lineno(), name,
file->parent->name);
exit(1);
}
file->flags |= FILE_BUSY;
Expand Down

0 comments on commit ed09cb6

Please sign in to comment.