various small corrections
authorerikb <none@none>
Thu, 17 Apr 1986 14:42:54 +0000 (14:42 +0000)
committererikb <none@none>
Thu, 17 Apr 1986 14:42:54 +0000 (14:42 +0000)
lang/cem/cemcom/domacro.c
lang/cem/cemcom/dumpidf.c
lang/cem/cemcom/stack.c

index b0afb18..ff742d8 100644 (file)
@@ -352,11 +352,12 @@ do_ifdef(how)
        */
        push_if();
        if (id = GetIdentifier()) {
-               if ((how && !(id && id->id_macro)) ||
-                       (!how && id && id->id_macro))
-               {       /* this id is not defined       */
+               if (
+                       (how && !(id && id->id_macro))
+               ||
+                       (!how && id && id->id_macro)
+               ) /* this id is not defined     */
                        skip_block();
-               }
                else
                        SkipRestOfLine();
        }
@@ -390,9 +391,8 @@ do_line(l)
 {
        struct token tk;
 
-       LineNumber = l;
-       /* is there a filespecifier?    */
-       if (GetToken(&tk) == STRING)
+       LineNumber = l - 1;     /* the number of the next input line */
+       if (GetToken(&tk) == STRING)    /* is there a filespecifier? */
                FileName = tk.tk_bts;
        SkipRestOfLine();
 }
index 77c8f5e..af6f309 100644 (file)
@@ -352,7 +352,7 @@ p1_expr(lvl, expr)
                break;
        case String:
        {
-               char bts2str();
+               char *bts2str();
 
                print(
                        "%s\n",
index 00b7908..26a849e 100644 (file)
@@ -210,12 +210,15 @@ unstack_world()
                
 #ifdef DEBUG
                if (options['a']) {
-                       print("\"%s\", %s, %s, %s\n",
+                       char *symbol2str();
+
+                       print("\"%s\", %s, %s, %s, %s\n",
                                idf->id_text,
                                (def->df_alloc == 0) ? "no alloc" :
                                (def->df_alloc == ALLOC_SEEN) ? "alloc seen" :
                                (def->df_alloc == ALLOC_DONE) ? "alloc done" :
                                "illegal alloc info",
+                               symbol2str(def->df_sc),
                                def->df_initialized ? "init" : "no init",
                                def->df_used ? "used" : "not used");
                }