comparison lwasm/main.c @ 352:f5b77989f675

Added PRAGMA and *PRAGMA
author lost@starbug
date Tue, 30 Mar 2010 20:56:54 -0600
parents a82c55070624
children d96c30e60ddf
comparison
equal deleted inserted replaced
351:4dba8c7e242c 352:f5b77989f675
31 #include <lw_expr.h> 31 #include <lw_expr.h>
32 32
33 #include "lwasm.h" 33 #include "lwasm.h"
34 #include "input.h" 34 #include "input.h"
35 35
36 extern int parse_pragma_string(asmstate_t *as, char *str); 36 extern int parse_pragma_string(asmstate_t *as, char *str, int ignoreerr);
37 37
38 /* command line option handling */ 38 /* command line option handling */
39 const char *argp_program_version = "lwasm from " PACKAGE_STRING; 39 const char *argp_program_version = "lwasm from " PACKAGE_STRING;
40 const char *argp_program_bug_address = PACKAGE_BUGREPORT; 40 const char *argp_program_bug_address = PACKAGE_BUGREPORT;
41 char *program_name; 41 char *program_name;
122 exit(1); 122 exit(1);
123 } 123 }
124 break; 124 break;
125 125
126 case 'p': 126 case 'p':
127 if (parse_pragma_string(as, arg) == 0) 127 if (parse_pragma_string(as, arg, 0) == 0)
128 { 128 {
129 fprintf(stderr, "Unrecognized pragma string: %s\n", arg); 129 fprintf(stderr, "Unrecognized pragma string: %s\n", arg);
130 exit(1); 130 exit(1);
131 } 131 }
132 break; 132 break;