improved symbol table generation when source file has line directives
authorceriel <none@none>
Thu, 2 Jul 1992 10:23:46 +0000 (10:23 +0000)
committerceriel <none@none>
Thu, 2 Jul 1992 10:23:46 +0000 (10:23 +0000)
lang/cem/cemcom.ansi/domacro.c
lang/cem/cemcom/domacro.c

index 3722d85..de6768f 100644 (file)
@@ -809,6 +809,11 @@ do_line(l)
                 * Do not attempt to free the old string, since it might
                 * be used in a def structure.
                 */
+#ifdef DBSYMTAB
+               if (options['g'] && strcmp(FileName, tk.tk_bts) != 0) {
+                       C_ms_std(tk.tk_bts, N_SOL, 0);
+               }
+#endif /* DBSYMTAB */
                FileName = tk.tk_bts;
        }
 }
index 46d01d8..02677bf 100644 (file)
@@ -712,6 +712,12 @@ do_line(l)
 
        SkipRestOfLine();
        LineNumber = l;         /* the number of the next input line */
-       if (t == STRING)        /* is there a filespecifier? */
+       if (t == STRING) {      /* is there a filespecifier? */
+#ifdef DBSYMTAB
+               if (options['g'] && strcmp(FileName, tk.tk_bts) != 0) {
+                       C_ms_std(tk.tk_bts, N_SOL, 0);
+               }
+#endif /* DBSYMTAB */
                FileName = tk.tk_bts;
+       }
 }