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:
committed by
Jon Trulson
parent
18a5139d7a
commit
0bbd4ff9aa
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user