Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
51885bd1
Commit
51885bd1
authored
Oct 12, 1993
by
Per Cederqvist
Browse files
Cleaned up header file inclusion.
parent
744f7d6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libraries/libmisc/zmalloc.c
View file @
51885bd1
/*
* $Id: zmalloc.c,v 1.
8
1993/10/1
1
1
9
:2
7:23 linus
Exp $
* $Id: zmalloc.c,v 1.
9
1993/10/1
2
1
6
:2
0:58 ceder
Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -48,39 +48,24 @@
*/
static
char
*
rcsid
=
"$Id: zmalloc.c,v 1.
8
1993/10/1
1
1
9
:2
7:23 linus
Exp $"
;
static
char
*
rcsid
=
"$Id: zmalloc.c,v 1.
9
1993/10/1
2
1
6
:2
0:58 ceder
Exp $"
;
#ifndef __vax__
#include
<stddef.h>
#endif
#ifdef HAVE_MALLOC_H
#include
<malloc.h>
#else
#ifdef HAVE_STDLIB_H
#include
<stdlib.h>
#endif
# include <stdlib.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))*/
# include <string.h>
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
#else
/* not STDC_HEADERS and not HAVE_STRING_H */
#include
<strings.h>
/* memory.h and strings.h conflict on some systems. */
#
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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment