diff options
Diffstat (limited to 'src')
62 files changed, 326 insertions, 17 deletions
@@ -88,3 +88,8 @@ void a2l_setup(void) class_sethelpsymbol(a2l_class, gensym("zexy/any2list")); zexy_register("a2l"); } + +void z_a2l_setup(void) +{ + a2l_setup(); +} @@ -96,3 +96,8 @@ void atoi_setup(void) class_sethelpsymbol(atoi_class, gensym("zexy/atoi")); zexy_register("atoi"); } + +void z_atoi_setup(void) +{ + atoi_setup(); +} @@ -83,3 +83,8 @@ void avg_tilde_setup(void) class_sethelpsymbol(avg_class, gensym("zexy/avg~")); zexy_register("avg~"); } + +void z_avg__setup(void) +{ + avg_tilde_setup(); +} diff --git a/src/blockmirror~.c b/src/blockmirror~.c index 1dd3659..4e7e4b1 100644 --- a/src/blockmirror~.c +++ b/src/blockmirror~.c @@ -102,3 +102,8 @@ void blockmirror_tilde_setup(void) class_sethelpsymbol(blockmirror_class, gensym("zexy/blockmirror~")); zexy_register("blockmirror~"); } + +void z_blockmirror__setup(void) +{ + blockmirror_tilde_setup(); +} diff --git a/src/blockswap~.c b/src/blockswap~.c index 7dbe99d..987dd4e 100644 --- a/src/blockswap~.c +++ b/src/blockswap~.c @@ -97,3 +97,8 @@ void blockswap_tilde_setup(void) class_sethelpsymbol(blockswap_class, gensym("zexy/blockswap~")); zexy_register("blockswap~"); } + +void z_blockswap__setup(void) +{ + blockswap_tilde_setup(); +} @@ -122,3 +122,8 @@ void date_setup(void) class_sethelpsymbol(date_class, gensym("zexy/date")); zexy_register("date"); } + +void z_date_setup(void) +{ + date_setup(); +} diff --git a/src/demultiplex.c b/src/demultiplex.c index ff26b5d..ea73b59 100644 --- a/src/demultiplex.c +++ b/src/demultiplex.c @@ -113,3 +113,11 @@ void demultiplex_setup(void) class_sethelpsymbol(demux_class, gensym("zexy/demultiplex")); zexy_register("demultiplex"); } +void demux_setup(void) +{ + demultiplex_setup(); +} +void z_demultiplex_setup(void) +{ + demultiplex_setup(); +} diff --git a/src/demultiplex~.c b/src/demultiplex~.c index 4d78583..eb01f36 100644 --- a/src/demultiplex~.c +++ b/src/demultiplex~.c @@ -117,3 +117,8 @@ void demultiplex_tilde_setup(void) zexy_register("demultiplex~"); } + +void z_demultiplex__setup(void) +{ + demultiplex_tilde_setup(); +} diff --git a/src/dfreq~.c b/src/dfreq~.c index 7016784..70b1ce5 100644 --- a/src/dfreq~.c +++ b/src/dfreq~.c @@ -110,3 +110,8 @@ void dfreq_tilde_setup(void) class_sethelpsymbol(dfreq_class, gensym("zexy/dfreq~")); zexy_register("dfreq~"); } + +void z_dfreq__setup(void) +{ + dfreq_tilde_setup(); +} diff --git a/src/dirac~.c b/src/dirac~.c index 72cc4d3..03e21da 100644 --- a/src/dirac~.c +++ b/src/dirac~.c @@ -111,3 +111,8 @@ void dirac_tilde_setup(void) class_sethelpsymbol(dirac_class, gensym("zexy/dirac~")); zexy_register("dirac~"); } + +void z_dirac__setup(void) +{ + dirac_tilde_setup(); +} @@ -160,3 +160,8 @@ void dot_setup(void) class_sethelpsymbol(scalmul_scal_class, gensym("zexy/scalarmult")); zexy_register("."); } + +void z_dot_setup(void) +{ + dot_setup(); +} @@ -200,3 +200,8 @@ void drip_setup(void) class_sethelpsymbol(drip_class, gensym("zexy/drip")); zexy_register("drip"); } + +void z_drip_setup(void) +{ + drip_setup(); +} diff --git a/src/envrms~.c b/src/envrms~.c index e9dc302..e400743 100644 --- a/src/envrms~.c +++ b/src/envrms~.c @@ -148,3 +148,8 @@ void envrms_tilde_setup(void) class_sethelpsymbol(sigenvrms_class, gensym("zexy/envrms~")); zexy_register("envrms~"); } + +void z_envrms__setup(void) +{ + envrms_tilde_setup(); +} diff --git a/src/fifop.c b/src/fifop.c index 898d7f0..a9dcb47 100644 --- a/src/fifop.c +++ b/src/fifop.c @@ -231,3 +231,8 @@ void fifop_setup(void) class_sethelpsymbol(fifop_class, gensym("zexy/fifop")); zexy_register("fifop"); } + +void z_fifop_setup(void) +{ + fifop_setup(); +} @@ -112,3 +112,8 @@ void glue_setup(void) class_sethelpsymbol(glue_class, gensym("zexy/glue")); zexy_register("glue"); } + +void z_glue_setup(void) +{ + glue_setup(); +} diff --git a/src/index.c b/src/index.c index 9872076..745337a 100644 --- a/src/index.c +++ b/src/index.c @@ -224,3 +224,8 @@ void index_setup(void) class_sethelpsymbol(index_class, gensym("zexy/index")); zexy_register("index"); } + +void z_index_setup(void) +{ + index_setup(); +} diff --git a/src/length.c b/src/length.c index 9ed19e1..a476af4 100644 --- a/src/length.c +++ b/src/length.c @@ -59,3 +59,8 @@ void length_setup(void) class_sethelpsymbol(length_class, gensym("zexy/length")); zexy_register("length"); } + +void z_length_setup(void) +{ + length_setup(); +} diff --git a/src/lifop.c b/src/lifop.c index 1e2431e..4c1ccec 100644 --- a/src/lifop.c +++ b/src/lifop.c @@ -222,3 +222,8 @@ void lifop_setup(void) class_sethelpsymbol(lifop_class, gensym("zexy/lifop")); zexy_register("lifop"); } + +void z_lifop_setup(void) +{ + lifop_setup(); +} diff --git a/src/limiter~.c b/src/limiter~.c index 7a53d8d..eb74347 100644 --- a/src/limiter~.c +++ b/src/limiter~.c @@ -717,3 +717,8 @@ void limiter_tilde_setup(void) zexy_register("limiter~"); } + +void z_limiter__setup(void) +{ + limiter_tilde_setup(); +} diff --git a/src/list2int.c b/src/list2int.c index af14812..09f6333 100644 --- a/src/list2int.c +++ b/src/list2int.c @@ -79,3 +79,13 @@ void list2int_setup(void) class_sethelpsymbol(list2int_class, gensym("zexy/list2int")); zexy_register("list2int"); } + +void l2i_setup(void) +{ + list2int_setup(); +} + +void z_list2int_setup(void) +{ + list2int_setup(); +} diff --git a/src/list2symbol.c b/src/list2symbol.c index cc40aa7..f0a1a1f 100644 --- a/src/list2symbol.c +++ b/src/list2symbol.c @@ -139,3 +139,11 @@ void list2symbol_setup(void) class_sethelpsymbol(list2symbol_class, gensym("zexy/list2symbol")); zexy_register("list2symbol"); } +void l2s_setup(void) +{ + list2symbol_setup(); +} +void z_list2symbol_setup(void) +{ + list2symbol_setup(); +} diff --git a/src/lister.c b/src/lister.c index 2bc7e27..cdbeed5 100644 --- a/src/lister.c +++ b/src/lister.c @@ -87,3 +87,8 @@ void l_setup(void) { lister_setup(); } + +void z_lister_setup(void) +{ + lister_setup(); +} @@ -230,3 +230,8 @@ void lpt_setup(void) class_sethelpsymbol(lpt_class, gensym("zexy/lpt")); zexy_register("lpt"); } + +void z_lpt_setup(void) +{ + lpt_setup(); +} diff --git a/src/makesource.sh b/src/makesource.sh index 0de872f..49165ef 100755 --- a/src/makesource.sh +++ b/src/makesource.sh @@ -53,12 +53,6 @@ function foot_s() { echo } -function get_setupfunctions() { - if [ -e "$1" ] - then - $GREP "^void .*_setup(void)" $i | $AWK '{print gensub("_setup.*", "_setup", "g", $2);}' - fi -} ################################## ## body @@ -69,17 +63,14 @@ head_s > $ZEXY_S for i in `ls *.c | grep -v zexy.c` do - NAME="${i%.c}" - SETUPNAMES=`get_setupfunctions $i` - if [ "$SETUPNAMES" ] - then - echo " $i \\" >> $ZEXY_S - for SETUPNAME in $SETUPNAMES - do - echo "void ${SETUPNAME}(void);" >> $ZEXY_H - echo " ${SETUPNAME}();" >> $ZEXY_C - done - fi +## each c-file in zexy needs to have a z_<file>_setup()-function +## that calls all needed setup-functions +## any non-alpha-numeric-character is replaced by "_" +## e.g. "multiplex~.c" -> "z_multiplex__setup()" + SETUPNAME=z_`echo ${i%.c} | sed -e 's/[^[:alnum:]]/_/g'`_setup + echo " $i \\" >> $ZEXY_S + echo "void ${SETUPNAME}(void); /* $i */" >> $ZEXY_H + echo " ${SETUPNAME}(); /* $i */" >> $ZEXY_C done foot_h >> $ZEXY_H diff --git a/src/makesymbol.c b/src/makesymbol.c index 662089a..fecb241 100644 --- a/src/makesymbol.c +++ b/src/makesymbol.c @@ -144,3 +144,8 @@ void makesymbol_setup(void) class_sethelpsymbol(makesymbol_class, gensym("zexy/makesymbol")); zexy_register("makesymbol"); } + +void z_makesymbol_setup(void) +{ + makesymbol_setup(); +} @@ -114,3 +114,8 @@ void mavg_setup(void) class_sethelpsymbol(mavg_class, gensym("zexy/mavg")); zexy_register("mavg"); } + +void z_mavg_setup(void) +{ + mavg_setup(); +} diff --git a/src/minmax.c b/src/minmax.c index f96b025..0d135d4 100644 --- a/src/minmax.c +++ b/src/minmax.c @@ -82,3 +82,8 @@ void minmax_setup(void) class_sethelpsymbol(minmax_class, gensym("zexy/minmax")); zexy_register("minmax"); } + +void z_minmax_setup(void) +{ + minmax_setup(); +} diff --git a/src/msgfile.c b/src/msgfile.c index a059fd5..4eccd69 100644 --- a/src/msgfile.c +++ b/src/msgfile.c @@ -798,3 +798,8 @@ void msgfile_setup(void) zexy_register("msgfile"); } + +void z_msgfile_setup(void) +{ + msgfile_setup(); +} diff --git a/src/multiline~.c b/src/multiline~.c index 2767df5..69c0bdc 100644 --- a/src/multiline~.c +++ b/src/multiline~.c @@ -261,3 +261,8 @@ void multiline_tilde_setup(void) class_sethelpsymbol(mline_class, gensym("zexy/multiline~")); zexy_register("multiline_tilde"); } + +void z_multiline__setup(void) +{ + multiline_tilde_setup(); +} diff --git a/src/multiplex.c b/src/multiplex.c index 72ae268..41e87d1 100644 --- a/src/multiplex.c +++ b/src/multiplex.c @@ -104,3 +104,8 @@ void multiplex_setup(void) zexy_register("multiplex"); } + +void z_multiplex_setup(void) +{ + multiplex_setup(); +} diff --git a/src/multiplex~.c b/src/multiplex~.c index be141cd..d9086cc 100644 --- a/src/multiplex~.c +++ b/src/multiplex~.c @@ -110,3 +110,8 @@ void multiplex_tilde_setup(void) class_sethelpsymbol(mux_class, gensym("zexy/multiplex~")); zexy_register("multiplex~"); } + +void z_multiplex__setup(void) +{ + multiplex_tilde_setup(); +} diff --git a/src/niagara.c b/src/niagara.c index 5764952..2aae8eb 100644 --- a/src/niagara.c +++ b/src/niagara.c @@ -108,3 +108,8 @@ void niagara_setup(void) class_sethelpsymbol(niagara_class, gensym("zexy/niagara")); zexy_register("niagara"); } + +void z_niagara_setup(void) +{ + niagara_setup(); +} diff --git a/src/noish~.c b/src/noish~.c index 6374242..d1cb409 100644 --- a/src/noish~.c +++ b/src/noish~.c @@ -182,3 +182,8 @@ void noish_tilde_setup(void) class_addmethod(noish_class, (t_method)noish_helper, gensym("help"), 0); class_sethelpsymbol(noish_class, gensym("zexy/noish~")); } + +void z_noish__setup(void) +{ + noish_tilde_setup(); +} diff --git a/src/noisi~.c b/src/noisi~.c index 14fb1be..78f89b1 100644 --- a/src/noisi~.c +++ b/src/noisi~.c @@ -165,3 +165,8 @@ void noisi_tilde_setup(void){ class_addmethod(noisi_class, (t_method)noisi_helper, gensym("help"), 0); class_sethelpsymbol(noisi_class, gensym("zexy/noisi~")); } + +void z_noisi__setup(void) +{ + noisi_tilde_setup(); +} diff --git a/src/operating_system.c b/src/operating_system.c index bea6156..8ccab49 100644 --- a/src/operating_system.c +++ b/src/operating_system.c @@ -64,3 +64,8 @@ void operating_system_setup(void) class_sethelpsymbol(operating_system_class, gensym("zexy/operating_system")); zexy_register("operating_system"); } + +void z_operating_system_setup(void) +{ + operating_system_setup(); +} diff --git a/src/packel.c b/src/packel.c index 67c5211..5197feb 100644 --- a/src/packel.c +++ b/src/packel.c @@ -105,3 +105,8 @@ void packel_setup(void) class_sethelpsymbol(packel_class, gensym("zexy/packel")); zexy_register("packel"); } + +void z_packel_setup(void) +{ + packel_setup(); +} diff --git a/src/pack~.c b/src/pack~.c index ca762c9..35827a7 100644 --- a/src/pack~.c +++ b/src/pack~.c @@ -84,3 +84,8 @@ void pack_tilde_setup(void) zexy_register("pack~"); } + +void z_pack__setup(void) +{ + pack_tilde_setup(); +} @@ -138,3 +138,8 @@ void pdf_tilde_setup(void) class_sethelpsymbol(pdf_class, gensym("zexy/pdf~")); zexy_register("pdf~"); } + +void z_pdf__setup(void) +{ + pdf_tilde_setup(); +} diff --git a/src/prime.c b/src/prime.c index 2277019..80903eb 100644 --- a/src/prime.c +++ b/src/prime.c @@ -73,3 +73,8 @@ void prime_setup(void) { class_addfloat(prime_class, prime_float); zexy_register("prime"); } + +void z_prime_setup(void) +{ + prime_setup(); +} diff --git a/src/quantize~.c b/src/quantize~.c index 15190e6..076b853 100644 --- a/src/quantize~.c +++ b/src/quantize~.c @@ -111,3 +111,8 @@ void quantize_tilde_setup(void) class_sethelpsymbol(quantize_class, gensym("zexy/quantize~")); zexy_register("quantize~"); } + +void z_quantize__setup(void) +{ + quantize_tilde_setup(); +} diff --git a/src/repack.c b/src/repack.c index c7b527b..19f62c4 100644 --- a/src/repack.c +++ b/src/repack.c @@ -180,3 +180,8 @@ void repack_setup(void) class_sethelpsymbol(repack_class, gensym("zexy/repack")); zexy_register("repack"); } + +void z_repack_setup(void) +{ + repack_setup(); +} diff --git a/src/repeat.c b/src/repeat.c index dbeedc7..9202e47 100644 --- a/src/repeat.c +++ b/src/repeat.c @@ -58,3 +58,8 @@ void repeat_setup(void) class_sethelpsymbol(repeat_class, gensym("zexy/repeat")); zexy_register("repeat"); } + +void z_repeat_setup(void) +{ + repeat_setup(); +} diff --git a/src/sfplay.c b/src/sfplay.c index 58f76f9..a46c339 100644 --- a/src/sfplay.c +++ b/src/sfplay.c @@ -673,3 +673,8 @@ void sfplay_setup(void) class_addbang(sfplay_class,sfplay_bang); zexy_register("sfplay"); } + +void z_sfplay_setup(void) +{ + sfplay_setup(); +} diff --git a/src/sfrecord.c b/src/sfrecord.c index 35535bc..ec66953 100644 --- a/src/sfrecord.c +++ b/src/sfrecord.c @@ -607,3 +607,8 @@ void sfrecord_setup(void) class_sethelpsymbol(sfrecord_class, gensym("zexy/sf-play_record")); zexy_register("sfrecord"); } + +void z_sfrecord_setup(void) +{ + sfrecord_setup(); +} diff --git a/src/sigzero~.c b/src/sigzero~.c index de9584d..c0d0b40 100644 --- a/src/sigzero~.c +++ b/src/sigzero~.c @@ -109,3 +109,8 @@ void sigzero_tilde_setup(void) class_sethelpsymbol(sigzero_class, gensym("zexy/sigzero~")); zexy_register("sigzero~"); } + +void z_sigzero__setup(void) +{ + sigzero_tilde_setup(); +} @@ -149,3 +149,8 @@ void sort_setup(void) class_sethelpsymbol(sort_class, gensym("zexy/sort")); zexy_register("sort"); } + +void z_sort_setup(void) +{ + sort_setup(); +} diff --git a/src/step~.c b/src/step~.c index f1200e7..2282e6e 100644 --- a/src/step~.c +++ b/src/step~.c @@ -139,3 +139,8 @@ void step_tilde_setup(void) zexy_register("step~"); } + +void z_step__setup(void) +{ + step_tilde_setup(); +} diff --git a/src/strcmp.c b/src/strcmp.c index 4bfeb8b..85308cd 100644 --- a/src/strcmp.c +++ b/src/strcmp.c @@ -101,3 +101,8 @@ void strcmp_setup(void) class_sethelpsymbol(strcmp_class, gensym("zexy/strcmp")); zexy_register("strcmp"); } + +void z_strcmp_setup(void) +{ + strcmp_setup(); +} @@ -59,3 +59,8 @@ void sum_setup(void) class_sethelpsymbol(sum_class, gensym("zexy/sum")); zexy_register("sum"); } + +void z_sum_setup(void) +{ + sum_setup(); +} diff --git a/src/swap~.c b/src/swap~.c index 9f14310..9120066 100644 --- a/src/swap~.c +++ b/src/swap~.c @@ -99,3 +99,8 @@ void swap_tilde_setup(void) class_sethelpsymbol(swap_class, gensym("zexy/swap~")); zexy_register("swap~"); } + +void z_swap__setup(void) +{ + swap_tilde_setup(); +} diff --git a/src/symbol2list.c b/src/symbol2list.c index 7a29e2a..b2d2d43 100644 --- a/src/symbol2list.c +++ b/src/symbol2list.c @@ -161,3 +161,11 @@ void symbol2list_setup(void) class_sethelpsymbol(symbol2list_class, gensym("zexy/symbol2list")); zexy_register("symbol2list"); } +void s2l_setup(void) +{ + symbol2list_setup(); +} +void z_symbol2list_setup(void) +{ + symbol2list_setup(); +} diff --git a/src/tabdump.c b/src/tabdump.c index d308454..fb1ed60 100644 --- a/src/tabdump.c +++ b/src/tabdump.c @@ -115,3 +115,8 @@ void tabdump_setup(void) class_addmethod(tabdump_class, (t_method)tabdump_helper, gensym("help"), 0); class_sethelpsymbol(tabdump_class, gensym("zexy/tabdump")); } + +void z_tabdump_setup(void) +{ + tabdump_setup(); +} diff --git a/src/tabminmax.c b/src/tabminmax.c index 56307e2..0c80af0 100644 --- a/src/tabminmax.c +++ b/src/tabminmax.c @@ -138,3 +138,8 @@ void tabminmax_setup(void) class_addmethod(tabminmax_class, (t_method)tabminmax_helper, gensym("help"), 0); class_sethelpsymbol(tabminmax_class, gensym("zexy/tabminmax")); } + +void z_tabminmax_setup(void) +{ + tabminmax_setup(); +} diff --git a/src/tabset.c b/src/tabset.c index 9234935..004a48b 100644 --- a/src/tabset.c +++ b/src/tabset.c @@ -100,3 +100,8 @@ void tabset_setup(void) class_addmethod(tabset_class, (t_method)tabset_helper, gensym("help"), 0); class_sethelpsymbol(tabset_class, gensym("zexy/tabset")); } + +void z_tabset_setup(void) +{ + tabset_setup(); +} diff --git a/src/tavg~.c b/src/tavg~.c index cddbd41..eec4399 100644 --- a/src/tavg~.c +++ b/src/tavg~.c @@ -97,3 +97,8 @@ void tavg_tilde_setup(void) class_sethelpsymbol(tavg_class, gensym("zexy/tavg~")); zexy_register("tavg~"); } + +void z_tavg__setup(void) +{ + tavg_tilde_setup(); +} @@ -120,3 +120,8 @@ void time_setup(void) class_sethelpsymbol(time_class, gensym("zexy/time")); zexy_register("time"); } + +void z_time_setup(void) +{ + time_setup(); +} diff --git a/src/unpack~.c b/src/unpack~.c index f65d745..c152b8c 100644 --- a/src/unpack~.c +++ b/src/unpack~.c @@ -132,3 +132,8 @@ void unpack_tilde_setup(void) class_sethelpsymbol(sigunpack_class, gensym("zexy/unpack~")); zexy_register("unpack~"); } + +void z_unpack__setup(void) +{ + unpack_tilde_setup(); +} @@ -152,3 +152,8 @@ void urn_setup(void) class_sethelpsymbol(urn_class, gensym("zexy/urn")); zexy_register("urn"); } + +void z_urn_setup(void) +{ + urn_setup(); +} diff --git a/src/winNT_portio.c b/src/winNT_portio.c index d892977..6eee64c 100644 --- a/src/winNT_portio.c +++ b/src/winNT_portio.c @@ -105,3 +105,7 @@ int open_port(int port) }
}
#endif /* NT */
+
+void z_winNT_portio_setup(void)
+{
+}
@@ -79,3 +79,8 @@ void wrap_setup(void) { class_sethelpsymbol(wrap_class, gensym("zexy/wrap")); zexy_register("wrap"); } + +void z_wrap_setup(void) +{ + wrap_setup(); +} diff --git a/src/z_sigbin.c b/src/z_sigbin.c index dc4932e..21a39b6 100644 --- a/src/z_sigbin.c +++ b/src/z_sigbin.c @@ -814,3 +814,8 @@ void z_sigbin_setup(void) sigAND_setup(); zexy_register("sigbin"); } +void z_z_sigbin_setup(void) +{ + /* ok, looks a bit like nonsense... */ + z_sigbin_setup(); +} @@ -130,3 +130,8 @@ void z_tilde_setup(void) class_sethelpsymbol(zNdelay_class, gensym("zexy/z~")); zexy_register("z~"); } + +void z_z__setup(void) +{ + z_tilde_setup(); +} |