freebsd-ports/games/cube/files/patch-source::src::tools.h
Alexey Dokuchaev ca91a11346 Unbreak (fix build on 5.X and -CURRENT).
Reported by:	kris
Approved by:	portmgr (marcus), fjoe (mentor, implicit), maintainer
2004-09-23 08:58:57 +00:00

19 lines
629 B
C++

--- source/src/tools.h.orig Wed Sep 22 16:54:56 2004
+++ source/src/tools.h Wed Sep 22 17:00:21 2004
@@ -136,6 +136,8 @@
void allocnext(int allocsize);
};
+pool *gp();
+
template <class T> struct vector
{
T *buf;
@@ -259,7 +261,6 @@
#define enumerate(ht,t,e,b) loopi(ht->size) for(ht->enumc = ht->table[i]; ht->enumc; ht->enumc = ht->enumc->next) { t e = &ht->enumc->data; b; }
-pool *gp();
inline char *newstring(char *s) { return gp()->string(s); };
inline char *newstring(char *s, int l) { return gp()->string(s, l); };
inline char *newstringbuf(char *s) { return gp()->stringbuf(s); };