diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-08-19 02:37:30 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-08-19 02:37:30 +0000 |
commit | 47786f06588886651bb6400269fe5c310313c29d (patch) | |
tree | 755f995f89a6414bc436bf7a53d35ff2912e6586 /externals/grill/flext/source | |
parent | 3dccb560ee6e3a5c6a1d588aabcf168df0f9ae43 (diff) |
""
svn path=/trunk/; revision=884
Diffstat (limited to 'externals/grill/flext/source')
-rw-r--r-- | externals/grill/flext/source/flatom_pr.cpp | 4 | ||||
-rw-r--r-- | externals/grill/flext/source/flbase.cpp | 2 | ||||
-rw-r--r-- | externals/grill/flext/source/flsupport.cpp | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/externals/grill/flext/source/flatom_pr.cpp b/externals/grill/flext/source/flatom_pr.cpp index e90892e8..20ae6cad 100644 --- a/externals/grill/flext/source/flatom_pr.cpp +++ b/externals/grill/flext/source/flatom_pr.cpp @@ -33,13 +33,15 @@ bool flext::PrintAtom(const t_atom &a,char *buf,int bufsz) } else if(IsPointer(a)) { STD::sprintf(buf,"%p",GetPointer(a)); - } + } +#if FLEXT_SYS == FLEXT_SYS_PD else if(a.a_type == A_DOLLAR) { STD::sprintf(buf,"$%d",a.a_w.w_index); } else if(a.a_type == A_DOLLSYM) { STD::sprintf(buf,"$%s",GetString(a)); } +#endif else { ERRINTERNAL(); ok = false; diff --git a/externals/grill/flext/source/flbase.cpp b/externals/grill/flext/source/flbase.cpp index bbd4cc1c..0619b796 100644 --- a/externals/grill/flext/source/flbase.cpp +++ b/externals/grill/flext/source/flbase.cpp @@ -97,9 +97,9 @@ void flext_obj::DefineHelp(t_classid c,const char *ref,const char *dir,bool addt const t_symbol *flext_obj::GetParamSym(const t_symbol *sym,t_canvas *c) { +#if FLEXT_SYS == FLEXT_SYS_PD if(!c) c = canvas_getcurrent(); -#if FLEXT_SYS == FLEXT_SYS_PD const char *s = GetString(sym); if((s[0] == '$' || s[0] == '#') && isdigit(s[1])) { // patcher parameter detected... get value! diff --git a/externals/grill/flext/source/flsupport.cpp b/externals/grill/flext/source/flsupport.cpp index eca73d90..ab0d871e 100644 --- a/externals/grill/flext/source/flsupport.cpp +++ b/externals/grill/flext/source/flsupport.cpp @@ -214,7 +214,7 @@ void flext::error(const char *fmt,...) va_start(ap, fmt); #if FLEXT_SYS == FLEXT_SYS_MAX char buf[1024]; // \TODO this is quite unsafe..... - sprintf(buf,"error: "); + STD::sprintf(buf,"error: "); vsprintf(buf+7, fmt, ap); ::post(buf); #else |