Added U flag for exit status 0 with unresolved refs
authorceriel <none@none>
Fri, 9 Feb 1990 12:44:37 +0000 (12:44 +0000)
committerceriel <none@none>
Fri, 9 Feb 1990 12:44:37 +0000 (12:44 +0000)
util/ass/ass00.c
util/ass/assda.c
util/ass/assex.h
util/ass/em_ass.6

index ad4e873..25587c5 100644 (file)
@@ -20,7 +20,7 @@ main(argc, argv)
        char    **argv;
 {
        /*
-        * Usage: ass [-[d][p][m][u]] [-s(s/m/l/x)] [ [file] [flag] ] ...
+        * Usage: ass [-[d][p][m][u][U]] [-s(s/m/l/x)] [ [file] [flag] ] ...
         *   The d flag can be repeated several times, resulting in more
         *        debugging information.
         */
@@ -159,6 +159,7 @@ flags(arg)
 #ifdef JOHAN
                        case 'j':       ++jflag; break;
 #endif
+                       case 'U':       ++Uflag; break;
                        case '-':
                        case '+':
                                on = (*argp == '+');
@@ -517,6 +518,7 @@ check_def() {
                for (g = xglobs; count--; g++)
                        if (g->g_name && (g->g_status&DEF)==0)
                                printf("    %s\n",glostring(g));
+               if (! Uflag) nerrors++;
        }
 }
 
index 730afa7..df695f0 100644 (file)
@@ -104,6 +104,7 @@ int     r_flag          =  0;           /* don't dump relocation tables */
 int     jflag;
 #endif
 int     wflag           =  0;           /* don't issue warning messages */
+int    Uflag           =  0;           /* exit status 0 on unresolved refs */
 int     eof_seen;
 int     mod_sizes;                      /* Size info in current module ok? */
 
index 02a66e6..1663ce3 100644 (file)
@@ -99,6 +99,7 @@ extern  int     r_flag;
 extern  int     jflag;
 #endif
 extern  int     wflag;
+extern  int     Uflag;
 extern  int     eof_seen;
 extern  int     mod_sizes;
 /*
index ced7f15..e52099b 100644 (file)
@@ -17,6 +17,9 @@ List all procedure names together with base-address (decimal and octal),
 procedure number and module of definition.
 .IP -d
 Used for debugging em_ass itself.
+.IP -U
+With this flag, em_ass has exit status 0 even when there are unresolved
+references.
 .PD
 .PP
 em_ass assembles and links together compact EM assembly language modules