|
@@ -21,7 +21,7 @@ if outname[-2:] == ".c":
|
|
pos = outname.find(".")
|
|
pos = outname.find(".")
|
|
if pos > 0:
|
|
if pos > 0:
|
|
outname = outname[:pos]
|
|
outname = outname[:pos]
|
|
-include_re = re.compile("^#include (\".*\").*$")
|
|
|
|
|
|
+include_re = re.compile("^#[\s]*include (\".*\").*$")
|
|
guard_re = re.compile("^#(?:(?:ifndef|define) [A-Z_]+_H_|endif /\* [A-Z_]+_H_ \*/|endif // [A-Z_]+_H_)")
|
|
guard_re = re.compile("^#(?:(?:ifndef|define) [A-Z_]+_H_|endif /\* [A-Z_]+_H_ \*/|endif // [A-Z_]+_H_)")
|
|
|
|
|
|
print ("Starting amalgamating file "+ args.outfile)
|
|
print ("Starting amalgamating file "+ args.outfile)
|