Added static to non extern non main functions in c_generator giving a 12 second compilation speedup - added a nodes touched pass, commented out in main, and fixed the test_extern test to use the right printf arguments.

This commit is contained in:
Nathan Braswell
2016-07-06 22:46:57 -07:00
parent a5deef8c30
commit dc5fe39083
3 changed files with 17 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
ext fun printf(format_str: *char, actual_str: *char): int
ext fun printf(format_str: *char, ...): int
fun main():int {
printf("%s", "Hello extern!\n")