close to what sun sent up
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Thu, 31 Mar 1983 02:50:34 +0000 (18:50 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Thu, 31 Mar 1983 02:50:34 +0000 (18:50 -0800)
SCCS-vsn: usr.bin/dc/Makefile 1.3
SCCS-vsn: usr.bin/dc/dc.c 4.2
SCCS-vsn: usr.bin/dc/dc.h 1.2

usr/src/usr.bin/dc/Makefile
usr/src/usr.bin/dc/dc.c
usr/src/usr.bin/dc/dc.h

index 37463f1..47a67a6 100644 (file)
@@ -1,18 +1,17 @@
 #
 #
-#      @(#)Makefile    1.2     (Berkeley)      83/02/11
+#      @(#)Makefile    1.3     (Berkeley)      83/03/30
 #
 DESTDIR=
 #
 DESTDIR=
-SRCS = dc.c dc.h
+SRCS=  dc.c dc.h
+CFLAGS=        -O
+
 all: dc
 
 dc:    dc.c dc.h
 all: dc
 
 dc:    dc.c dc.h
-       cc -O dc.c -o dc
+       ${CC} ${CFLAGS} dc.c -o dc
+
+install:
+       install -s dc ${DESTDIR}/usr/bin/dc
 
 
-install: dc
-       install -s dc $(DESTDIR)/usr/bin
 clean:
        rm -f *.o
 clean:
        rm -f *.o
-
-sources: srcs
-srcs: $(SRCS)
-       sccs get $@
index 1f7dd27..51cde31 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)dc.c       4.1     (Berkeley)      %G%";
+static char sccsid[] = "@(#)dc.c       4.2     (Berkeley)      %G%";
 #endif not lint
 
 #include <stdio.h>
 #endif not lint
 
 #include <stdio.h>
@@ -913,7 +913,7 @@ char *argv[];
        readptr = &readstk[0];
        k=0;
        sp = sptr = &symlst[0];
        readptr = &readstk[0];
        k=0;
        sp = sptr = &symlst[0];
-       while(sptr < &symlst[TBLSZ]){
+       while(sptr < &symlst[TBLSZ-1]){
                sptr->next = ++sp;
                sptr++;
        }
                sptr->next = ++sp;
                sptr++;
        }
index 47fb440..7f56218 100644 (file)
@@ -1,6 +1,5 @@
-/*
- *     @(#)dc.h        1.1     (Berkeley)      %G%
- */
+/*     dc.h    1.2     83/03/30        */
+
 #define FATAL 0
 #define NFATAL 1
 #define BLK sizeof(struct blk)
 #define FATAL 0
 #define NFATAL 1
 #define BLK sizeof(struct blk)