comparison lwasm/input.c @ 379:d791d47afc48

Add m80ext pragma for Macro-80C compatibility and ignore END in includes For compatibility with Macro-80C source, add pragma for it. Also implement ignoring END in include files rather than treating it as the total end of assembly. Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 13 Jul 2015 20:59:02 -0600
parents 4051bc09da78
children 7627d2b3b81f
comparison
equal deleted inserted replaced
378:b0ec15f95563 379:d791d47afc48
79 } 79 }
80 80
81 #define IS ((struct input_stack *)(as -> input_data)) 81 #define IS ((struct input_stack *)(as -> input_data))
82 82
83 struct ifl *ifl_head = NULL; 83 struct ifl *ifl_head = NULL;
84
85 int input_isinclude(asmstate_t *as)
86 {
87 return IS->type == input_type_include;
88 }
84 89
85 static int input_isabsolute(const char *s) 90 static int input_isabsolute(const char *s)
86 { 91 {
87 #if defined(WIN32) || defined(WIN64) 92 #if defined(WIN32) || defined(WIN64)
88 // aiming for the root of the current drive - treat as absolute 93 // aiming for the root of the current drive - treat as absolute