comparison lwasm/lwasm.c @ 413:5dc9f9d47064

Add error string for "user error"
author William Astle <lost@l-w.ca>
date Mon, 21 Mar 2016 09:13:45 -0600
parents f8e56377a32a
children 58cafa61ab40
comparison
equal deleted inserted replaced
412:f8e56377a32a 413:5dc9f9d47064
270 case E_STRUCT_NOSYMBOL: return "Structure definition with no effect - no symbol"; 270 case E_STRUCT_NOSYMBOL: return "Structure definition with no effect - no symbol";
271 case E_STRUCT_RECURSE: return "Attempt to define a structure inside a structure"; 271 case E_STRUCT_RECURSE: return "Attempt to define a structure inside a structure";
272 case E_SYMBOL_DUPE: return "Multiply defined symbol"; 272 case E_SYMBOL_DUPE: return "Multiply defined symbol";
273 case E_UNKNOWN_OPERATION: return "Unknown operation"; 273 case E_UNKNOWN_OPERATION: return "Unknown operation";
274 case E_ORG_NOT_FOUND: return "Previous ORG not found"; 274 case E_ORG_NOT_FOUND: return "Previous ORG not found";
275 case E_USER_SPECIFIED: return "User Specified:";
275 276
276 case W_ENDSTRUCT_WITHOUT: return "ENDSTRUCT without STRUCT"; 277 case W_ENDSTRUCT_WITHOUT: return "ENDSTRUCT without STRUCT";
277 case W_DUPLICATE_SECTION: return "Section flags can only be specified the first time; ignoring duplicate definition"; 278 case W_DUPLICATE_SECTION: return "Section flags can only be specified the first time; ignoring duplicate definition";
278 case W_NOT_SUPPORTED: return "Not supported"; 279 case W_NOT_SUPPORTED: return "Not supported";
279 280