Commit e287c82b authored by Linus Tolke's avatar Linus Tolke
Browse files

Fixed include files.

parent eece08b2
/*
* $Id: s-string.c,v 1.8 1993/01/16 23:15:07 ceder Exp $
* $Id: s-string.c,v 1.9 1993/10/03 20:44:42 linus Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -46,14 +46,29 @@
* even if so stated.
*/
static char *rcsid = "$Id: s-string.c,v 1.8 1993/01/16 23:15:07 ceder Exp $";
static char *rcsid = "$Id: s-string.c,v 1.9 1993/10/03 20:44:42 linus Exp $";
#include <sys/types.h>
#include <stdio.h>
#if STDC_HEADERS || HAVE_STRING_H
#include <string.h>
#if !STDC_HEADERS && HAVE_MEMORY_H
#include <memory.h>
#endif
#define index strchr
#define rindex strrchr
#define bcopy(s, d, n) memcpy ((d), (s), (n))
#define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))
#define bzero(s, n) memset ((s), 0, (n))
#else /* not STDC_HEADERS and not HAVE_STRING_H */
#include <strings.h>
/* memory.h and strings.h conflict on some systems. */
#endif /* not STDC_HEADERS and not HAVE_STRING_H */
#include <ctype.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <assert.h>
#include <misc-types.h>
......
/*
* $Id: s-string.h,v 1.5 1992/02/26 18:46:39 ceder Exp $
* $Id: s-string.h,v 1.6 1993/10/03 20:44:49 linus Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: s-string.h,v 1.5 1992/02/26 18:46:39 ceder Exp $
* $Id: s-string.h,v 1.6 1993/10/03 20:44:49 linus Exp $
*
* s-string.h
* Our own string type. Definition of string type,
......@@ -53,7 +53,9 @@
#include <limits.h>
#include <stdio.h>
#ifndef __vax__
#include <stddef.h>
#endif
#include <misc-types.h>
......
/*
* $Id: zmalloc.c,v 1.4 1993/01/16 23:15:14 ceder Exp $
* $Id: zmalloc.c,v 1.5 1993/10/03 20:44:55 linus Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -48,15 +48,35 @@
*/
static char *rcsid = "$Id: zmalloc.c,v 1.4 1993/01/16 23:15:14 ceder Exp $";
static char *rcsid = "$Id: zmalloc.c,v 1.5 1993/10/03 20:44:55 linus Exp $";
#ifndef __vax__
#include <stddef.h>
#endif
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#if STDC_HEADERS || HAVE_STRING_H
#include <string.h>
#if !STDC_HEADERS && HAVE_MEMORY_H
#include <memory.h>
#endif
#define index strchr
#define rindex strrchr
#define bcopy(s, d, n) memcpy ((d), (s), (n))
#define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))
#define bzero(s, n) memset ((s), 0, (n))
#else /* not STDC_HEADERS and not HAVE_STRING_H */
#include <strings.h>
/* memory.h and strings.h conflict on some systems. */
#endif /* not STDC_HEADERS and not HAVE_STRING_H */
#include <compiler.h>
#ifdef __vax__
#define __SIZE_T is defined in string.h
#endif
#include "zmalloc.h"
#include "rcs.h"
USE(rcsid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment