From 294b32dcba8232bac913a151fa85abcffd4075f8 Mon Sep 17 00:00:00 2001 From: vda Date: Wed, 11 Oct 2006 21:38:33 +0000 Subject: 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 --- shell/hush.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shell') 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) 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 */ -- cgit v1.2.3-55-g6feb