From 31a2d9dcc2b3a519033918e180f81c4e7b9f8e7e Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Tue, 15 Mar 2005 04:56:36 +0000 Subject: new data type flext::AtomListStatic using pre-allocated space if possible fixes for OSX replaced memory-intensive STL maps by custom-made vector/map-container fix for gcc strangeness no more static assignment of symbols (problems with Metrowerks) small fix for gcc fixed bugs in SIMD code for non-power-of-2 lengths fixes for attribute editor (to deal with large dialogs) svn path=/trunk/; revision=2628 --- externals/grill/flext/source/fllib.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'externals/grill/flext/source/fllib.cpp') diff --git a/externals/grill/flext/source/fllib.cpp b/externals/grill/flext/source/fllib.cpp index b7f32592..85589679 100755 --- a/externals/grill/flext/source/fllib.cpp +++ b/externals/grill/flext/source/fllib.cpp @@ -126,21 +126,16 @@ libclass::libclass(t_class *&cl,flext_obj *(*newf)(int,t_atom *),void (*freef)(f {} -typedef DataMap LibMap; +typedef TableMap LibMap; static LibMap libnames; //! Store or retrieve registered classes static libclass *FindName(const t_symbol *s,libclass *o = NULL) { -// typedef std::map LibMap; - LibMap::iterator it = libnames.find(s); - if(it == libnames.end()) { - if(o) libnames[s] = o; - return o; - } - else - return it.data(); + libclass *cl = libnames.find(s); + if(!cl) libnames.insert(s,cl = o); + return cl; } -- cgit v1.2.1