aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-11 21:38:33 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-11 21:38:33 +0000
commit294b32dcba8232bac913a151fa85abcffd4075f8 (patch)
treec4a33836a9d122205543dd51649c890cf38c590b /shell
parent9411b2fc81ee57efd49b815a9db0b4ed8a11a1f2 (diff)
downloadbusybox-w32-294b32dcba8232bac913a151fa85abcffd4075f8.tar.gz
busybox-w32-294b32dcba8232bac913a151fa85abcffd4075f8.tar.bz2
busybox-w32-294b32dcba8232bac913a151fa85abcffd4075f8.zip
hush.c: stop using __FILE__ (bad in out-of-tree builds)
git-svn-id: svn://busybox.net/trunk/busybox@16366 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 779c9a373..4d78b47a7 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -312,7 +312,8 @@ static char *indenter(int i)
312static void __syntax(char *file, int line) { 312static void __syntax(char *file, int line) {
313 bb_error_msg("syntax error %s:%d", file, line); 313 bb_error_msg("syntax error %s:%d", file, line);
314} 314}
315#define syntax() __syntax(__FILE__, __LINE__) 315// NB: was __FILE__, but that produces full path sometimess, so...
316#define syntax() __syntax("hush.c", __LINE__)
316 317
317/* Index of subroutines: */ 318/* Index of subroutines: */
318/* function prototypes for builtins */ 319/* function prototypes for builtins */