comparison lwasm/pragma.c @ 198:6ddc861a07d4

Allow export to import undefined symbols
author lost
date Sun, 22 Mar 2009 18:26:59 +0000
parents 566943f98f8d
children 3f9d299d2477
comparison
equal deleted inserted replaced
197:12fb4e8d5236 198:6ddc861a07d4
107 } 107 }
108 else if (!strcasecmp(pragma, "nocescapes")) 108 else if (!strcasecmp(pragma, "nocescapes"))
109 { 109 {
110 as -> pragmas &= ~PRAGMA_CESCAPES; 110 as -> pragmas &= ~PRAGMA_CESCAPES;
111 } 111 }
112 else if (!strcasecmp(pragma, "importundefexport"))
113 {
114 as -> pragmas |= PRAGMA_IMPORTUNDEFEXPORT;
115 }
116 else if (!strcasecmp(pragma, "noimportundefexport"))
117 {
118 as -> pragmas &= ~PRAGMA_IMPORTUNDEFEXPORT;
119 }
112 else 120 else
113 { 121 {
114 if (error) 122 if (error)
115 { 123 {
116 register_error(as, cl, 1, "Unrecognized pragma"); 124 register_error(as, cl, 1, "Unrecognized pragma");