Remove references to malloc.h closes #28
This commit is contained in:
parent
4656db9484
commit
29efcd5be1
@ -12,8 +12,6 @@
|
|||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <malloc.h>
|
|
||||||
|
|
||||||
|
|
||||||
typedef std::list<int> nodeList; /* dfsLast index to the node */
|
typedef std::list<int> nodeList; /* dfsLast index to the node */
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <malloc.h>
|
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@ -22,7 +21,7 @@
|
|||||||
|
|
||||||
void saveFile(FILE *fl, const PerfectHash &p_hash, PatternCollector *coll); /* Save the info */
|
void saveFile(FILE *fl, const PerfectHash &p_hash, PatternCollector *coll); /* Save the info */
|
||||||
|
|
||||||
int numKeys; /* Number of useful codeview symbols */
|
static int numKeys; /* Number of useful codeview symbols */
|
||||||
|
|
||||||
|
|
||||||
static void printUsage(bool longusage) {
|
static void printUsage(bool longusage) {
|
||||||
|
|||||||
@ -5,14 +5,13 @@
|
|||||||
/* Descended from xansi; thanks Geoff! thanks Glenn! */
|
/* Descended from xansi; thanks Geoff! thanks Glenn! */
|
||||||
|
|
||||||
#include "parsehdr.h"
|
#include "parsehdr.h"
|
||||||
#include <malloc.h> /* For debugging */
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
dword userval;
|
static dword userval;
|
||||||
|
namespace {
|
||||||
/* the IGNORE byte */
|
/* the IGNORE byte */
|
||||||
byte slosh;
|
byte slosh;
|
||||||
byte last_slosh;
|
byte last_slosh;
|
||||||
@ -51,7 +50,7 @@ PH_ARG_STRUCT *pArg; /* Pointer to the arguements array */
|
|||||||
int numArg; /* How many elements saved so far */
|
int numArg; /* How many elements saved so far */
|
||||||
int allocArg; /* How many elements allocated so far */
|
int allocArg; /* How many elements allocated so far */
|
||||||
int headArg; /* Head of the arguements linked list */
|
int headArg; /* Head of the arguements linked list */
|
||||||
|
}
|
||||||
// DO Callback
|
// DO Callback
|
||||||
boolT phDoCB(int id, char *data) {
|
boolT phDoCB(int id, char *data) {
|
||||||
/* return callback(hDCX, id, data, userval);*/
|
/* return callback(hDCX, id, data, userval);*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user