diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2006-09-20 14:24:10 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2006-09-20 14:24:10 +0000 |
commit | b1224f91730af6a729f7e7a428eb660a6d734926 (patch) | |
tree | c49a430ed4700743c2851556a10d8685df748b2d /externals/grill/flext/source/flbase.cpp | |
parent | b6d992055164079e3943dd0e75d8734214a9b280 (diff) |
enabled templates for flext classes, inlined timer functions, some more ToOut/Sys methods
fixed help name definition
added flfeatures.h for compile-time version-specific feature detection
changed eol-style
adapted for pd-devel 0.39
minimal fix for timers
cosmetic changes to calm the compiler
changes for Mac/Intel
svn path=/trunk/; revision=5979
Diffstat (limited to 'externals/grill/flext/source/flbase.cpp')
-rw-r--r-- | externals/grill/flext/source/flbase.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/externals/grill/flext/source/flbase.cpp b/externals/grill/flext/source/flbase.cpp index a1cc37d3..404588d9 100644 --- a/externals/grill/flext/source/flbase.cpp +++ b/externals/grill/flext/source/flbase.cpp @@ -98,10 +98,11 @@ void flext_obj::DefineHelp(t_classid c,const char *ref,const char *dir,bool addt { #if FLEXT_SYS == FLEXT_SYS_PD char tmp[256]; - if(dir) { - strcpy(tmp,dir); - strcat(tmp,"/"); - strcat(tmp,ref); + if(dir && *dir) { + strcpy(tmp,dir); + char *last = tmp+strlen(tmp)-1; + if(*last != '/') strcat(last,"/"); + strcat(last,ref); } else strcpy(tmp,ref); |