BSD 3 development
authorCharles B. Haley <cbh@research.uucp>
Thu, 1 Nov 1979 04:27:41 +0000 (20:27 -0800)
committerCharles B. Haley <cbh@research.uucp>
Thu, 1 Nov 1979 04:27:41 +0000 (20:27 -0800)
Work on file usr/src/cmd/pi/putn.c

Co-Authored-By: Bill Joy <wnj@ucbvax.Berkeley.EDU>
Co-Authored-By: Ken Thompson <ken@research.uucp>
Synthesized-from: 3bsd

usr/src/cmd/pi/putn.c [new file with mode: 0644]

diff --git a/usr/src/cmd/pi/putn.c b/usr/src/cmd/pi/putn.c
new file mode 100644 (file)
index 0000000..a53d55e
--- /dev/null
@@ -0,0 +1,39 @@
+/* Copyright (c) 1979 Regents of the University of California */
+    /*
+     * put[1234]
+     * these sort of replace the assembler code
+     * which used to mung the stack inserting 1, 2, 3, or 4 and then
+     * jmp ( not jsr ) to put.  these are more portable,
+     * but since they can only receive integer arguments,  calls
+     * to one of these with long or real arguments must be changed
+     * to call put directly.
+     */
+
+    /*
+     * is there some reason why these aren't #defined?
+     */
+
+put1 ( arg1 )
+    int                arg1;
+    {
+       return ( put ( 1 , arg1 ) );
+    }
+
+put2 ( arg1 , arg2 )
+    int                arg1 , arg2;
+    {
+       return ( put ( 2 , arg1 , arg2 ) );
+    }
+
+put3 ( arg1 , arg2 , arg3 )
+    int                arg1 , arg2 , arg3;
+    {
+       return ( put ( 3 , arg1 , arg2 , arg3 ) );
+    }
+
+put4 ( arg1 , arg2 , arg3 , arg4 )
+    int                arg1 , arg2 , arg3 , arg4;
+    {
+       return ( put ( 4 , arg1 , arg2 , arg3 , arg4 ) );
+    }
+