Get rid of malloc.h.

This is a non-POSIX/ISO-C header.  It is ok to include this on Linux, but it
is obsolete on BSD; FreeBSD even throws an error if you include it with
__STDC__ defined.  Every system should nowadays have malloc() defined in
stdlib.h.

Diff is largely mechanical, replacing malloc.h with stdlib.h where it is not
yet included anyway.
This commit is contained in:
Pascal Stumpf
2012-08-12 16:41:42 +02:00
committed by Jon Trulson
parent 18a5139d7a
commit 0bbd4ff9aa
146 changed files with 123 additions and 156 deletions

View File

@@ -31,7 +31,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
in the interface definition.*/
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#if defined(MSDOS)
#include <process.h>
#endif

View File

@@ -26,7 +26,7 @@
/* Versions of m_free and m_malloc for debugging. */
/**/
#include <malloc.h>
#include <stdlib.h>
#include <stdio.h>
#include "basic.h"
#include "trie.h"

View File

@@ -30,7 +30,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
/* Entity.c contains procedures pertaining to entities */
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#if defined(MSDOS)
#include <process.h>

View File

@@ -30,7 +30,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
/* Util.c contains general utilities for program PARSER */
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#if defined(MSDOS)
#include <process.h>

View File

@@ -31,7 +31,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
#include <string.h>
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#if defined(MSDOS)
#include <process.h>
#endif

View File

@@ -25,7 +25,7 @@
#include <string.h>
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include "basic.h"
#include "trie.h"
#include "dtdext.h"

View File

@@ -31,7 +31,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
#include <string.h>
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <locale.h>
#if defined(MSDOS)
#include <process.h>

View File

@@ -30,7 +30,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
/* Scan.c is the scanner for program PARSER */
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <stdio.h>
#if defined(MSDOS)
#include <process.h>

View File

@@ -32,7 +32,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
#include <string.h>
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#if defined(MSDOS)
#include <process.h>
#endif