comparison lwasm/pass1.c @ 49:bd8b3fbd1e28

Added ability to flag macros as "noexpand" so they are not expanded in the listing
author lost@l-w.ca
date Tue, 05 Apr 2011 00:06:28 -0600
parents 18b49cf10ae9
children cb4efc47ce9d
comparison
equal deleted inserted replaced
48:1134255553bc 49:bd8b3fbd1e28
78 as -> context = strtol(p1, NULL, 10); 78 as -> context = strtol(p1, NULL, 10);
79 } 79 }
80 else if (!strcmp(line + 2, "SETLINENO")) 80 else if (!strcmp(line + 2, "SETLINENO"))
81 { 81 {
82 lc = strtol(p1, NULL, 10); 82 lc = strtol(p1, NULL, 10);
83 }
84 else if (!strcmp(line + 2, "SETNOEXPANDSTART"))
85 {
86 as -> line_tail -> noexpand_start = 1;
87 }
88 else if (!strcmp(line + 2, "SETNOEXPANDEND"))
89 {
90 as -> line_tail -> noexpand_end = 1;
83 } 91 }
84 lw_free(line); 92 lw_free(line);
85 if (lc == 0) 93 if (lc == 0)
86 lc = 1; 94 lc = 1;
87 continue; 95 continue;