projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
665b02c
)
hush.c: stop using __FILE__ (bad in out-of-tree builds)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 11 Oct 2006 21:38:33 +0000
(21:38 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 11 Oct 2006 21:38:33 +0000
(21:38 -0000)
shell/hush.c
patch
|
blob
|
history
diff --git
a/shell/hush.c
b/shell/hush.c
index 779c9a3738ecbe81cc0523072e851312ecd2258c..4d78b47a70f7b41abc87c9373889be52728beaa1 100644
(file)
--- a/
shell/hush.c
+++ b/
shell/hush.c
@@
-312,7
+312,8
@@
static char *indenter(int i)
static void __syntax(char *file, int line) {
bb_error_msg("syntax error %s:%d", file, line);
}
-#define syntax() __syntax(__FILE__, __LINE__)
+// NB: was __FILE__, but that produces full path sometimess, so...
+#define syntax() __syntax("hush.c", __LINE__)
/* Index of subroutines: */
/* function prototypes for builtins */