svn commit: trunk/busybox/shell

vda at busybox.net vda at busybox.net
Wed Oct 11 21:38:34 UTC 2006


Author: vda
Date: 2006-10-11 14:38:33 -0700 (Wed, 11 Oct 2006)
New Revision: 16366

Log:
hush.c: stop using __FILE__ (bad in out-of-tree builds)


Modified:
   trunk/busybox/shell/hush.c


Changeset:
Modified: trunk/busybox/shell/hush.c
===================================================================
--- trunk/busybox/shell/hush.c	2006-10-11 21:24:42 UTC (rev 16365)
+++ trunk/busybox/shell/hush.c	2006-10-11 21:38:33 UTC (rev 16366)
@@ -312,7 +312,8 @@
 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 */




More information about the busybox-cvs mailing list