/[m4]/m4/src/main.c
ViewVC logotype

Diff of /m4/src/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.50 by gary, Wed Aug 27 17:10:13 2003 UTC revision 1.51 by gary, Tue Sep 9 17:15:35 2003 UTC
# Line 22  Line 22 
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    
# Line 226  main (int argc, char *const *argv, char Line 217  main (int argc, char *const *argv, char
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, "");

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26