Mercurial > hg-old > index.cgi
diff lwasm/main.c @ 212:bae1e3ecdce1
More preparation for gnulib integration
author | lost |
---|---|
date | Fri, 24 Apr 2009 06:43:02 +0000 |
parents | 833d392fec82 |
children | 0df2a39a268c |
line wrap: on
line diff
--- a/lwasm/main.c Fri Apr 24 06:27:00 2009 +0000 +++ b/lwasm/main.c Fri Apr 24 06:43:02 2009 +0000 @@ -22,9 +22,7 @@ */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +#include <config.h> #include <argp.h> #include <errno.h> @@ -162,10 +160,15 @@ "LWASM, a HD6309 and MC6809 cross-assembler" }; +char *program_name; + // main function; parse command line, set up assembler state, and run the // assembler on the first file int main(int argc, char **argv) { + + program_name = argv[0]; + // assembler state asmstate_t asmstate = { 0 };