aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-02-22 23:04:50 -0500
committerNathan Vance <nathav63@gmail.com>2015-02-22 23:04:50 -0500
commitc5e6b7b4c1adab9c40ea7c73e828605cbad833f8 (patch)
tree04251e3529c5481885c7ae0a91107b95f360bd63 /util.c
parentAdded basic purchasing with definites (diff)
download7w-c5e6b7b4c1adab9c40ea7c73e828605cbad833f8.tar.gz
7w-c5e6b7b4c1adab9c40ea7c73e828605cbad833f8.tar.bz2
7w-c5e6b7b4c1adab9c40ea7c73e828605cbad833f8.zip
Added more support for idefinites, but has major bugs!
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.c b/util.c
index 829e7d1..2935600 100644
--- a/util.c
+++ b/util.c
@@ -8,6 +8,7 @@ static void replace(char a[], char b[], int x, int y);
#define POOLSIZE 10000
static int ipool[POOLSIZE];
static int *ipoolp = ipool;
+
int* get_intarray(int size)
{
if(ipoolp + size > ipool + POOLSIZE) ipoolp = ipool;
@@ -18,6 +19,7 @@ int* get_intarray(int size)
static char cpool[POOLSIZE];
static char *cpoolp = cpool;
+
char* get_chararray(int size)
{
if(cpoolp + size > cpool + POOLSIZE) cpoolp = cpool;
bgstack15