diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-01-07 04:58:47 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-01-07 04:58:47 +0000 |
commit | dad0b0542c08240f4431a34d46e6676461e0d83b (patch) | |
tree | 1d4ce3ce8cfe60caec560d0514f6eb4c08defcc3 /externals/grill/flext/source | |
parent | ed4ce25dc69fd6361f7655a3ab5d05186754316c (diff) |
updated for OSX
better templates, some minor changes
fix for showing attributes on select (and recreate the object on edit)
cleanups
svn path=/trunk/; revision=2469
Diffstat (limited to 'externals/grill/flext/source')
-rw-r--r-- | externals/grill/flext/source/flbuf.cpp | 9 | ||||
-rwxr-xr-x | externals/grill/flext/source/flsimd.cpp | 6 |
2 files changed, 9 insertions, 6 deletions
diff --git a/externals/grill/flext/source/flbuf.cpp b/externals/grill/flext/source/flbuf.cpp index 83ee3ebb..e42015c6 100644 --- a/externals/grill/flext/source/flbuf.cpp +++ b/externals/grill/flext/source/flbuf.cpp @@ -28,8 +28,8 @@ WARRANTIES, see the file, "license.txt," in this distribution. #endif #if FLEXT_SYS == FLEXT_SYS_MAX -static const t_symbol *sym_buffer = flext::MakeSymbol("buffer~"); -static const t_symbol *sym_size = flext::MakeSymbol("size"); +static const t_symbol *sym_buffer = NULL; +static const t_symbol *sym_size = NULL; #endif flext::buffer::buffer(const t_symbol *bn,bool delayed): @@ -42,6 +42,9 @@ flext::buffer::buffer(const t_symbol *bn,bool delayed): isdirty = false; ticking = false; tick = clock_new(this,(t_method)cb_tick); +#elif FLEXT_SYS == FLEXT_SYS_MAX + if(!sym_buffer) sym_buffer = flext::MakeSymbol("buffer~"); + if(!sym_size) sym_size = flext::MakeSymbol("size"); #endif if(bn) Set(bn,delayed); @@ -106,7 +109,7 @@ int flext::buffer::Set(const t_symbol *s,bool nameonly) FLEXT_ASSERT(!NOGOOD(p)); if(ob_sym(p) != sym_buffer) { - post("buffer: object '%s' not valid",GetString(sym)); + post("buffer: object '%s' not valid (type %s)",GetString(sym),GetString(ob_sym(p))); if(valid) ret = -2; } else { diff --git a/externals/grill/flext/source/flsimd.cpp b/externals/grill/flext/source/flsimd.cpp index 007a1fe0..9ed22de7 100755 --- a/externals/grill/flext/source/flsimd.cpp +++ b/externals/grill/flext/source/flsimd.cpp @@ -2,7 +2,7 @@ flext - C++ layer for Max/MSP and pd (pure data) externals -Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) +Copyright (c) 2001-2005 Thomas Grill (gr@grrrr.org) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. @@ -47,7 +47,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. #include <altivec.h> #include <vectorOps.h> - #elif FLEXT_CPU == FLEXT_CPU_PPC && defined(__GNUG__) && defined(__VEC__) + #elif FLEXT_CPU == FLEXT_CPU_PPC && defined(__GNUC__) && defined(__VEC__) #include <sys/sysctl.h> #include <vecLib/vecLib.h> #endif @@ -344,7 +344,7 @@ inline void StoreUnaligned( vector float v,float *where) inline bool IsVectorAligned(const void *where) { - return reinterpret_cast<unsigned long>(where)&(sizeof(vector float)-1) == 0; + return (reinterpret_cast<size_t>(where)&(sizeof(vector float)-1)) == 0; } inline vector float LoadValue(const float &f) |