ecc; output 'code generated from eC source file.' comment at top of generated .c...
authorRejean Loyer <rejean.loyer@gmail.com>
Thu, 22 Aug 2013 04:46:07 +0000 (00:46 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 29 Aug 2013 09:16:01 +0000 (05:16 -0400)
compiler/bootstrap/ecc/bootstrap/ecc.c
compiler/ecc/ecc.ec
compiler/libec/src/output.ec

index 8215353..6523b97 100644 (file)
@@ -1179,6 +1179,7 @@ struct __ecereNameSpace__ecere__com__Instance * output = __ecereNameSpace__ecere
 
 if(output)
 {
+__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "/* Code generated from eC source file. */\n");
 __ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#if defined(__GNUC__)\n");
 __ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "typedef long long int64;\n");
 __ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "typedef unsigned long long uint64;\n");
index 7b680d7..9e17bd8 100644 (file)
@@ -627,6 +627,7 @@ class CompilerApp : Application
                   File output = FileOpen(GetOutputFile(), write);
                   if(output)
                   {
+                     output.Printf("/* Code generated from eC source file. */\n");
                      output.Printf("#if defined(__GNUC__)\n");
                         output.Printf("typedef long long int64;\n");
                         output.Printf("typedef unsigned long long uint64;\n");
index 1b82770..a7f4c6f 100644 (file)
@@ -1465,7 +1465,7 @@ public void OutputTree(OldList ast, File f)
 {
    External external;
 
-   outputLine = 30;
+   outputLine = 31;
 
    for(external = ast.first; external; external = external.next)
    {