22 |
|
|
23 |
#include "m4.h" |
#include "m4.h" |
24 |
#include "m4private.h" |
#include "m4private.h" |
25 |
#include "error.h" |
#include "m4/progname.h" |
|
|
|
|
/* The name this program was run with. */ |
|
|
#ifdef _LIBC |
|
|
/* In the GNU C library, there is a predefined variable for this. */ |
|
|
# define program_name program_invocation_name |
|
|
#endif |
|
|
|
|
|
/* This will be provided either by GNU libc, or error.c. */ |
|
|
extern const char *program_name; |
|
26 |
|
|
27 |
static void print_program_name_CB (void); |
static void print_program_name_CB (void); |
28 |
|
|
217 |
|
|
218 |
int exit_status; |
int exit_status; |
219 |
|
|
220 |
program_name = argv[0]; |
set_program_name (argv[0]); |
221 |
error_print_progname = print_program_name_CB; |
error_print_progname = print_program_name_CB; |
222 |
|
|
223 |
setlocale (LC_ALL, ""); |
setlocale (LC_ALL, ""); |