diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-02-22 23:04:50 -0500 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-02-22 23:04:50 -0500 |
commit | c5e6b7b4c1adab9c40ea7c73e828605cbad833f8 (patch) | |
tree | 04251e3529c5481885c7ae0a91107b95f360bd63 /util.c | |
parent | Added basic purchasing with definites (diff) | |
download | 7w-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |