comparison lwcc/cpp-main.c @ 307:9e342c4e4b66 ccdev

Added support for __LINE__, __FILE__, __DATE__, and __TIME__ Added support for the standard __LINE__, __FILE__, __DATE__, and __TIME "macros" and updated the readme form lwcc to reflect the current development state. Note: attempts to define these four macros will succeed but the definitions will be ignored.
author William Astle <lost@l-w.ca>
date Sat, 21 Sep 2013 12:27:48 -0600
parents b08787e5b9f3
children 73b2bfa17ab0
comparison
equal deleted inserted replaced
306:b08787e5b9f3 307:9e342c4e4b66
171 { 171 {
172 fprintf(fp, "%c", *fn); 172 fprintf(fp, "%c", *fn);
173 } 173 }
174 fn++; 174 fn++;
175 } 175 }
176 fprintf(fp, "\" %d\n", flag); 176 fprintf(fp, "\" %d", flag);
177 } 177 }
178 178
179 int process_file(const char *fn) 179 int process_file(const char *fn)
180 { 180 {
181 struct preproc_info *pp; 181 struct preproc_info *pp;