diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-10-11 10:09:23 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-10-11 10:09:23 +0000 |
commit | bef75645dd01c9d9e1d375e0e3426eac809875f7 (patch) | |
tree | 41bbf7d520f41b94173d4b44a946da5ae3c789c9 /externals/grill/flext | |
parent | 2aefe91f615726931d9e99d5009e1f6e57f623c9 (diff) |
fix for Codewarrior compilation
svn path=/trunk/; revision=3691
Diffstat (limited to 'externals/grill/flext')
-rw-r--r-- | externals/grill/flext/flext.mcp | bin | 935395 -> 935395 bytes | |||
-rwxr-xr-x | externals/grill/flext/source/fllib.cpp | 12 | ||||
-rw-r--r-- | externals/grill/flext/source/flmap.h | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/externals/grill/flext/flext.mcp b/externals/grill/flext/flext.mcp Binary files differindex 8455ff79..128c06db 100644 --- a/externals/grill/flext/flext.mcp +++ b/externals/grill/flext/flext.mcp diff --git a/externals/grill/flext/source/fllib.cpp b/externals/grill/flext/source/fllib.cpp index b28bda5a..b41a744e 100755 --- a/externals/grill/flext/source/fllib.cpp +++ b/externals/grill/flext/source/fllib.cpp @@ -18,6 +18,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. #include <stdarg.h> #include <string.h> #include <ctype.h> +#include <map> #define ALIASDEL ',' @@ -127,16 +128,17 @@ flext_class::flext_class(t_class *&cl,flext_obj *(*newf)(int,t_atom *),void (*fr , dist(false) {} - typedef TablePtrMap<const t_symbol *,flext_class *,8> LibMap; - -static LibMap libnames; +// static initialization (with constructor) doesn't work for Codewarrior +static LibMap *libnames = NULL; //! Store or retrieve registered classes static flext_class *FindName(const t_symbol *s,flext_class *o = NULL) { - flext_class *cl = libnames.find(s); - if(!cl) libnames.insert(s,cl = o); + if(!libnames) libnames = new LibMap; + flext_class *cl = libnames->find(s); + if(!cl && o) + libnames->insert(s,cl = o); return cl; } diff --git a/externals/grill/flext/source/flmap.h b/externals/grill/flext/source/flmap.h index 601f1df7..69204e2e 100644 --- a/externals/grill/flext/source/flmap.h +++ b/externals/grill/flext/source/flmap.h @@ -144,7 +144,7 @@ public: void _check(int tsize); #endif - Data *const data; + Data *data; TableAnyMap *parent,*left,*right; int n; |