BSD 3 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 19 Oct 1979 11:38:42 +0000 (03:38 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 19 Oct 1979 11:38:42 +0000 (03:38 -0800)
Work on file usr/src/cmd/pxp/yycopy.c

Synthesized-from: 3bsd

usr/src/cmd/pxp/yycopy.c [new file with mode: 0644]

diff --git a/usr/src/cmd/pxp/yycopy.c b/usr/src/cmd/pxp/yycopy.c
new file mode 100644 (file)
index 0000000..bf569f2
--- /dev/null
@@ -0,0 +1,19 @@
+/* Copyright (c) 1979 Regents of the University of California */
+#include       "0.h"
+#include       "yy.h"
+
+OYcopy ()
+    {
+       register int    *r0 = & OY;
+       register int    *r1 = & Y;
+       register int    r2 = ( sizeof ( struct yytok ) ) / ( sizeof ( int ) );
+
+       do
+           {
+               * r0 ++ = * r1 ++ ;
+           }
+           while ( -- r2 > 0 );
+    }
+
+
+