Mercurial > hg-old > index.cgi
comparison src/main.c @ 5:287a6905a63c
Moved config.h to src/ and switched version strings to use autotools version
author | lost |
---|---|
date | Sat, 04 Oct 2008 03:20:36 +0000 |
parents | 34568fab6058 |
children | 05d4115b4860 |
comparison
equal
deleted
inserted
replaced
4:34568fab6058 | 5:287a6905a63c |
---|---|
20 | 20 |
21 Implements the program startup code | 21 Implements the program startup code |
22 | 22 |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | |
26 | |
25 #include <argp.h> | 27 #include <argp.h> |
26 #include <errno.h> | 28 #include <errno.h> |
27 #include <stdio.h> | 29 #include <stdio.h> |
28 #include <stdlib.h> | 30 #include <stdlib.h> |
29 | 31 |
35 extern void list_code(asmstate_t *as); | 37 extern void list_code(asmstate_t *as); |
36 extern void write_code(asmstate_t *as); | 38 extern void write_code(asmstate_t *as); |
37 | 39 |
38 | 40 |
39 // command line option handling | 41 // command line option handling |
40 const char *argp_program_version = "LWASM Version 0.0"; | 42 const char *argp_program_version = PACKAGE_STRING; |
41 const char *argp_program_bug_address = "lost@l-w.ca"; | 43 const char *argp_program_bug_address = PACKAGE_BUGREPORT; |
42 | 44 |
43 static error_t parse_opts(int key, char *arg, struct argp_state *state) | 45 static error_t parse_opts(int key, char *arg, struct argp_state *state) |
44 { | 46 { |
45 asmstate_t *as = state -> input; | 47 asmstate_t *as = state -> input; |
46 | 48 |