BSD 4_4_Lite2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Tue, 28 Oct 1986 02:48:14 +0000 (18:48 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Tue, 28 Oct 1986 02:48:14 +0000 (18:48 -0800)
Work on file usr/src/usr.bin/patch/version.c
Work on file usr/src/usr.bin/patch/inp.h
Work on file usr/src/usr.bin/patch/INTERN.h
Work on file usr/src/usr.bin/patch/version.h

Synthesized-from: CSRG/cd3/4.4BSD-Lite2

usr/src/usr.bin/patch/INTERN.h [new file with mode: 0644]
usr/src/usr.bin/patch/inp.h [new file with mode: 0644]
usr/src/usr.bin/patch/version.c [new file with mode: 0644]
usr/src/usr.bin/patch/version.h [new file with mode: 0644]

diff --git a/usr/src/usr.bin/patch/INTERN.h b/usr/src/usr.bin/patch/INTERN.h
new file mode 100644 (file)
index 0000000..8bf16f5
--- /dev/null
@@ -0,0 +1,15 @@
+/* $Header: INTERN.h,v 2.0 86/09/17 15:35:58 lwall Exp $
+ *
+ * $Log:       INTERN.h,v $
+ * Revision 2.0  86/09/17  15:35:58  lwall
+ * Baseline for netwide release.
+ * 
+ */
+
+#undef EXT
+#define EXT
+
+#undef INIT
+#define INIT(x) = x
+
+#define DOINIT
diff --git a/usr/src/usr.bin/patch/inp.h b/usr/src/usr.bin/patch/inp.h
new file mode 100644 (file)
index 0000000..c6d2a91
--- /dev/null
@@ -0,0 +1,18 @@
+/* $Header: inp.h,v 2.0 86/09/17 15:37:25 lwall Exp $
+ *
+ * $Log:       inp.h,v $
+ * Revision 2.0  86/09/17  15:37:25  lwall
+ * Baseline for netwide release.
+ * 
+ */
+
+EXT LINENUM input_lines INIT(0);       /* how long is input file in lines */
+EXT LINENUM last_frozen_line INIT(0);  /* how many input lines have been */
+                                       /* irretractibly output */
+
+bool rev_in_string();
+void scan_input();
+bool plan_a();                 /* returns false if insufficient memory */
+void plan_b();
+char *ifetch();
+
diff --git a/usr/src/usr.bin/patch/version.c b/usr/src/usr.bin/patch/version.c
new file mode 100644 (file)
index 0000000..17dfb81
--- /dev/null
@@ -0,0 +1,28 @@
+/* $Header: version.c,v 2.0 86/09/17 15:40:11 lwall Exp $
+ *
+ * $Log:       version.c,v $
+ * Revision 2.0  86/09/17  15:40:11  lwall
+ * Baseline for netwide release.
+ * 
+ */
+
+#include "EXTERN.h"
+#include "common.h"
+#include "util.h"
+#include "INTERN.h"
+#include "patchlevel.h"
+#include "version.h"
+
+/* Print out the version number and die. */
+
+void
+version()
+{
+    extern char rcsid[];
+
+#ifdef lint
+    rcsid[0] = rcsid[0];
+#else
+    fatal3("%s\nPatch level: %d\n", rcsid, PATCHLEVEL);
+#endif
+}
diff --git a/usr/src/usr.bin/patch/version.h b/usr/src/usr.bin/patch/version.h
new file mode 100644 (file)
index 0000000..08fe68d
--- /dev/null
@@ -0,0 +1,9 @@
+/* $Header: version.h,v 2.0 86/09/17 15:40:14 lwall Exp $
+ *
+ * $Log:       version.h,v $
+ * Revision 2.0  86/09/17  15:40:14  lwall
+ * Baseline for netwide release.
+ * 
+ */
+
+void version();