Commit 957314d5 authored by thomas's avatar thomas
Browse files

clang language clarifications and updated config options

git-svn-id: https://svn.grrrr.org/ext/trunk/flext@3766 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent f28a84c9
......@@ -52,13 +52,13 @@ INSTPATH=$(PDPATH)/extra
MFLAGS=-j 2
# user defined compiler flags
UFLAGS += -ffast-math -mmacosx-version-min=10.4
UFLAGS += -ffast-math -mmacosx-version-min=10.6
# user defined linker flags
LDFLAGS += -mmacosx-version-min=10.4
LDFLAGS += -mmacosx-version-min=10.6
# user defined optimization flags
OFLAGS += -O2 # -ftree-vectorize
OFLAGS += -O3 -ftree-vectorize
# user defined debugging flags
DFLAGS +=
......@@ -72,8 +72,12 @@ UFLAGS_i386 += -mmmx -msse -msse2 -msse3 -mtune=nocona
OFLAGS_i386 +=
DFLAGS_i386 +=
UFLAGS_x86_64 += -mmmx -msse -msse2 -msse3 -mtune=core2
OFLAGS_x86_64 +=
DFLAGS_x86_64 +=
# cross-compilation (optional)
ARCH=ppc i386 #x86_64 ppc64
ARCH=i386 x86_64 # ppc ppc64
# SDK for 10.4
#OSXSDK=/Developer/SDKs/MacOSX10.4u.sdk
# SDK for 10.6
#OSXSDK=/Developer/SDKs/MacOSX10.6u.sdk
......@@ -46,7 +46,7 @@ $LastChangedBy$
//! Extract space-delimited words from a string
static const char *extract(const char *name,int ix = 0)
{
char tmp[1024];
static char tmp[1024];
const char *n = name;
const char *del = strchr(name,ALIASDEL);
......@@ -460,11 +460,12 @@ flext_hdr *flext_obj::obj_new(const t_symbol *s,int _argc_,t_atom *argv)
}
}
if(!ok)
if(!ok) {
if(misnum)
error("%s: %s creation arguments",GetString(s),misnum < 0?"Not enough":"Too many");
else
error("%s: Creation arguments do not match",GetString(s));
}
}
......
......@@ -308,11 +308,12 @@ bool flext_base::InitOutlets()
case xlet_any:
outlets[ix] = (outlet *)newout_anything(&x_obj->obj);
break;
#ifdef FLEXT_DEBUG
default:
;
#ifdef FLEXT_DEBUG
ERRINTERNAL();
ok = false;
#endif
ok = false;
}
}
#else
......
......@@ -287,8 +287,8 @@ typedef t_symbol *t_symptr;
#define FLEXT_ERROR(str) error("Error: in " __FILE__ " line %i",(int)__LINE__)
#endif
#else
#define FLEXT_ASSERT(b) (1)
#define FLEXT_WARN(str) (1)
#define FLEXT_ASSERT(b) assert(1)
#define FLEXT_WARN(str) assert(1)
#define FLEXT_ERROR(str) error("Error: in " __FILE__ " line %i",(int)__LINE__)
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment