modern syntax for asgops and inits; sccs keywords
authorJay Lepreau <lepreau@ucbvax.Berkeley.EDU>
Mon, 16 Feb 1987 08:19:42 +0000 (00:19 -0800)
committerJay Lepreau <lepreau@ucbvax.Berkeley.EDU>
Mon, 16 Feb 1987 08:19:42 +0000 (00:19 -0800)
SCCS-vsn: local/sccscmds/sccscmds.2/util/fatal.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.ok/util/fatal.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.2/util/bal.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.ok/util/bal.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.2/util/setsig.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.ok/util/setsig.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.2/util/xpipe.c 1.2
SCCS-vsn: local/sccscmds/sccscmds.ok/util/xpipe.c 1.2

usr/src/local/sccscmds/sccscmds.2/util/bal.c
usr/src/local/sccscmds/sccscmds.2/util/fatal.c
usr/src/local/sccscmds/sccscmds.2/util/setsig.c
usr/src/local/sccscmds/sccscmds.2/util/xpipe.c
usr/src/local/sccscmds/sccscmds.ok/util/bal.c
usr/src/local/sccscmds/sccscmds.ok/util/fatal.c
usr/src/local/sccscmds/sccscmds.ok/util/setsig.c
usr/src/local/sccscmds/sccscmds.ok/util/xpipe.c

index 9a3fd6b..9e58e73 100644 (file)
@@ -1,5 +1,5 @@
-static char Sccsid[] "@(#)bal  2.1";
-#
+static char Sccsid[] = "@(#)bal.c      1.2     %G%";
+
 /*
        Function to find the position, in str, of the first of the char-
        acters in end occurring outside a balanced string.  A balanced string
 /*
        Function to find the position, in str, of the first of the char-
        acters in end occurring outside a balanced string.  A balanced string
@@ -25,7 +25,7 @@ char *str,*open,*clos,*end;
                ifany(clos) return error;
                ifany(open) {
                        opp[0] = matching_clos;
                ifany(clos) return error;
                ifany(open) {
                        opp[0] = matching_clos;
-                       s =+ balbrk(s,open,clos,opp);
+                       s += balbrk(s,open,clos,opp);
                        if (*s++ != matching_clos) return error;
                        break;
                }
                        if (*s++ != matching_clos) return error;
                        break;
                }
index 66a8011..54ad032 100644 (file)
@@ -1,6 +1,7 @@
+static char Sccsid[] = "@(#)fatal.c    1.2     %G%";
+
 # include      "../hdr/macros.h"
 # include      "../hdr/fatal.h"
 # include      "../hdr/macros.h"
 # include      "../hdr/fatal.h"
-SCCSID(@(#)fatal       2.2);
 
 /*
        General purpose error handler.
 
 /*
        General purpose error handler.
@@ -54,7 +55,7 @@ SCCSID(@(#)fatal      2.2);
 int    Fcnt;
 int    Fflags;
 char   *Ffile;
 int    Fcnt;
 int    Fflags;
 char   *Ffile;
-int    Fvalue  -1;
+int    Fvalue = -1;
 int    (*Ffunc)();
 int    Fjmp[10];
 
 int    (*Ffunc)();
 int    Fjmp[10];
 
index 5cecb1b..6625cd7 100644 (file)
@@ -1,3 +1,5 @@
+static char Sccsid[] = "@(#)setsig.c   1.2     %G%";
+
 # include      "signal.h"
 #undef NSIG
 # ifdef PWB
 # include      "signal.h"
 #undef NSIG
 # ifdef PWB
@@ -6,7 +8,6 @@
 #define NSIG 4
 # endif
 # include      "../hdr/macros.h"
 #define NSIG 4
 # endif
 # include      "../hdr/macros.h"
-SCCSID(@(#)setsig      2.1);
 
 /*
        General-purpose signal setting routine.
 
 /*
        General-purpose signal setting routine.
@@ -27,7 +28,7 @@ SCCSID(@(#)setsig     2.1);
 */
 
 
 */
 
 
-char   *Mesg[NSIG] {
+char   *Mesg[NSIG] {
        0,
        0,      /* Hangup */
        0,      /* Interrupt */
        0,
        0,      /* Hangup */
        0,      /* Interrupt */
@@ -60,8 +61,8 @@ setsig()
 }
 
 
 }
 
 
-static char preface[]  "SIGNAL: ";
-static char endmsg[]   " (ut12)\n";
+static char preface[] = "SIGNAL: ";
+static char endmsg[] = " (ut12)\n";
 
 setsig1(sig)
 int sig;
 
 setsig1(sig)
 int sig;
