freebsd-ports/games/cube/files/patch-source-src-tools.h
Renato Botelho 557eb37569 o Add wrapper scripts for the executables cube_client and cube_server, and
place the programs in libexec because it needs to write files in the
  data directory (otherwise it crashes).
o Use %%DATADIR%% in pkg-plist.

PR:		ports/85270
Submitted by:	Alejandro Pulver <alejandro@varnet.biz>
Approved by:	maintainer
2005-10-06 10:15:36 +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); };