fix pointer type in dex_mem
This commit is contained in:
parent
72c6739dfd
commit
2287f08979
12
dex_mem.c
12
dex_mem.c
|
@ -1,14 +1,20 @@
|
|||
#include "dex_mem.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
struct obstack * dex_obstack = NULL;
|
||||
static struct obstack dex_obstack;
|
||||
static bool dex_obstack_initialized = false;
|
||||
|
||||
void dex_collect() {
|
||||
obstack_free(&dex_obstack, NULL);
|
||||
dex_obstack = NULL;
|
||||
obstack_init(&dex_obstack);
|
||||
}
|
||||
|
||||
void * dex_alloc(int size) {
|
||||
if(dex_obstack == NULL) obstack_init(&dex_obstack);
|
||||
if(!dex_obstack_initialized) {
|
||||
obstack_init(&dex_obstack);
|
||||
dex_obstack_initialized = true;
|
||||
}
|
||||
return obstack_alloc(&dex_obstack, size);
|
||||
}
|
||||
|
|
2
libtool
2
libtool
|
@ -2,7 +2,7 @@
|
|||
|
||||
# libtool - Provide generalized library-building support services.
|
||||
# Generated automatically by config.status (dexterc) 1.0
|
||||
# Libtool was configured on host 111.flood.pivotallabs.com:
|
||||
# Libtool was configured on host kyle-maxwells-macbook.local:
|
||||
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
||||
#
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
||||
|
|
Loading…
Reference in New Issue