From fa5a047a01effcc99b3390804f6c408a73b9ecf8 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 20 Jan 2007 14:26:02 +0000 Subject: PD: possibility to create DSP objects without main DSP inlet (use FLEXT_DSP0_NEW or similar) fixing typo support for multiple archs under OSX small fix for ppc arch architecture-specific compiler flags for UB under OSX fixed severe Altivec bug changed eol-style corrections to config build templates added xcode 2.4 project fixed atom sorting (now also respect symbol content) no stripping of local symbols some fixes, mostly OS X updated build system for Max with MinGW better default values fixed bug in AtomList copying svn path=/trunk/; revision=7368 --- externals/grill/flext/source/flatom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'externals/grill/flext/source/flatom.cpp') diff --git a/externals/grill/flext/source/flatom.cpp b/externals/grill/flext/source/flatom.cpp index b8853aca..ea0191c1 100644 --- a/externals/grill/flext/source/flatom.cpp +++ b/externals/grill/flext/source/flatom.cpp @@ -2,7 +2,7 @@ flext - C++ layer for Max/MSP and pd (pure data) externals -Copyright (c) 2001-2005 Thomas Grill (gr@grrrr.org) +Copyright (c) 2001-2006 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. @@ -24,7 +24,7 @@ int flext::CmpAtom(const t_atom &a,const t_atom &b) #if FLEXT_SYS == FLEXT_SYS_MAX case A_INT: return GetInt(a) == GetInt(b)?0:(GetInt(a) < GetInt(b)?-1:1); #endif - case A_SYMBOL: return GetSymbol(a) == GetSymbol(b)?0:(GetSymbol(a) < GetSymbol(b)?-1:1); + case A_SYMBOL: return GetSymbol(a) == GetSymbol(b)?0:strcmp(GetString(a),GetString(b)); #if FLEXT_SYS == FLEXT_SYS_PD case A_POINTER: return GetPointer(a) == GetPointer(b)?0:(GetPointer(a) < GetPointer(b)?-1:1); #endif @@ -62,7 +62,7 @@ void flext::AtomList::Alloc(int sz,int keepix,int keeplen,int keepto) { if(lst) { if(cnt == sz) { - if(keepix != keepto) { + if(keepix >= 0 && keepix != keepto) { int c = keeplen >= 0?keeplen:cnt; FLEXT_ASSERT(c+keepto <= cnt); FLEXT_ASSERT(c+keepix <= cnt); -- cgit v1.2.1