index 2340e7b..b25d2f2 100644 (file)
@@ -1,4 +1,4 @@
-static char Sccsid[] "@(#)xpipe        2.1";
+static char Sccsid[] = "@(#)xpipe.c    1.2     %G%";
 /*
        Interface to pipe(II) which handles all error conditions.
        Returns 0 on success,
 /*
        Interface to pipe(II) which handles all error conditions.
        Returns 0 on success,
@@ -8,7 +8,7 @@ static char Sccsid[] "@(#)xpipe 2.1";
 xpipe(t)
 int *t;
 {
 xpipe(t)
 int *t;
 {
-       static char p[] "pipe";
+       static char p[] "pipe";
 
        if (pipe(t) == 0)
                return(0);
 
        if (pipe(t) == 0)
                return(0);
index 9a3fd6b..9e58e73 100644 (file)
@@ -1,5 +1,5 @@
-static char Sccsid[] "@(#)bal  2.1";
-#
+static char Sccsid[] = "@(#)bal.c      1.2     %G%";
+
 /*
        Function to find the position, in str, of the first of the char-
        acters in end occurring outside a balanced string.  A balanced string
 /*
        Function to find the position, in str, of the first of the char-
        acters in end occurring outside a balanced string.  A balanced string
@@ -25,7 +25,7 @@ char *str,*open,*clos,*end;
                ifany(clos) return error;
                ifany(open) {
                        opp[0] = matching_clos;
                ifany(clos) return error;
                ifany(open) {
                        opp[0] = matching_clos;
-                       s =+ balbrk(s,open,clos,opp);
+                       s += balbrk(s,open,clos,opp);
                        if (*s++ != matching_clos) return error;
                        break;
                }
                        if (*s++ != matching_clos) return error;
                        break;
                }
index 66a8011..54ad032 100644 (file)
@@ -1,6 +1,7 @@
+static char Sccsid[] = "@(#)fatal.c    1.2     %G%";
+
 # include      "../hdr/macros.h"
 # include      "../hdr/fatal.h"
 # include      "../hdr/macros.h"
 # include      "../hdr/fatal.h"
-SCCSID(@(#)fatal       2.2);
 
 /*
        General purpose error handler.
 
 /*
        General purpose error handler.
@@ -54,7 +55,7 @@ SCCSID(@(#)fatal      2.2);
 int    Fcnt;
 int    Fflags;
 char   *Ffile;
 int    Fcnt;
 int    Fflags;
 char   *Ffile;
-int    Fvalue  -1;
+int    Fvalue = -1;
 int    (*Ffunc)();
 int    Fjmp[10];
 
 int    (*Ffunc)();
 int    Fjmp[10];
 
index 5cecb1b..6625cd7 100644 (file)
@@ -1,3 +1,5 @@
+static char Sccsid[] = "@(#)setsig.c   1.2     %G%";
+
 # include      "signal.h"
 #undef NSIG
 # ifdef PWB
 # include      "signal.h"
 #undef NSIG
 # ifdef PWB
@@ -6,7 +8,6 @@
 #define NSIG 4
 # endif
 # include      "../hdr/macros.h"
 #define NSIG 4
 # endif
 # include      "../hdr/macros.h"
-SCCSID(@(#)setsig      2.1);
 
 /*
        General-purpose signal setting routine.
 
 /*
        General-purpose signal setting routine.
@@ -27,7 +28,7 @@ SCCSID(@(#)setsig     2.1);
 */
 
 
 */
 
 
-char   *Mesg[NSIG] {
+char   *Mesg[NSIG] {
        0,
        0,      /* Hangup */
        0,      /* Interrupt */
        0,
        0,      /* Hangup */
        0,      /* Interrupt */
@@ -60,8 +61,8 @@ setsig()
 }
 
 
 }
 
 
-static char preface[]  "SIGNAL: ";
-static char endmsg[]   " (ut12)\n";
+static char preface[] = "SIGNAL: ";
+static char endmsg[] = " (ut12)\n";
 
 setsig1(sig)
 int sig;
 
 setsig1(sig)
 int sig;
index 2340e7b..b25d2f2 100644 (file)
@@ -1,4 +1,4 @@
-static char Sccsid[] "@(#)xpipe        2.1";
+static char Sccsid[] = "@(#)xpipe.c    1.2     %G%";
 /*
        Interface to pipe(II) which handles all error conditions.
        Returns 0 on success,
 /*
        Interface to pipe(II) which handles all error conditions.
        Returns 0 on success,
@@ -8,7 +8,7 @@ static char Sccsid[] "@(#)xpipe 2.1";
 xpipe(t)
 int *t;
 {
 xpipe(t)
 int *t;
 {
-       static char p[] "pipe";
+       static char p[] "pipe";
 
        if (pipe(t) == 0)
                return(0);
 
        if (pipe(t) == 0)
                return(0);