mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 16:31:24 +00:00
hush.c: stop using __FILE__ (bad in out-of-tree builds)
This commit is contained in:
parent
665b02cb60
commit
8de82bf84f
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user