(index, rindex): Obsolete BSDisms; remove. Use standard strchr() and
strrchr() instead. (setbuffer): Obsolete BSDism, unused; remove.
This commit is contained in:
parent
4ae9c417b3
commit
64afd7747b
16 changed files with 29 additions and 227 deletions
|
@ -36,13 +36,13 @@ LIB = $(SRCDIR)/lib/libgen.a
|
|||
NTLIB = $(SRCDIR)\lib\libgen.lib
|
||||
|
||||
OBJS = atoip.o bit.o chance.o copy.o disassoc.o dtable.o \
|
||||
emp_config.o getstarg.o getstring.o hpux.o inet.o io.o \
|
||||
emp_config.o getstarg.o getstring.o inet.o io.o \
|
||||
io_mask.o ioqueue.o lock.o mapdist.o minmax.o numstr.o onearg.o \
|
||||
parse.o plur.o queue.o round.o scthash.o \
|
||||
strdup.o
|
||||
|
||||
NTOBJS = atoip.obj bit.obj chance.obj copy.obj disassoc.obj dtable.obj \
|
||||
emp_config.obj getstarg.obj getstring.obj hpux.obj \
|
||||
emp_config.obj getstarg.obj getstring.obj \
|
||||
inet.obj io.obj io_mask.obj ioqueue.obj lock.obj mapdist.obj minmax.obj \
|
||||
numstr.obj onearg.obj parse.obj plur.obj queue.obj round.obj \
|
||||
scthash.obj strdup.obj
|
||||
|
|
|
@ -1,76 +0,0 @@
|
|||
/*
|
||||
* Empire - A multi-player, client/server Internet based war game.
|
||||
* Copyright (C) 1986-2000, 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 the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
|
||||
* related information and legal notices. It is expected that any future
|
||||
* projects/authors will amend these files as needed.
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* hpux.c: Things specific to hpux
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*/
|
||||
|
||||
#include "misc.h"
|
||||
|
||||
#ifdef hpux
|
||||
#include <stdio.h>
|
||||
|
||||
setbuffer(fp, buf, size)
|
||||
FILE *fp;
|
||||
s_char *buf;
|
||||
int size;
|
||||
{
|
||||
if (size > BUFSIZ)
|
||||
setbuf(fp, buf);
|
||||
/* XXX else report error */
|
||||
}
|
||||
|
||||
s_char *
|
||||
rindex(sp, c)
|
||||
register s_char *sp;
|
||||
register int c;
|
||||
{
|
||||
register s_char *r;
|
||||
|
||||
r = NULL;
|
||||
do {
|
||||
if (*sp == c)
|
||||
r = sp;
|
||||
} while (*sp++);
|
||||
return r;
|
||||
}
|
||||
|
||||
s_char *
|
||||
index(sp, c)
|
||||
register s_char *sp;
|
||||
register int c;
|
||||
{
|
||||
do {
|
||||
if (*sp == c)
|
||||
return (sp);
|
||||
} while (*sp++);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue