]> git.pond.sub.org Git - empserver/commitdiff
Get rid of src/lib/gen/copy.c
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 2 Feb 2008 20:52:01 +0000 (21:52 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 3 Feb 2008 06:44:20 +0000 (07:44 +0100)
The function that gave its name to this file is long gone, the file's
description is bogus, and it contains just one definition.  Move that
to ../subs/border.c, and delete the file.

include/map.h
src/lib/gen/copy.c [deleted file]
src/lib/subs/border.c

index 9550c940bb42f1ab24fd7dce20e1c15d4589f61d..8b3ce398f499191bc8d84b2bbaa9162eb6ef4102 100644 (file)
 
 #define        MAPWIDTH(persec) ((WORLD_X/2) * ((persec) + 1) + 1)
 
-extern void blankfill(char *, struct range *, int);
 /* src/lib/subs/bigmap.c */
 extern int map_set(natid, coord, coord, char, int);
 extern void writebmap(natid);
 extern void writemap(natid);
 /* src/lib/subs/border.c */
+extern void blankfill(char *, struct range *, int);
 extern void border(struct range *, char *, char *);
 
 #define MAP_PLANE      bit(0) /* this order must match */
diff --git a/src/lib/gen/copy.c b/src/lib/gen/copy.c
deleted file mode 100644 (file)
index 267df86..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
- *                           Ken Stevens, Steve McClure
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *
- *  ---
- *
- *  See files README, COPYING and CREDITS in the root of the source
- *  tree for related information and legal notices.  It is expected
- *  that future projects/authors will amend these files as needed.
- *
- *  ---
- *
- *  copy.c: Copy and return pointer to end of copied string.
- * 
- *  Known contributors to this file:
- *     
- */
-
-#include <config.h>
-
-#include "map.h"
-#include "misc.h"
-#include "optlist.h"
-#include "xy.h"
-
-/*
- * space-fill a map or radar scan;
- * null terminate
- */
-void
-blankfill(char *ptr, struct range *range, int size)
-{
-    char *p;
-    int row;
-    int col;
-
-    for (row = 0; row < range->height; row++) {
-       col = (range->width + 1) * (size + 1) / 2 - 1;
-       p = ptr;
-       while (--col >= 0)
-           *p++ = ' ';
-       *p++ = 0;
-       ptr += MAPWIDTH(size);
-    }
-}
index 8441595df823a4a4ef2dc2a1a9a9a39a37197d66..34f32e8eefe5cd4a6244a4c973f198832edb7d54 100644 (file)
 #include "prototypes.h"
 #include "xy.h"
 
+/*
+ * space-fill a map or radar scan;
+ * null terminate
+ */
+void
+blankfill(char *ptr, struct range *range, int size)
+{
+    char *p;
+    int row;
+    int col;
+
+    for (row = 0; row < range->height; row++) {
+       col = (range->width + 1) * (size + 1) / 2 - 1;
+       p = ptr;
+       while (--col >= 0)
+           *p++ = ' ';
+       *p++ = 0;
+       ptr += MAPWIDTH(size);
+    }
+}
+
 void
 border(struct range *rp, char *prefstr, char *sep)