]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - warp/object.c
cgram: use ASCII-only implementation of <ctype.h> functions
[bsdgames-darwin.git] / warp / object.c
index e2108d5e55d69e0d564d2b9a005f0df307f55eb5..2f2801182e0d1d44b83a84a7cff250b622ff36d4 100644 (file)
@@ -1,24 +1,6 @@
-/* $Header: /cvsroot/src/games/warp/object.c,v 1.1 2020/11/09 23:37:05 kamil Exp $ */
+/* Header: object.c,v 7.0 86/10/08 15:12:55 lwall Exp */
 
-/* $Log: object.c,v $
-/* Revision 1.1  2020/11/09 23:37:05  kamil
-/* Add Warp Kit, Version 7.0 by Larry Wall
-/*
-/* Warp is a real-time space war game that doesn't get boring very quickly.
-/* Read warp.doc and the manual page for more information.
-/*
-/* games/warp originally distributed with 4.3BSD-Reno, is back to the BSD
-/* world via NetBSD. Its remnants were still mentioned in games/Makefile.
-/*
-/* Larry Wall, the original author and the copyright holder, generously
-/* donated the game and copyright to The NetBSD Foundation, Inc.
-/*
-/* Import the game sources as-is from 4.3BSD-Reno, with the cession
-/* of the copyright and license to BSD-2-clause NetBSD-style.
-/*
-/* Signed-off-by: Larry Wall <larry@wall.org>
-/* Signed-off-by: Kamil Rytarowski <kamil@netbsd.org>
-/*
+/* Log:        object.c,v
  * Revision 7.0  86/10/08  15:12:55  lwall
  * Split into separate files.  Added amoebas and pirates.
  * 
 #include "object.h"
 
 void
-object_init()
+object_init(void)
 {
     ;
 }
 
 OBJECT *
-make_object(typ, img, py, px, vy, vx, energ, mas, where)
-char typ;
-char img;
-int px, py, vx, vy;
-long energ, mas;
-OBJECT *where;
+make_object(char typ, char img, int px, int py, int vx, int vy, long energ,
+    long mas, OBJECT *where)
 {
-    Reg1 OBJECT *obj;
+    OBJECT *obj;
 
     if (free_root.next == &free_root)
 #ifndef lint
@@ -78,8 +56,7 @@ OBJECT *where;
 }
 
 void
-unmake_object(curobj)
-Reg1 OBJECT *curobj;
+unmake_object(OBJECT *curobj)
 {
     curobj->prev->next = curobj->next;
     curobj->next->prev = curobj->prev;
@@ -90,8 +67,7 @@ Reg1 OBJECT *curobj;
 }
 
 void
-free_object(curobj)
-Reg1 OBJECT *curobj;
+free_object(OBJECT *curobj)
 {
     curobj->next = free_root.next;
     curobj->prev = &free_root;