]> git.sur5r.net Git - cc65/blobdiff - src/ca65/main.c
Started to generalize line info handling. Remove separate FilePos fields and
[cc65] / src / ca65 / main.c
index 53bd5be48dca1fae4980683883f201bb8155cf8d..a5db62559750a994032965c69acc8f7a49ee4d38 100644 (file)
@@ -805,7 +805,7 @@ static void CreateObjFile (void)
     WriteDbgSyms ();
 
     /* Write line infos if requested */
-    WriteLineInfo ();
+    WriteLineInfos ();
 
     /* Write the string pool */
     WriteStrPool ();
@@ -902,7 +902,7 @@ int main (int argc, char* argv [])
                     break;
 
                        case 'o':
-                           OutFile = GetArg (&I, 2);
+                           OutFile = GetArg (&I, 2);
                            break;
 
                        case 's':
@@ -926,7 +926,7 @@ int main (int argc, char* argv [])
                    break;
 
                        case 'U':
-                   OptAutoImport (Arg, 0);
+                   OptAutoImport (Arg, 0);
                            break;
 
                        case 'V':
@@ -980,6 +980,9 @@ int main (int argc, char* argv [])
     /* Initialize the segments */
     InitSegments ();
 
+    /* Initialize the line infos */
+    InitLineInfo ();
+
     /* Initialize the scanner, open the input file */
     InitScanner (InFile);