From 437f26f3708a8c9f40b6569f18b8f0efb628a1d0 Mon Sep 17 00:00:00 2001 From: "Kjetil S. Matheussen" Date: Mon, 9 Aug 2004 14:19:06 +0000 Subject: 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 --- k_cext_generatecode.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'k_cext_generatecode.c') 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," "); -- cgit v1.2.1