aboutsummaryrefslogtreecommitdiff
path: root/k_cext_generatecode.c
diff options
context:
space:
mode:
authorKjetil S. Matheussen <ksvalast@users.sourceforge.net>2004-08-09 14:19:06 +0000
committerKjetil S. Matheussen <ksvalast@users.sourceforge.net>2004-08-09 14:19:06 +0000
commit437f26f3708a8c9f40b6569f18b8f0efb628a1d0 (patch)
treef6675c7ee2cc4860f2de92551f6e0de06b6ceb71 /k_cext_generatecode.c
parent71508f42ae949b46066c0676424507f2cf6268c6 (diff)
Made the SEND macro a bit more convenient to use with the new string handling. The new SEN macro works like the old SEND macro.
svn path=/trunk/externals/k_cext/; revision=1929
Diffstat (limited to 'k_cext_generatecode.c')
-rw-r--r--k_cext_generatecode.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/k_cext_generatecode.c b/k_cext_generatecode.c
index 3ab2fa9..bd7304b 100644
--- a/k_cext_generatecode.c
+++ b/k_cext_generatecode.c
@@ -205,6 +205,17 @@ static void k_cext_gen_mainfunccode(t_k_cext *x,int argc, t_atom* argv,int i, st
pos[0]='\"';
pos[1]=' ';
}
+
+ if(strstr(string,"SEND(")!=NULL){
+ char *pos=strstr(string,"SEND(")+3;
+ int len;
+ pos[0]='(';
+ pos[1]='\"';
+
+ len=strlen(string);
+ string[len]='\"';
+ string[len+1]=0;
+ }
if(!strcmp(".",string)){
sprintf(string," ");