diff --git a/externals/zexy/ChangeLog b/externals/zexy/ChangeLog index 6bbb34d5b76aeb23c1442cbd0d12df6057d0933f..dcd448be92e13059438946812084c18df81d4576 100644 --- a/externals/zexy/ChangeLog +++ b/externals/zexy/ChangeLog @@ -1,11 +1,15 @@ -zexy (2.2.6) UNRELEASED; urgency=low +zexy (2.2.6) RELEASED; urgency=low * Fixes NULL-pointer access and file handle leaks * Fixes for autotools * Allow to build both single-object and multiobject binaries in one go - (just use "--enable-library=both") + (just use "--enable-library=both") + * Allow setting the build-date string via autoconf-args + * Consistency fixes for objects. - -- IOhannes m zmoelnig (gpg-key at iem) <zmoelnig@iem.at> Tue, 17 Jan 2012 10:12:13 +0100 + * Switched to git + + -- IOhannes m zmölnig <zmoelnig@iem.at> Fri, 22 Jan 2016 22:16:02 +0100 zexy (2.2.5) RELEASED; urgency=low diff --git a/externals/zexy/Makefile.in b/externals/zexy/Makefile.in deleted file mode 100644 index 61bdd60cbbde9a9d07f515069c0f2a4a4b6bffa0..0000000000000000000000000000000000000000 --- a/externals/zexy/Makefile.in +++ /dev/null @@ -1,818 +0,0 @@ -# Makefile.in generated by automake 1.11.3 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = . -DIST_COMMON = $(am__configure_deps) $(dist_zexy_DATA) \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/config.h.in $(srcdir)/zexy-meta.pd.in \ - $(top_srcdir)/configure AUTHORS ChangeLog INSTALL config.guess \ - config.sub depcomp install-sh ltmain.sh missing -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/iem_checkflags.m4 \ - $(top_srcdir)/m4/iem_fat.m4 \ - $(top_srcdir)/m4/iem_operatingsystem.m4 \ - $(top_srcdir)/m4/iem_parallelport.m4 \ - $(top_srcdir)/m4/iem_simd.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = config.h -CONFIG_CLEAN_FILES = zexy-meta.pd -CONFIG_CLEAN_VPATH_FILES = -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-dvi-recursive install-exec-recursive \ - install-html-recursive install-info-recursive \ - install-pdf-recursive install-ps-recursive install-recursive \ - installcheck-recursive installdirs-recursive pdf-recursive \ - ps-recursive uninstall-recursive -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(zexydir)" -DATA = $(dist_zexy_DATA) -RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ - distclean-recursive maintainer-clean-recursive -AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ - $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ - distdir dist dist-all distcheck -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - if test -d "$(distdir)"; then \ - find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -rf "$(distdir)" \ - || { sleep 5 && rm -rf "$(distdir)"; }; \ - else :; fi -am__relativize = \ - dir0=`pwd`; \ - sed_first='s,^\([^/]*\)/.*$$,\1,'; \ - sed_rest='s,^[^/]*/*,,'; \ - sed_last='s,^.*/\([^/]*\)$$,\1,'; \ - sed_butlast='s,/*[^/]*$$,,'; \ - while test -n "$$dir1"; do \ - first=`echo "$$dir1" | sed -e "$$sed_first"`; \ - if test "$$first" != "."; then \ - if test "$$first" = ".."; then \ - dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ - dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ - else \ - first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ - if test "$$first2" = "$$first"; then \ - dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ - else \ - dir2="../$$dir2"; \ - fi; \ - dir0="$$dir0"/"$$first"; \ - fi; \ - fi; \ - dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ - done; \ - reldir="$$dir2" -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ - | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -ARCH_FLAG = @ARCH_FLAG@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTENSION = @EXTENSION@ -EXTRA_LTFLAGS = @EXTRA_LTFLAGS@ -FGREP = @FGREP@ -GREP = @GREP@ -INCLUDES = @INCLUDES@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBTOOL_DEPS = @LIBTOOL_DEPS@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = foreign -ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = src abs reference tests build -zexydir = $(pkglibdir) -dist_zexy_DATA = \ - AUTHORS \ - README.txt \ - INSTALL \ - LICENSE.txt \ - ChangeLog \ - zexy-meta.pd - -all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-recursive - -.SUFFIXES: -am--refresh: Makefile - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ - $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - $(am__cd) $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -$(am__aclocal_m4_deps): - -config.h: stamp-h1 - @if test ! -f $@; then rm -f stamp-h1; else :; fi - @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi - -stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status config.h -$(srcdir)/config.h.in: $(am__configure_deps) - ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) - rm -f stamp-h1 - touch $@ - -distclean-hdr: - -rm -f config.h stamp-h1 -zexy-meta.pd: $(top_builddir)/config.status $(srcdir)/zexy-meta.pd.in - cd $(top_builddir) && $(SHELL) ./config.status $@ - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool config.lt -install-dist_zexyDATA: $(dist_zexy_DATA) - @$(NORMAL_INSTALL) - test -z "$(zexydir)" || $(MKDIR_P) "$(DESTDIR)$(zexydir)" - @list='$(dist_zexy_DATA)'; test -n "$(zexydir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(zexydir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(zexydir)" || exit $$?; \ - done - -uninstall-dist_zexyDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_zexy_DATA)'; test -n "$(zexydir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(zexydir)'; $(am__uninstall_files_from_dir) - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @fail= failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -$(RECURSIVE_CLEAN_TARGETS): - @fail= failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d "$(distdir)" || mkdir "$(distdir)" - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done - @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(MKDIR_P) "$(distdir)/$$subdir" \ - || exit 1; \ - fi; \ - done - @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ - $(am__relativize); \ - new_distdir=$$reldir; \ - dir1=$$subdir; dir2="$(top_distdir)"; \ - $(am__relativize); \ - new_top_distdir=$$reldir; \ - echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ - echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ - ($(am__cd) $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$new_top_distdir" \ - distdir="$$new_distdir" \ - am__remove_distdir=: \ - am__skip_length_check=: \ - am__skip_mode_fix=: \ - distdir) \ - || exit 1; \ - fi; \ - done - -test -n "$(am__skip_mode_fix)" \ - || find "$(distdir)" -type d ! -perm -755 \ - -exec chmod u+rwx,go+rx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r "$(distdir)" -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-lzip: distdir - tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz - $(am__remove_distdir) - -dist-lzma: distdir - tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma - $(am__remove_distdir) - -dist-xz: distdir - tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.lzma*) \ - lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ - *.tar.lz*) \ - lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ - *.tar.xz*) \ - xz -dc $(distdir).tar.xz | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - test -d $(distdir)/_build || exit 0; \ - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && am__cwd=`pwd` \ - && $(am__cd) $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(AM_DISTCHECK_CONFIGURE_FLAGS) \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ - && cd "$$am__cwd" \ - || exit 1 - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @test -n '$(distuninstallcheck_dir)' || { \ - echo 'ERROR: trying to run $@ with an empty' \ - '$$(distuninstallcheck_dir)' >&2; \ - exit 1; \ - }; \ - $(am__cd) '$(distuninstallcheck_dir)' || { \ - echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ - exit 1; \ - }; \ - test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-recursive -all-am: Makefile $(DATA) config.h -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(zexydir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-hdr \ - distclean-libtool distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: install-dist_zexyDATA - -install-dvi: install-dvi-recursive - -install-dvi-am: - -install-exec-am: - -install-html: install-html-recursive - -install-html-am: - -install-info: install-info-recursive - -install-info-am: - -install-man: - -install-pdf: install-pdf-recursive - -install-pdf-am: - -install-ps: install-ps-recursive - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-dist_zexyDATA - -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ - ctags-recursive install-am install-strip tags-recursive - -.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ - all all-am am--refresh check check-am clean clean-generic \ - clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ - dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \ - dist-zip distcheck distclean distclean-generic distclean-hdr \ - distclean-libtool distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am \ - install-dist_zexyDATA install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ - uninstall uninstall-am uninstall-dist_zexyDATA - -libtool: $(LIBTOOL_DEPS) - $(SHELL) ./config.status libtool - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/externals/zexy/SConscript b/externals/zexy/SConscript deleted file mode 100644 index ea874a2a133098962bd5886cf35bdb44753c58bb..0000000000000000000000000000000000000000 --- a/externals/zexy/SConscript +++ /dev/null @@ -1,13 +0,0 @@ -import glob -import os -Import('env prefix') - -# generate custom z_zexy files -os.system('test -e src/z_zexy.h && rm src/z_zexy.*') -zexy_src = glob.glob('src/*.c') -os.system('cd src && sh makesource.sh') - -zexy = env.SharedLibrary(target = 'zexy', source = zexy_src) -env.Alias('install', env.Install(os.path.join(prefix, 'extra'), [zexy, glob.glob('abs/*.pd')])) -env.Alias('install', env.Install(os.path.join(prefix, 'doc/zexy'), ['zexy.pd', glob.glob('examples/*.pd')])) -Default(zexy) diff --git a/externals/zexy/abs/Makefile.in b/externals/zexy/abs/Makefile.in deleted file mode 100644 index 7ad3e6d824f2efc66155b4013229ce7c3354c839..0000000000000000000000000000000000000000 --- a/externals/zexy/abs/Makefile.in +++ /dev/null @@ -1,516 +0,0 @@ -# Makefile.in generated by automake 1.11.3 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = abs -DIST_COMMON = $(dist_zexy_DATA) $(dist_zexyalias_DATA) \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/iem_checkflags.m4 \ - $(top_srcdir)/m4/iem_fat.m4 \ - $(top_srcdir)/m4/iem_operatingsystem.m4 \ - $(top_srcdir)/m4/iem_parallelport.m4 \ - $(top_srcdir)/m4/iem_simd.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -SOURCES = -DIST_SOURCES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(zexydir)" "$(DESTDIR)$(zexyaliasdir)" -DATA = $(dist_zexy_DATA) $(dist_zexyalias_DATA) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -ARCH_FLAG = @ARCH_FLAG@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTENSION = @EXTENSION@ -EXTRA_LTFLAGS = @EXTRA_LTFLAGS@ -FGREP = @FGREP@ -GREP = @GREP@ -INCLUDES = @INCLUDES@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBTOOL_DEPS = @LIBTOOL_DEPS@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = foreign -SUFFIXES = .pd -zexydir = $(pkglibdir) -dist_zexy_DATA = \ - 0x260x260x7e.pd \ - 0x3c0x7e-help.pd \ - 0x3c0x7e.pd \ - 0x3d0x3d0x7e.pd \ - 0x3e0x7e-help.pd \ - 0x3e0x7e.pd \ - 0x7c0x7c0x7e-help.pd \ - 0x7c0x7c0x7e.pd \ - a2l.pd \ - absgn~-help.pd \ - absgn~.pd \ - abs~-help.pd \ - abs~.pd \ - cart2pol-help.pd \ - cart2pol.pd \ - cart2sph-help.pd \ - cart2sph.pd \ - deg2rad-help.pd \ - deg2rad.pd \ - ==~-help.pd \ - &&~-help.pd \ - length.pd \ - list2int.pd \ - mavg.pd \ - mean-help.pd \ - mean.pd \ - minmax.pd \ - nop~-help.pd \ - nop-help.pd \ - nop~.pd \ - nop.pd \ - pol2cart-help.pd \ - pol2cart.pd \ - pol2sph-help.pd \ - pol2sph.pd \ - polyfun-help.pd \ - polyfun.pd \ - rad2deg-help.pd \ - rad2deg.pd \ - repack.pd \ - segregate-help.pd \ - segregate.pd \ - sgn~-help.pd \ - sgn~.pd \ - sph2cart-help.pd \ - sph2cart.pd \ - sph2pol-help.pd \ - sph2pol.pd \ - sum.pd \ - tabset.pd \ - uniqsym-help.pd \ - uniqsym.pd - -############# -# symlinks for aliases -zexyaliasdir = $(pkglibdir) -dist_zexyalias_DATA = any2list.pd l2i.pd -all: all-am - -.SUFFIXES: -.SUFFIXES: .pd -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign abs/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign abs/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-dist_zexyDATA: $(dist_zexy_DATA) - @$(NORMAL_INSTALL) - test -z "$(zexydir)" || $(MKDIR_P) "$(DESTDIR)$(zexydir)" - @list='$(dist_zexy_DATA)'; test -n "$(zexydir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(zexydir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(zexydir)" || exit $$?; \ - done - -uninstall-dist_zexyDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_zexy_DATA)'; test -n "$(zexydir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(zexydir)'; $(am__uninstall_files_from_dir) -install-dist_zexyaliasDATA: $(dist_zexyalias_DATA) - @$(NORMAL_INSTALL) - test -z "$(zexyaliasdir)" || $(MKDIR_P) "$(DESTDIR)$(zexyaliasdir)" - @list='$(dist_zexyalias_DATA)'; test -n "$(zexyaliasdir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(zexyaliasdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(zexyaliasdir)" || exit $$?; \ - done - -uninstall-dist_zexyaliasDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_zexyalias_DATA)'; test -n "$(zexyaliasdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(zexyaliasdir)'; $(am__uninstall_files_from_dir) -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: - for dir in "$(DESTDIR)$(zexydir)" "$(DESTDIR)$(zexyaliasdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-local mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-dist_zexyDATA install-dist_zexyaliasDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-dist_zexyDATA uninstall-dist_zexyaliasDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - clean-local distclean distclean-generic distclean-libtool \ - distdir dvi dvi-am html html-am info info-am install \ - install-am install-data install-data-am install-dist_zexyDATA \ - install-dist_zexyaliasDATA install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-dist_zexyDATA uninstall-dist_zexyaliasDATA - - -clean-local: clean_zexyalias -.PHONY: clean_zexyalias - -# create aliases -$(dist_zexyalias_DATA): - test -e $< && $(LN_S) $< $@ - -# delete aliases -clean_zexyalias: - -rm -f $(dist_zexyalias_DATA) - -# define aliases -any2list.pd: a2l.pd -l2i.pd: list2int.pd - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/externals/zexy/abs/a2l-help.pd b/externals/zexy/abs/a2l-help.pd deleted file mode 120000 index 9de9ffc71cb0a20bf2bee1ba0db34a39a304ff30..0000000000000000000000000000000000000000 --- a/externals/zexy/abs/a2l-help.pd +++ /dev/null @@ -1 +0,0 @@ -../reference/a2l-help.pd \ No newline at end of file diff --git a/externals/zexy/abs/any2list-help.pd b/externals/zexy/abs/any2list-help.pd deleted file mode 120000 index 9de9ffc71cb0a20bf2bee1ba0db34a39a304ff30..0000000000000000000000000000000000000000 --- a/externals/zexy/abs/any2list-help.pd +++ /dev/null @@ -1 +0,0 @@ -../reference/a2l-help.pd \ No newline at end of file diff --git a/externals/zexy/abs/l2i-help.pd b/externals/zexy/abs/l2i-help.pd deleted file mode 120000 index 2c713e3395b22d433be99e2cfd54362d79a93d90..0000000000000000000000000000000000000000 --- a/externals/zexy/abs/l2i-help.pd +++ /dev/null @@ -1 +0,0 @@ -../reference/list2int-help.pd \ No newline at end of file diff --git a/externals/zexy/abs/length-help.pd b/externals/zexy/abs/length-help.pd deleted file mode 120000 index f94d3529ec670411208493e425cd1e2e813a3583..0000000000000000000000000000000000000000 --- a/externals/zexy/abs/length-help.pd +++ /dev/null @@ -1 +0,0 @@ -../reference/length-help.pd \ No newline at end of file diff --git a/externals/zexy/abs/list2int-help.pd b/externals/zexy/abs/list2int-help.pd deleted file mode 120000 index 2c713e3395b22d433be99e2cfd54362d79a93d90..0000000000000000000000000000000000000000 --- a/externals/zexy/abs/list2int-help.pd +++ /dev/null @@ -1 +0,0 @@ -../reference/list2int-help.pd \ No newline at end of file diff --git a/externals/zexy/abs/mavg-help.pd b/externals/zexy/abs/mavg-help.pd deleted file mode 120000 index ee644467291eb558e66fdafff33b676e44761364..0000000000000000000000000000000000000000 --- a/externals/zexy/abs/mavg-help.pd +++ /dev/null @@ -1 +0,0 @@ -../reference/mavg-help.pd \ No newline at end of file diff --git a/externals/zexy/abs/minmax-help.pd b/externals/zexy/abs/minmax-help.pd deleted file mode 120000 index 5aa1dd2830419cab815419183cdfa4f505faa60d..0000000000000000000000000000000000000000 --- a/externals/zexy/abs/minmax-help.pd +++ /dev/null @@ -1 +0,0 @@ -../reference/minmax-help.pd \ No newline at end of file diff --git a/externals/zexy/abs/repack-help.pd b/externals/zexy/abs/repack-help.pd deleted file mode 120000 index f9a673f35729feca93b80c2839f8c66e2a594413..0000000000000000000000000000000000000000 --- a/externals/zexy/abs/repack-help.pd +++ /dev/null @@ -1 +0,0 @@ -../reference/repack-help.pd \ No newline at end of file diff --git a/externals/zexy/abs/sum-help.pd b/externals/zexy/abs/sum-help.pd deleted file mode 120000 index d3564569b7092cf8172db8684c4e87362e4f3801..0000000000000000000000000000000000000000 --- a/externals/zexy/abs/sum-help.pd +++ /dev/null @@ -1 +0,0 @@ -../reference/sum-help.pd \ No newline at end of file diff --git a/externals/zexy/abs/tabset-help.pd b/externals/zexy/abs/tabset-help.pd deleted file mode 120000 index 6538333d75814444571045d5efb818633b127786..0000000000000000000000000000000000000000 --- a/externals/zexy/abs/tabset-help.pd +++ /dev/null @@ -1 +0,0 @@ -../reference/tabset-help.pd \ No newline at end of file diff --git a/externals/zexy/build/Makefile.in b/externals/zexy/build/Makefile.in deleted file mode 100644 index 1e0de4317e25cfa1d0384bad859172a8f93661d1..0000000000000000000000000000000000000000 --- a/externals/zexy/build/Makefile.in +++ /dev/null @@ -1,391 +0,0 @@ -# Makefile.in generated by automake 1.11.3 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = build -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/iem_checkflags.m4 \ - $(top_srcdir)/m4/iem_fat.m4 \ - $(top_srcdir)/m4/iem_operatingsystem.m4 \ - $(top_srcdir)/m4/iem_parallelport.m4 \ - $(top_srcdir)/m4/iem_simd.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -ARCH_FLAG = @ARCH_FLAG@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTENSION = @EXTENSION@ -EXTRA_LTFLAGS = @EXTRA_LTFLAGS@ -FGREP = @FGREP@ -GREP = @GREP@ -INCLUDES = @INCLUDES@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBTOOL_DEPS = @LIBTOOL_DEPS@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = foreign -EXTRA_DIST = \ - autoconf/README.txt \ - README.txt \ - win-vs2003/zexy.sln \ - win-vs2003/zexy.vcproj \ - win-vs2008/zexy.sln \ - win-vs2008/zexy.vcproj \ - win-vs6/zexy.dsp \ - win-vs6/zexy.dsw \ - win-vs7.10/zexy.sln \ - win-vs7.10/zexy.vcproj \ - autoconf/README.txt \ - Makefile.am \ - README.txt \ - win-vs2003/zexy.sln \ - win-vs2003/zexy.vcproj \ - win-vs2008/zexy.sln \ - win-vs2008/zexy.vcproj \ - win-vs6/zexy.dsp \ - win-vs6/zexy.dsw \ - win-vs7.10/zexy.sln \ - win-vs7.10/zexy.vcproj - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign build/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign build/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/externals/zexy/build/win-vs2008/zexy.vcproj b/externals/zexy/build/win-vs2008/zexy.vcproj index 30bbed3a242e2b0af6a85468790b3a68a13ed7c5..a9de903cd7ad45ace6b4a90c2f354df92ac7b587 100644 --- a/externals/zexy/build/win-vs2008/zexy.vcproj +++ b/externals/zexy/build/win-vs2008/zexy.vcproj @@ -114,375 +114,107 @@ Name="objectclasses" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" > - <File - RelativePath="..\..\src\0x260x260x7e.c" - > - </File> - <File - RelativePath="..\..\src\0x2e.c" - > - </File> - <File - RelativePath="..\..\src\0x3c0x7e.c" - > - </File> - <File - RelativePath="..\..\src\0x3d0x3d0x7e.c" - > - </File> - <File - RelativePath="..\..\src\0x3e0x7e.c" - > - </File> - <File - RelativePath="..\..\src\0x7c0x7c0x7e.c" - > - </File> - <File - RelativePath="..\..\src\a2l.c" - > - </File> - <File - RelativePath="..\..\src\absgn~.c" - > - </File> - <File - RelativePath="..\..\src\abs~.c" - > - </File> - <File - RelativePath="..\..\src\atof.c" - > - </File> - <File - RelativePath="..\..\src\atoi.c" - > - </File> - <File - RelativePath="..\..\src\avg~.c" - > - </File> - <File - RelativePath="..\..\src\blockmirror~.c" - > - </File> - <File - RelativePath="..\..\src\blockshuffle~.c" - > - </File> - <File - RelativePath="..\..\src\blockswap~.c" - > - </File> - <File - RelativePath="..\..\src\date.c" - > - </File> - <File - RelativePath="..\..\src\demultiplex.c" - > - </File> - <File - RelativePath="..\..\src\demultiplex~.c" - > - </File> - <File - RelativePath="..\..\src\dfreq~.c" - > - </File> - <File - RelativePath="..\..\src\dirac~.c" - > - </File> - <File - RelativePath="..\..\src\drip.c" - > - </File> - <File - RelativePath="..\..\src\envrms~.c" - > - </File> - <File - RelativePath="..\..\src\fifop.c" - > - </File> - <File - RelativePath="..\..\src\freadln.c" - > - </File> - <File - RelativePath="..\..\src\fwriteln.c" - > - </File> - <File - RelativePath="..\..\src\glue.c" - > - </File> - <File - RelativePath="..\..\src\index.c" - > - </File> - <File - RelativePath="..\..\src\length.c" - > - </File> - <File - RelativePath="..\..\src\lifop.c" - > - </File> - <File - RelativePath="..\..\src\limiter~.c" - > - </File> - <File - RelativePath="..\..\src\list2int.c" - > - </File> - <File - RelativePath="..\..\src\list2lists.c" - > - </File> - <File - RelativePath="..\..\src\list2symbol.c" - > - </File> - <File - RelativePath="..\..\src\lister.c" - > - </File> - <File - RelativePath="..\..\src\listfind.c" - > - </File> - <File - RelativePath="..\..\src\liststorage.c" - > - </File> - <File - RelativePath="..\..\src\lpt.c" - > - </File> - <File - RelativePath="..\..\src\makesymbol.c" - > - </File> - <File - RelativePath="..\..\src\matchbox.c" - > - </File> - <File - RelativePath="..\..\src\mavg.c" - > - </File> - <File - RelativePath="..\..\src\minmax.c" - > - </File> - <File - RelativePath="..\..\src\msgfile.c" - > - </File> - <File - RelativePath="..\..\src\multiline~.c" - > - </File> - <File - RelativePath="..\..\src\multiplex.c" - > - </File> - <File - RelativePath="..\..\src\multiplex~.c" - > - </File> - <File - RelativePath="..\..\src\multireceive.c" - > - </File> - <File - RelativePath="..\..\src\niagara.c" - > - </File> - <File - RelativePath="..\..\src\noish~.c" - > - </File> - <File - RelativePath="..\..\src\noisi~.c" - > - </File> - <File - RelativePath="..\..\src\operating_system.c" - > - </File> - <File - RelativePath="..\..\src\pack.c" - > - </File> - <File - RelativePath="..\..\src\packel.c" - > - </File> - <File - RelativePath="..\..\src\pack~.c" - > - </File> - <File - RelativePath="..\..\src\pdf~.c" - > - </File> - <File - RelativePath="..\..\src\prime.c" - > - </File> - <File - RelativePath="..\..\src\quantize~.c" - > - </File> - <File - RelativePath="..\..\src\rawprint.c" - > - </File> - <File - RelativePath="..\..\src\regex.c" - > - </File> - <File - RelativePath="..\..\src\relay.c" - > - </File> - <File - RelativePath="..\..\src\repack.c" - > - </File> - <File - RelativePath="..\..\src\repeat.c" - > - </File> - <File - RelativePath="..\..\src\route~.c" - > - </File> - <File - RelativePath="..\..\src\sfplay.c" - > - </File> - <File - RelativePath="..\..\src\sfrecord.c" - > - </File> - <File - RelativePath="..\..\src\sgn~.c" - > - </File> - <File - RelativePath="..\..\src\sigzero~.c" - > - </File> - <File - RelativePath="..\..\src\sleepgrain.c" - > - </File> - <File - RelativePath="..\..\src\sort.c" - > - </File> - <File - RelativePath="..\..\src\step~.c" - > - </File> - <File - RelativePath="..\..\src\strcmp.c" - > - </File> - <File - RelativePath="..\..\src\sum.c" - > - </File> - <File - RelativePath="..\..\src\swap~.c" - > - </File> - <File - RelativePath="..\..\src\symbol2list.c" - > - </File> - <File - RelativePath="..\..\src\tabdump.c" - > - </File> - <File - RelativePath="..\..\src\tabminmax.c" - > - </File> - <File - RelativePath="..\..\src\tabread4~~.c" - > - </File> - <File - RelativePath="..\..\src\tabset.c" - > - </File> - <File - RelativePath="..\..\src\tavg~.c" - > - </File> - <File - RelativePath="..\..\src\time.c" - > - </File> - <File - RelativePath="..\..\src\unpack.c" - > - </File> - <File - RelativePath="..\..\src\unpack~.c" - > - </File> - <File - RelativePath="..\..\src\urn.c" - > - </File> - <File - RelativePath="..\..\src\wrap.c" - > - </File> - <File - RelativePath="..\..\src\zexySIMD.h" - > - </File> - <File - RelativePath="..\..\src\z~.c" - > - </File> + <File RelativePath="..\..\src\0x260x260x7e.c" > </File> + <File RelativePath="..\..\src\0x2e.c" > </File> + <File RelativePath="..\..\src\0x3c0x7e.c" > </File> + <File RelativePath="..\..\src\0x3d0x3d0x7e.c" > </File> + <File RelativePath="..\..\src\0x3e0x7e.c" > </File> + <File RelativePath="..\..\src\0x7c0x7c0x7e.c" > </File> + <File RelativePath="..\..\src\a2l.c" > </File> + <File RelativePath="..\..\src\absgn~.c" > </File> + <File RelativePath="..\..\src\abs~.c" > </File> + <File RelativePath="..\..\src\atof.c" > </File> + <File RelativePath="..\..\src\atoi.c" > </File> + <File RelativePath="..\..\src\avg~.c" > </File> + <File RelativePath="..\..\src\blockmirror~.c" > </File> + <File RelativePath="..\..\src\blockshuffle~.c" > </File> + <File RelativePath="..\..\src\blockswap~.c" > </File> + <File RelativePath="..\..\src\date.c" > </File> + <File RelativePath="..\..\src\demultiplex.c" > </File> + <File RelativePath="..\..\src\demultiplex~.c" > </File> + <File RelativePath="..\..\src\dfreq~.c" > </File> + <File RelativePath="..\..\src\dirac~.c" > </File> + <File RelativePath="..\..\src\doublepole~.c"></File> + <File RelativePath="..\..\src\drip.c" > </File> + <File RelativePath="..\..\src\envrms~.c" > </File> + <File RelativePath="..\..\src\fifop.c" > </File> + <File RelativePath="..\..\src\freadln.c" > </File> + <File RelativePath="..\..\src\fwriteln.c" > </File> + <File RelativePath="..\..\src\glue.c" > </File> + <File RelativePath="..\..\src\index.c" > </File> + <File RelativePath="..\..\src\length.c" > </File> + <File RelativePath="..\..\src\lifop.c" > </File> + <File RelativePath="..\..\src\limiter~.c" > </File> + <File RelativePath="..\..\src\list2int.c" > </File> + <File RelativePath="..\..\src\list2lists.c" > </File> + <File RelativePath="..\..\src\list2symbol.c" > </File> + <File RelativePath="..\..\src\lister.c" > </File> + <File RelativePath="..\..\src\listfind.c" > </File> + <File RelativePath="..\..\src\liststorage.c" > </File> + <File RelativePath="..\..\src\longload~.c"></File> + <File RelativePath="..\..\src\lpt.c" > </File> + <File RelativePath="..\..\src\makesymbol.c" > </File> + <File RelativePath="..\..\src\matchbox.c" > </File> + <File RelativePath="..\..\src\mavg.c" > </File> + <File RelativePath="..\..\src\minmax.c" > </File> + <File RelativePath="..\..\src\msgfile.c" > </File> + <File RelativePath="..\..\src\multiline~.c" > </File> + <File RelativePath="..\..\src\multiplex.c" > </File> + <File RelativePath="..\..\src\multiplex~.c" > </File> + <File RelativePath="..\..\src\multireceive.c" > </File> + <File RelativePath="..\..\src\niagara.c" > </File> + <File RelativePath="..\..\src\noish~.c" > </File> + <File RelativePath="..\..\src\noisi~.c" > </File> + <File RelativePath="..\..\src\operating_system.c" > </File> + <File RelativePath="..\..\src\pack.c" > </File> + <File RelativePath="..\..\src\packel.c" > </File> + <File RelativePath="..\..\src\pack~.c" > </File> + <File RelativePath="..\..\src\pdf~.c" > </File> + <File RelativePath="..\..\src\prime.c" > </File> + <File RelativePath="..\..\src\quantize~.c" > </File> + <File RelativePath="..\..\src\rawprint.c" > </File> + <File RelativePath="..\..\src\regex.c" > </File> + <File RelativePath="..\..\src\relay.c" > </File> + <File RelativePath="..\..\src\repack.c" > </File> + <File RelativePath="..\..\src\repeat.c" > </File> + <File RelativePath="..\..\src\route~.c" > </File> + <File RelativePath="..\..\src\sfplay.c" > </File> + <File RelativePath="..\..\src\sfrecord.c" > </File> + <File RelativePath="..\..\src\sgn~.c" > </File> + <File RelativePath="..\..\src\sigzero~.c" > </File> + <File RelativePath="..\..\src\sleepgrain.c" > </File> + <File RelativePath="..\..\src\sort.c" > </File> + <File RelativePath="..\..\src\step~.c" > </File> + <File RelativePath="..\..\src\strcmp.c" > </File> + <File RelativePath="..\..\src\sum.c" > </File> + <File RelativePath="..\..\src\swap~.c" > </File> + <File RelativePath="..\..\src\symbol2list.c" > </File> + <File RelativePath="..\..\src\tabdump.c" > </File> + <File RelativePath="..\..\src\tabminmax.c" > </File> + <File RelativePath="..\..\src\tabread4~~.c" > </File> + <File RelativePath="..\..\src\tabset.c" > </File> + <File RelativePath="..\..\src\tavg~.c" > </File> + <File RelativePath="..\..\src\time.c" > </File> + <File RelativePath="..\..\src\unpack.c" > </File> + <File RelativePath="..\..\src\unpack~.c" > </File> + <File RelativePath="..\..\src\urn.c" > </File> + <File RelativePath="..\..\src\wrap.c" > </File> + <File RelativePath="..\..\src\z~.c" > </File> </Filter> <Filter Name="zexy" Filter="h;hpp;hxx;hm;inl" > - <File - RelativePath="..\..\src\z_zexy.c" - > - </File> - <File - RelativePath="..\..\src\z_zexy.h" - > - </File> - <File - RelativePath="..\..\src\zexy.c" - > - </File> - <File - RelativePath="..\..\src\zexy.h" - > - </File> + <File RelativePath="..\..\src\z_zexy.c" > </File> + <File RelativePath="..\..\src\z_zexy.h" > </File> + <File RelativePath="..\..\src\zexySIMD.h" > </File> + <File RelativePath="..\..\src\zexy.c" > </File> + <File RelativePath="..\..\src\zexy.h" > </File> </Filter> <Filter Name="helper" > - <File - RelativePath="..\..\src\winNT_portio.c" - > - </File> + <File RelativePath="..\..\src\winNT_portio.c" > </File> </Filter> <Filter Name="tmp" diff --git a/externals/zexy/config.guess b/externals/zexy/config.guess deleted file mode 100755 index d622a44e551f209d5e8c5462b3fe53a162f7b330..0000000000000000000000000000000000000000 --- a/externals/zexy/config.guess +++ /dev/null @@ -1,1530 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -# 2011, 2012 Free Software Foundation, Inc. - -timestamp='2012-02-10' - -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see <http://www.gnu.org/licenses/>. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Originally written by Per Bothner. Please send patches (context -# diff format) to <config-patches@gnu.org> and include a ChangeLog -# entry. -# -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. -# -# You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] - -Output the configuration name of the system \`$me' is run on. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to <config-patches@gnu.org>." - -version="\ -GNU config.guess ($timestamp) - -Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" >&2 - exit 1 ;; - * ) - break ;; - esac -done - -if test $# != 0; then - echo "$me: too many arguments$help" >&2 - exit 1 -fi - -trap 'exit 1' 1 2 15 - -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a -# compiler to aid in system detection is discouraged as it requires -# temporary files to be created and, as you can see below, it is a -# headache to deal with in a portable fashion. - -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. - -# Portable tmp directory creation inspired by the Autoconf team. - -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; - for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then - CC_FOR_BUILD="$c"; break ; - fi ; - done ; - if test x"$CC_FOR_BUILD" = x ; then - CC_FOR_BUILD=no_compiler_found ; - fi - ;; - ,,*) CC_FOR_BUILD=$CC ;; - ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ; set_cc_for_build= ;' - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 1994-08-24) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - *:NetBSD:*:*) - # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently - # switched to ELF, *-*-netbsd* would select the old - # object file format. This provides both forward - # compatibility and a consistent mechanism for selecting the - # object file format. - # - # Note: NetBSD doesn't particularly care about the vendor - # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || echo unknown)` - case "${UNAME_MACHINE_ARCH}" in - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - sh5el) machine=sh5le-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; - esac - # The Operating System including object format, if it has switched - # to ELF recently, or will in the future. - case "${UNAME_MACHINE_ARCH}" in - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ELF__ - then - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). - # Return netbsd for either. FIX? - os=netbsd - else - os=netbsdelf - fi - ;; - *) - os=netbsd - ;; - esac - # The OS release - # Debian GNU/NetBSD machines have a different userland, and - # thus, need a distinct triplet. However, they do not need - # kernel version information, so it can be replaced with a - # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in - Debian*) - release='-gnu' - ;; - *) - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - ;; - esac - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}" - exit ;; - *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} - exit ;; - *:ekkoBSD:*:*) - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} - exit ;; - *:SolidBSD:*:*) - echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} - exit ;; - macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd${UNAME_RELEASE} - exit ;; - *:MirBSD:*:*) - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} - exit ;; - alpha:OSF1:*:*) - case $UNAME_RELEASE in - *4.0) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - ;; - *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` - ;; - esac - # According to Compaq, /usr/sbin/psrinfo has been available on - # OSF/1 and Tru64 systems produced since 1995. I hope that - # covers most systems running today. This code pipes the CPU - # types through head -n 1, so we only detect the type of CPU 0. - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` - case "$ALPHA_CPU_TYPE" in - "EV4 (21064)") - UNAME_MACHINE="alpha" ;; - "EV4.5 (21064)") - UNAME_MACHINE="alpha" ;; - "LCA4 (21066/21068)") - UNAME_MACHINE="alpha" ;; - "EV5 (21164)") - UNAME_MACHINE="alphaev5" ;; - "EV5.6 (21164A)") - UNAME_MACHINE="alphaev56" ;; - "EV5.6 (21164PC)") - UNAME_MACHINE="alphapca56" ;; - "EV5.7 (21164PC)") - UNAME_MACHINE="alphapca57" ;; - "EV6 (21264)") - UNAME_MACHINE="alphaev6" ;; - "EV6.7 (21264A)") - UNAME_MACHINE="alphaev67" ;; - "EV6.8CB (21264C)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8AL (21264B)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8CX (21264D)") - UNAME_MACHINE="alphaev68" ;; - "EV6.9A (21264/EV69A)") - UNAME_MACHINE="alphaev69" ;; - "EV7 (21364)") - UNAME_MACHINE="alphaev7" ;; - "EV7.9 (21364A)") - UNAME_MACHINE="alphaev79" ;; - esac - # A Pn.n version is a patched version. - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - # Reset EXIT trap before exiting to avoid spurious non-zero exit code. - exitcode=$? - trap '' 0 - exit $exitcode ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit ;; - *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos - exit ;; - *:OS/390:*:*) - echo i370-ibm-openedition - exit ;; - *:z/VM:*:*) - echo s390-ibm-zvmoe - exit ;; - *:OS400:*:*) - echo powerpc-ibm-os400 - exit ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit ;; - arm:riscos:*:*|arm:RISCOS:*:*) - echo arm-unknown-riscos - exit ;; - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit ;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit ;; - NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit ;; - DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit ;; - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7; exit ;; - esac ;; - s390x:SunOS:*:*) - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) - echo i386-pc-auroraux${UNAME_RELEASE} - exit ;; - i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval $set_cc_for_build - SUN_ARCH="i386" - # If there is a compiler, see if it is configured for 64-bit objects. - # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. - # This test works for both compilers. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then - if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - SUN_ARCH="x86_64" - fi - fi - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit ;; - # The situation for MiNT is a little confusing. The machine name - # can be virtually everything (everything which is not - # "atarist" or "atariste" at least should have a processor - # > m68000). The system name ranges from "MiNT" over "FreeMiNT" - # to the lowercase version "mint" (or "freemint"). Finally - # the system name "TOS" denotes a system which is actually not - # MiNT. But MiNT is downward compatible to TOS, so this should - # be no problem. - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit ;; - m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} - exit ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c -#ifdef __cplusplus -#include <stdio.h> /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`$dummy $dummyarg` && - { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos${UNAME_RELEASE} - exit ;; - Motorola:PowerMAX_OS:*:*) - echo powerpc-motorola-powermax - exit ;; - Motorola:*:4.3:PL8-*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] - then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] - then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else - echo i586-dg-dgux${UNAME_RELEASE} - fi - exit ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i*86:AIX:*:*) - echo i386-ibm-aix - exit ;; - ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include <sys/systemcfg.h> - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` - then - echo "$SYSTEM_NAME" - else - echo rs6000-ibm-aix3.2.5 - fi - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit ;; - *:AIX:*:[4567]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit ;; - 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac - fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - - #define _HPUX_SOURCE - #include <stdlib.h> - #include <unistd.h> - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` - test -z "$HP_ARCH" && HP_ARCH=hppa - fi ;; - esac - if [ ${HP_ARCH} = "hppa2.0w" ] - then - eval $set_cc_for_build - - # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating - # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler - # generating 64-bit code. GNU and HP use different nomenclature: - # - # $ CC_FOR_BUILD=cc ./config.guess - # => hppa2.0w-hp-hpux11.23 - # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess - # => hppa64-hp-hpux11.23 - - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | - grep -q __LP64__ - then - HP_ARCH="hppa2.0w" - else - HP_ARCH="hppa64" - fi - fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit ;; - ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} - exit ;; - 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include <unistd.h> - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } - echo unknown-hitachi-hiuxwe2 - exit ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit ;; - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit ;; - i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ - -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:FreeBSD:*:*) - UNAME_PROCESSOR=`/usr/bin/uname -p` - case ${UNAME_PROCESSOR} in - amd64) - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - *) - echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - esac - exit ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit ;; - *:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit ;; - i*:MSYS*:*) - echo ${UNAME_MACHINE}-pc-msys - exit ;; - i*:windows32*:*) - # uname -m includes "-pc" on this system. - echo ${UNAME_MACHINE}-mingw32 - exit ;; - i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 - exit ;; - *:Interix*:*) - case ${UNAME_MACHINE} in - x86) - echo i586-pc-interix${UNAME_RELEASE} - exit ;; - authenticamd | genuineintel | EM64T) - echo x86_64-unknown-interix${UNAME_RELEASE} - exit ;; - IA64) - echo ia64-unknown-interix${UNAME_RELEASE} - exit ;; - esac ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit ;; - 8664:Windows_NT:*) - echo x86_64-pc-mks - exit ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit ;; - i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin - exit ;; - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin - exit ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - *:GNU:*:*) - # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit ;; - *:GNU/*:*:*) - # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit ;; - i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix - exit ;; - aarch64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - aarch64_be:Linux:*:*) - UNAME_MACHINE=aarch64_be - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep -q ld.so.1 - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit ;; - arm*:Linux:*:*) - eval $set_cc_for_build - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_EABI__ - then - echo ${UNAME_MACHINE}-unknown-linux-gnu - else - if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_PCS_VFP - then - echo ${UNAME_MACHINE}-unknown-linux-gnueabi - else - echo ${UNAME_MACHINE}-unknown-linux-gnueabihf - fi - fi - exit ;; - avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - cris:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-gnu - exit ;; - crisv32:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-gnu - exit ;; - frv:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - hexagon:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - i*86:Linux:*:*) - LIBC=gnu - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` - echo "${UNAME_MACHINE}-pc-linux-${LIBC}" - exit ;; - ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - mips:Linux:*:* | mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef ${UNAME_MACHINE} - #undef ${UNAME_MACHINE}el - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=${UNAME_MACHINE}el - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=${UNAME_MACHINE} - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } - ;; - or32:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - padre:Linux:*:*) - echo sparc-unknown-linux-gnu - exit ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu - exit ;; - parisc:Linux:*:* | hppa:Linux:*:*) - # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-gnu ;; - PA8*) echo hppa2.0-unknown-linux-gnu ;; - *) echo hppa-unknown-linux-gnu ;; - esac - exit ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu - exit ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu - exit ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux - exit ;; - sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - tile*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-gnu - exit ;; - x86_64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - i*86:DYNIX/ptx:4*:*) - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. - # earlier versions are messed up and put the nodename in both - # sysname and nodename. - echo i386-sequent-sysv4 - exit ;; - i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx - exit ;; - i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop - exit ;; - i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos - exit ;; - i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable - exit ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit ;; - i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit ;; - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} - fi - exit ;; - i*86:*:5:[678]*) - # UnixWare 7.x, OpenUNIX and OpenServer 6. - case `/bin/uname -X | grep "^Machine"` in - *486*) UNAME_MACHINE=i486 ;; - *Pentium) UNAME_MACHINE=i586 ;; - *Pent*|*Celeron) UNAME_MACHINE=i686 ;; - esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit ;; - i*86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` - echo ${UNAME_MACHINE}-pc-isc$UNAME_REL - elif /bin/uname -X 2>/dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ - && UNAME_MACHINE=i686 - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ - && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit ;; - pc:*:*:*) - # Left here for compatibility: - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i586. - # Note: whatever this is, it MUST be the same as what config.sub - # prints for the "djgpp" host, or else GDB configury will decide that - # this is a cross-build. - echo i586-pc-msdosdjgpp - exit ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit ;; - mc68k:UNIX:SYSTEM5:3.51m) - echo m68k-convergent-sysv - exit ;; - M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit ;; - M68*:*:R3V[5678]*:*) - test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4; exit; } ;; - NCR*:*:4.2:* | MPRAS*:*:4.2:*) - OS_REL='.3' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit ;; - rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit ;; - RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says <Richard.M.Bartel@ccMail.Census.GOV> - echo i586-unisys-sysv4 - exit ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes <hewes@openmarket.com>. - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit ;; - i*86:VOS:*:*) - # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos - exit ;; - *:VOS:*:*) - # From Paul.Green@stratus.com. - echo hppa1.1-stratus-vos - exit ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit ;; - news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit ;; - BePC:Haiku:*:*) # Haiku running on Intel PC compatible. - echo i586-pc-haiku - exit ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} - exit ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} - exit ;; - SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} - exit ;; - SX-7:SUPER-UX:*:*) - echo sx7-nec-superux${UNAME_RELEASE} - exit ;; - SX-8:SUPER-UX:*:*) - echo sx8-nec-superux${UNAME_RELEASE} - exit ;; - SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux${UNAME_RELEASE} - exit ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - case $UNAME_PROCESSOR in - i386) - eval $set_cc_for_build - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - UNAME_PROCESSOR="x86_64" - fi - fi ;; - unknown) UNAME_PROCESSOR=powerpc ;; - esac - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit ;; - *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` - if test "$UNAME_PROCESSOR" = "x86"; then - UNAME_PROCESSOR=i386 - UNAME_MACHINE=pc - fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit ;; - *:QNX:*:4*) - echo i386-pc-qnx - exit ;; - NEO-?:NONSTOP_KERNEL:*:*) - echo neo-tandem-nsk${UNAME_RELEASE} - exit ;; - NSE-?:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} - exit ;; - NSR-?:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} - exit ;; - *:NonStop-UX:*:*) - echo mips-compaq-nonstopux - exit ;; - BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit ;; - DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit ;; - *:Plan9:*:*) - # "uname -m" is not consistent, so use $cputype instead. 386 - # is converted to i386 for consistency with other x86 - # operating systems. - if test "$cputype" = "386"; then - UNAME_MACHINE=i386 - else - UNAME_MACHINE="$cputype" - fi - echo ${UNAME_MACHINE}-unknown-plan9 - exit ;; - *:TOPS-10:*:*) - echo pdp10-unknown-tops10 - exit ;; - *:TENEX:*:*) - echo pdp10-unknown-tenex - exit ;; - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - echo pdp10-dec-tops20 - exit ;; - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - echo pdp10-xkl-tops20 - exit ;; - *:TOPS-20:*:*) - echo pdp10-unknown-tops20 - exit ;; - *:ITS:*:*) - echo pdp10-unknown-its - exit ;; - SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit ;; - *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit ;; - *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in - A*) echo alpha-dec-vms ; exit ;; - I*) echo ia64-dec-vms ; exit ;; - V*) echo vax-dec-vms ; exit ;; - esac ;; - *:XENIX:*:SysV) - echo i386-pc-xenix - exit ;; - i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' - exit ;; - i*86:rdos:*:*) - echo ${UNAME_MACHINE}-pc-rdos - exit ;; - i*86:AROS:*:*) - echo ${UNAME_MACHINE}-pc-aros - exit ;; - x86_64:VMkernel:*:*) - echo ${UNAME_MACHINE}-unknown-esx - exit ;; -esac - -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - -eval $set_cc_for_build -cat >$dummy.c <<EOF -#ifdef _SEQUENT_ -# include <sys/types.h> -# include <sys/utsname.h> -#endif -main () -{ -#if defined (sony) -#if defined (MIPSEB) - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, - I don't know.... */ - printf ("mips-sony-bsd\n"); exit (0); -#else -#include <sys/param.h> - printf ("m68k-sony-newsos%s\n", -#ifdef NEWSOS4 - "4" -#else - "" -#endif - ); exit (0); -#endif -#endif - -#if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix\n"); exit (0); -#endif - -#if defined (hp300) && !defined (hpux) - printf ("m68k-hp-bsd\n"); exit (0); -#endif - -#if defined (NeXT) -#if !defined (__ARCHITECTURE__) -#define __ARCHITECTURE__ "m68k" -#endif - int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; - if (version < 4) - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); - else - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); - exit (0); -#endif - -#if defined (MULTIMAX) || defined (n16) -#if defined (UMAXV) - printf ("ns32k-encore-sysv\n"); exit (0); -#else -#if defined (CMU) - printf ("ns32k-encore-mach\n"); exit (0); -#else - printf ("ns32k-encore-bsd\n"); exit (0); -#endif -#endif -#endif - -#if defined (__386BSD__) - printf ("i386-pc-bsd\n"); exit (0); -#endif - -#if defined (sequent) -#if defined (i386) - printf ("i386-sequent-dynix\n"); exit (0); -#endif -#if defined (ns32000) - printf ("ns32k-sequent-dynix\n"); exit (0); -#endif -#endif - -#if defined (_SEQUENT_) - struct utsname un; - - uname(&un); - - if (strncmp(un.version, "V2", 2) == 0) { - printf ("i386-sequent-ptx2\n"); exit (0); - } - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ - printf ("i386-sequent-ptx1\n"); exit (0); - } - printf ("i386-sequent-ptx\n"); exit (0); - -#endif - -#if defined (vax) -# if !defined (ultrix) -# include <sys/param.h> -# if defined (BSD) -# if BSD == 43 - printf ("vax-dec-bsd4.3\n"); exit (0); -# else -# if BSD == 199006 - printf ("vax-dec-bsd4.3reno\n"); exit (0); -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# endif -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# else - printf ("vax-dec-ultrix\n"); exit (0); -# endif -#endif - -#if defined (alliant) && defined (i860) - printf ("i860-alliant-bsd\n"); exit (0); -#endif - - exit (1); -} -EOF - -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } - -# Apollos put the system type in the environment. - -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } - -# Convex versions that predate uname can use getsysinfo(1) - -if [ -x /usr/convex/getsysinfo ] -then - case `getsysinfo -f cpu_type` in - c1*) - echo c1-convex-bsd - exit ;; - c2*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - c34*) - echo c34-convex-bsd - exit ;; - c38*) - echo c38-convex-bsd - exit ;; - c4*) - echo c4-convex-bsd - exit ;; - esac -fi - -cat >&2 <<EOF -$0: unable to guess system type - -This script, last modified $timestamp, has failed to recognize -the operating system you are using. It is advised that you -download the most up to date version of the config scripts from - - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD -and - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD - -If the version you run ($0) is already up to date, please -send the following data and any information you think might be -pertinent to <config-patches@gnu.org> in order to provide the needed -information to handle your system. - -config.guess timestamp = $timestamp - -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` - -hostinfo = `(hostinfo) 2>/dev/null` -/bin/universe = `(/bin/universe) 2>/dev/null` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` -/bin/arch = `(/bin/arch) 2>/dev/null` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` - -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} -EOF - -exit 1 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/externals/zexy/config.h.in b/externals/zexy/config.h.in deleted file mode 100644 index d3919e3f906de2161ccd391decfc27c5eae0a7e1..0000000000000000000000000000000000000000 --- a/externals/zexy/config.h.in +++ /dev/null @@ -1,140 +0,0 @@ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define to 1 if you have the <alloca.h> header file. */ -#undef HAVE_ALLOCA_H - -/* Define to 1 if you have the <dlfcn.h> header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the `getpagesize' function. */ -#undef HAVE_GETPAGESIZE - -/* Define to 1 if you have the <inttypes.h> header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the `c' library (-lc). */ -#undef HAVE_LIBC - -/* Define to 1 if you have the `coldname' library (-lcoldname). */ -#undef HAVE_LIBCOLDNAME - -/* Define to 1 if you have the `crtdll' library (-lcrtdll). */ -#undef HAVE_LIBCRTDLL - -/* Define to 1 if you have the `gdi32' library (-lgdi32). */ -#undef HAVE_LIBGDI32 - -/* Define to 1 if you have the `kernel32' library (-lkernel32). */ -#undef HAVE_LIBKERNEL32 - -/* Define to 1 if you have the `m' library (-lm). */ -#undef HAVE_LIBM - -/* Define to 1 if you have the `pd' library (-lpd). */ -#undef HAVE_LIBPD - -/* Define to 1 if you have the `regex' library (-lregex). */ -#undef HAVE_LIBREGEX - -/* Define to 1 if you have the `user32' library (-luser32). */ -#undef HAVE_LIBUSER32 - -/* Define to 1 if you have the <linux/ppdev.h> header file. */ -#undef HAVE_LINUX_PPDEV_H - -/* Define to 1 if you have the <math.h> header file. */ -#undef HAVE_MATH_H - -/* Define to 1 if you have the <memory.h> header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have a working `mmap' system call. */ -#undef HAVE_MMAP - -/* Define to 1 if you have the <m_pd.h> header file. */ -#undef HAVE_M_PD_H - -/* Define to 1 if you have the <pd/m_pd.h> header file. */ -#undef HAVE_PD_M_PD_H - -/* Define to 1 if you have the <regex.h> header file. */ -#undef HAVE_REGEX_H - -/* Define to 1 if you have the `select' function. */ -#undef HAVE_SELECT - -/* Define to 1 if you have the `socket' function. */ -#undef HAVE_SOCKET - -/* Define to 1 if you have the <stdint.h> header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the <stdio.h> header file. */ -#undef HAVE_STDIO_H - -/* Define to 1 if you have the <stdlib.h> header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the `strerror' function. */ -#undef HAVE_STRERROR - -/* Define to 1 if you have the <strings.h> header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the <string.h> header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the <sys/param.h> header file. */ -#undef HAVE_SYS_PARAM_H - -/* Define to 1 if you have the <sys/stat.h> header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the <sys/time.h> header file. */ -#undef HAVE_SYS_TIME_H - -/* Define to 1 if you have the <sys/types.h> header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the <time.h> header file. */ -#undef HAVE_TIME_H - -/* Define to 1 if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H - -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ -#undef LT_OBJDIR - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the home page for this package. */ -#undef PACKAGE_URL - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ -#undef TIME_WITH_SYS_TIME - -/* Version number of package */ -#undef VERSION - -/* Define if you want line printer support */ -#undef Z_WANT_LPT diff --git a/externals/zexy/config.sub b/externals/zexy/config.sub deleted file mode 100755 index c894da45500c4af1bf5688e713a8895622d18182..0000000000000000000000000000000000000000 --- a/externals/zexy/config.sub +++ /dev/null @@ -1,1773 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -# 2011, 2012 Free Software Foundation, Inc. - -timestamp='2012-02-10' - -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see <http://www.gnu.org/licenses/>. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Please send patches to <config-patches@gnu.org>. Submit a context -# diff and a properly formatted GNU ChangeLog entry. -# -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS - $0 [OPTION] ALIAS - -Canonicalize a configuration name. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to <config-patches@gnu.org>." - -version="\ -GNU config.sub ($timestamp) - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" - exit 1 ;; - - *local*) - # First pass through any local machine types. - echo $1 - exit ;; - - * ) - break ;; - esac -done - -case $# in - 0) echo "$me: missing argument$help" >&2 - exit 1;; - 1) ;; - *) echo "$me: too many arguments$help" >&2 - exit 1;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ - linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ - knetbsd*-gnu* | netbsd*-gnu* | \ - kopensolaris*-gnu* | \ - storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - android-linux) - os=-linux-android - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray | -microblaze) - os= - basic_machine=$1 - ;; - -bluegene*) - os=-cnk - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco6) - os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5v6*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; - -mint | -mint[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - 1750a | 580 \ - | a29k \ - | aarch64 | aarch64_be \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ - | be32 | be64 \ - | bfin \ - | c4x | clipper \ - | d10v | d30v | dlx | dsp16xx \ - | epiphany \ - | fido | fr30 | frv \ - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | hexagon \ - | i370 | i860 | i960 | ia64 \ - | ip2k | iq2000 \ - | le32 | le64 \ - | lm32 \ - | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | mcore | mep | metag \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64el \ - | mips64octeon | mips64octeonel \ - | mips64orion | mips64orionel \ - | mips64r5900 | mips64r5900el \ - | mips64vr | mips64vrel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipstx39 | mipstx39el \ - | mn10200 | mn10300 \ - | moxie \ - | mt \ - | msp430 \ - | nds32 | nds32le | nds32be \ - | nios | nios2 \ - | ns16k | ns32k \ - | open8 \ - | or32 \ - | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle \ - | pyramid \ - | rl78 | rx \ - | score \ - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ - | sh64 | sh64le \ - | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ - | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ - | spu \ - | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ - | ubicom32 \ - | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ - | we32k \ - | x86 | xc16x | xstormy16 | xtensa \ - | z8k | z80) - basic_machine=$basic_machine-unknown - ;; - c54x) - basic_machine=tic54x-unknown - ;; - c55x) - basic_machine=tic55x-unknown - ;; - c6x) - basic_machine=tic6x-unknown - ;; - m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) - ;; - ms1) - basic_machine=mt-unknown - ;; - - strongarm | thumb | xscale) - basic_machine=arm-unknown - ;; - xgate) - basic_machine=$basic_machine-unknown - os=-none - ;; - xscaleeb) - basic_machine=armeb-unknown - ;; - - xscaleel) - basic_machine=armel-unknown - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i*86 | x86_64) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - 580-* \ - | a29k-* \ - | aarch64-* | aarch64_be-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* | avr32-* \ - | be32-* | be64-* \ - | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* \ - | clipper-* | craynv-* | cydra-* \ - | d10v-* | d30v-* | dlx-* \ - | elxsi-* \ - | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ - | h8300-* | h8500-* \ - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ - | hexagon-* \ - | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* | iq2000-* \ - | le32-* | le64-* \ - | lm32-* \ - | m32c-* | m32r-* | m32rle-* \ - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ - | mips16-* \ - | mips64-* | mips64el-* \ - | mips64octeon-* | mips64octeonel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64r5900-* | mips64r5900el-* \ - | mips64vr-* | mips64vrel-* \ - | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* \ - | mips64vr5000-* | mips64vr5000el-* \ - | mips64vr5900-* | mips64vr5900el-* \ - | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipstx39-* | mipstx39el-* \ - | mmix-* \ - | mt-* \ - | msp430-* \ - | nds32-* | nds32le-* | nds32be-* \ - | nios-* | nios2-* \ - | none-* | np1-* | ns16k-* | ns32k-* \ - | open8-* \ - | orion-* \ - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ - | pyramid-* \ - | rl78-* | romp-* | rs6000-* | rx-* \ - | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ - | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ - | tahoe-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ - | tile*-* \ - | tron-* \ - | ubicom32-* \ - | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ - | vax-* \ - | we32k-* \ - | x86-* | x86_64-* | xc16x-* | xps100-* \ - | xstormy16-* | xtensa*-* \ - | ymp-* \ - | z8k-* | z80-*) - ;; - # Recognize the basic CPU types without company name, with glob match. - xtensa*) - basic_machine=$basic_machine-unknown - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-unknown - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - abacus) - basic_machine=abacus-unknown - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amd64) - basic_machine=x86_64-pc - ;; - amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aros) - basic_machine=i386-pc - os=-aros - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - blackfin) - basic_machine=bfin-unknown - os=-linux - ;; - blackfin-*) - basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - bluegene*) - basic_machine=powerpc-ibm - os=-cnk - ;; - c54x-*) - basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c55x-*) - basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c6x-*) - basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c90) - basic_machine=c90-cray - os=-unicos - ;; - cegcc) - basic_machine=arm-unknown - os=-cegcc - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | j90) - basic_machine=j90-cray - os=-unicos - ;; - craynv) - basic_machine=craynv-cray - os=-unicosmp - ;; - cr16 | cr16-*) - basic_machine=cr16-unknown - os=-elf - ;; - crds | unos) - basic_machine=m68k-crds - ;; - crisv32 | crisv32-* | etraxfs*) - basic_machine=crisv32-axis - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - crx) - basic_machine=crx-unknown - os=-elf - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - decsystem10* | dec10*) - basic_machine=pdp10-dec - os=-tops10 - ;; - decsystem20* | dec20*) - basic_machine=pdp10-dec - os=-tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dicos) - basic_machine=i686-pc - os=-dicos - ;; - djgpp) - basic_machine=i586-pc - os=-msdosdjgpp - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - go32) - basic_machine=i386-pc - os=-go32 - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; - i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - i386-vsta | vsta) - basic_machine=i386-unknown - os=-vsta - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m68knommu) - basic_machine=m68k-unknown - os=-linux - ;; - m68knommu-*) - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - microblaze) - basic_machine=microblaze-xilinx - ;; - mingw32) - basic_machine=i386-pc - os=-mingw32 - ;; - mingw32ce) - basic_machine=arm-unknown - os=-mingw32ce - ;; - miniframe) - basic_machine=m68000-convergent - ;; - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - monitor) - basic_machine=m68k-rom68k - os=-coff - ;; - morphos) - basic_machine=powerpc-unknown - os=-morphos - ;; - msdos) - basic_machine=i386-pc - os=-msdos - ;; - ms1-*) - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` - ;; - msys) - basic_machine=i386-pc - os=-msys - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - nacl) - basic_machine=le32-unknown - os=-nacl - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - netbsd386) - basic_machine=i386-unknown - os=-netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - os=-linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - necv70) - basic_machine=v70-nec - os=-sysv - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - mon960) - basic_machine=i960-intel - os=-mon960 - ;; - nonstopux) - basic_machine=mips-compaq - os=-nonstopux - ;; - np1) - basic_machine=np1-gould - ;; - neo-tandem) - basic_machine=neo-tandem - ;; - nse-tandem) - basic_machine=nse-tandem - ;; - nsr-tandem) - basic_machine=nsr-tandem - ;; - op50n-* | op60c-*) - basic_machine=hppa1.1-oki - os=-proelf - ;; - openrisc | openrisc-*) - basic_machine=or32-unknown - ;; - os400) - basic_machine=powerpc-ibm - os=-os400 - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - os=-ose - ;; - os68k) - basic_machine=m68k-none - os=-os68k - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - parisc) - basic_machine=hppa-unknown - os=-linux - ;; - parisc-*) - basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pc98) - basic_machine=i386-pc - ;; - pc98-*) - basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium | p5 | k5 | k6 | nexgen | viac3) - basic_machine=i586-pc - ;; - pentiumpro | p6 | 6x86 | athlon | athlon_*) - basic_machine=i686-pc - ;; - pentiumii | pentium2 | pentiumiii | pentium3) - basic_machine=i686-pc - ;; - pentium4) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=power-ibm - ;; - ppc | ppcbe) basic_machine=powerpc-unknown - ;; - ppc-* | ppcbe-*) - basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64) basic_machine=powerpc64-unknown - ;; - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64le | powerpc64little | ppc64-le | powerpc64-little) - basic_machine=powerpc64le-unknown - ;; - ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - pw32) - basic_machine=i586-unknown - os=-pw32 - ;; - rdos) - basic_machine=i386-pc - os=-rdos - ;; - rom68k) - basic_machine=m68k-rom68k - os=-coff - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sa29200) - basic_machine=a29k-amd - os=-udi - ;; - sb1) - basic_machine=mipsisa64sb1-unknown - ;; - sb1el) - basic_machine=mipsisa64sb1el-unknown - ;; - sde) - basic_machine=mipsisa32-sde - os=-elf - ;; - sei) - basic_machine=mips-sei - os=-seiux - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sh5el) - basic_machine=sh5le-unknown - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) - basic_machine=sparclite-wrs - os=-vxworks - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - st2000) - basic_machine=m68k-tandem - ;; - stratus) - basic_machine=i860-stratus - os=-sysv4 - ;; - strongarm-* | thumb-*) - basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - sv1) - basic_machine=sv1-cray - os=-unicos - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - t3e) - basic_machine=alphaev5-cray - os=-unicos - ;; - t90) - basic_machine=t90-cray - os=-unicos - ;; - tile*) - basic_machine=$basic_machine-unknown - os=-linux-gnu - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - toad1) - basic_machine=pdp10-xkl - os=-tops20 - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - tpf) - basic_machine=s390x-ibm - os=-tpf - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - os=-none - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - w65*) - basic_machine=w65-wdc - os=-none - ;; - w89k-*) - basic_machine=hppa1.1-winbond - os=-proelf - ;; - xbox) - basic_machine=i686-pc - os=-mingw32 - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - xscale-* | xscalee[bl]-*) - basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` - ;; - ymp) - basic_machine=ymp-cray - os=-unicos - ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - z80-*-coff) - basic_machine=z80-unknown - os=-sim - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - romp) - basic_machine=romp-ibm - ;; - mmix) - basic_machine=mmix-knuth - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) - basic_machine=sh-unknown - ;; - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; - *-unknown) - # Make sure to match an already-canonicalized machine name. - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -auroraux) - os=-auroraux - ;; - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ - | -sym* | -kopensolaris* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* | -aros* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ - | -openbsd* | -solidbsd* \ - | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ - | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* | -cegcc* \ - | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-android* \ - | -linux-newlib* | -linux-uclibc* \ - | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -qnx*) - case $basic_machine in - x86-* | i*86-*) - ;; - *) - os=-nto$os - ;; - esac - ;; - -nto-qnx*) - ;; - -nto*) - os=`echo $os | sed -e 's|nto|nto-qnx|'` - ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) - ;; - -mac*) - os=`echo $os | sed -e 's|mac|macos|'` - ;; - -linux-dietlibc) - os=-linux-dietlibc - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -opened*) - os=-openedition - ;; - -os400*) - os=-os400 - ;; - -wince*) - os=-wince - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -atheos*) - os=-atheos - ;; - -syllable*) - os=-syllable - ;; - -386bsd) - os=-bsd - ;; - -ctix* | -uts*) - os=-sysv - ;; - -nova*) - os=-rtmk-nova - ;; - -ns2 ) - os=-nextstep2 - ;; - -nsk*) - os=-nsk - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -tpf*) - os=-tpf - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -ose*) - os=-ose - ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - os=-mint - ;; - -aros*) - os=-aros - ;; - -kaos*) - os=-kaos - ;; - -zvmoe) - os=-zvmoe - ;; - -dicos*) - os=-dicos - ;; - -nacl*) - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - score-*) - os=-elf - ;; - spu-*) - os=-elf - ;; - *-acorn) - os=-riscix1.2 - ;; - arm*-rebel) - os=-linux - ;; - arm*-semi) - os=-aout - ;; - c4x-* | tic4x-*) - os=-coff - ;; - tic54x-*) - os=-coff - ;; - tic55x-*) - os=-coff - ;; - tic6x-*) - os=-coff - ;; - # This must come before the *-dec entry. - pdp10-*) - os=-tops20 - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - ;; - m68*-cisco) - os=-aout - ;; - mep-*) - os=-elf - ;; - mips*-cisco) - os=-elf - ;; - mips*-*) - os=-elf - ;; - or32-*) - os=-coff - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-haiku) - os=-haiku - ;; - *-ibm) - os=-aix - ;; - *-knuth) - os=-mmixware - ;; - *-wec) - os=-proelf - ;; - *-winbond) - os=-proelf - ;; - *-oki) - os=-proelf - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f30[01]-fujitsu | f700-fujitsu) - os=-uxpv - ;; - *-rom68k) - os=-coff - ;; - *-*bug) - os=-coff - ;; - *-apple) - os=-macos - ;; - *-atari*) - os=-mint - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -cnk*|-aix*) - vendor=ibm - ;; - -beos*) - vendor=be - ;; - -hpux*) - vendor=hp - ;; - -mpeix*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs* | -opened*) - vendor=ibm - ;; - -os400*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -tpf*) - vendor=ibm - ;; - -vxsim* | -vxworks* | -windiss*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - -hms*) - vendor=hitachi - ;; - -mpw* | -macos*) - vendor=apple - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - vendor=atari - ;; - -vos*) - vendor=stratus - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os -exit - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/externals/zexy/configure.ac b/externals/zexy/configure.ac index 337143e305fc2c1952efe2bdcf111ad03c34c119..fef1c90a7ea2201b7ad9d0c99d55b58b9a2221c7 100644 --- a/externals/zexy/configure.ac +++ b/externals/zexy/configure.ac @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ([2.60]) -AC_INIT([zexy], [2.2.6svn], [zmoelnig@iem.at], [zexy], [http://get.puredata.info/zexy]) +AC_INIT([zexy], [2.2.6], [zmoelnig@iem.at], [zexy], [https://git.iem.at/pd/zexy]) AM_INIT_AUTOMAKE([1.10 foreign]) m4_ifdef([LT_INIT], [LT_INIT([disable-static win32-dll])], @@ -36,6 +36,17 @@ AC_ARG_ENABLE([library],[ --enable-library build zexy as multi-object li AM_CONDITIONAL([LIBRARY], [test "x${enable_library}" != "xno"]) AM_CONDITIONAL([SINGLEOBJECTS], [test "x${enable_library}" = "xno" || test "x${enable_library}" = "xboth"]) +## override build-date +AC_ARG_WITH([build-date], AC_HELP_STRING([--with-build-date=<str>], [alternative date string])) +AC_MSG_CHECKING([build-date]) +AS_IF([test "x$with_build_date" = "xyes" ],[with_build_date=""]) +AS_IF([test "x$with_build_date" = "xno" ],[with_build_date=""]) +AS_IF([test "x$with_build_date" != "x" ],[ AC_DEFINE_UNQUOTED([BUILD_DATE], +["$with_build_date"], [user-defined build-date string])]) +## urgh, brackets need to be escaped with @<:@ and @:>@... +AS_IF([test "x$with_build_date" != "x" ],[ with_build_date="@<:@default@:>@" ]) +AC_MSG_RESULT([$with_build_date]) + if test "x${libdir}" = "x\${exec_prefix}/lib"; then libdir='${exec_prefix}/lib/pd/extra' @@ -163,7 +174,6 @@ fi AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(DEFS) -AC_SUBST(INCLUDES) AC_SUBST(ARCH_FLAG) AC_SUBST([LIBTOOL_DEPS]) AC_SUBST([EXTRA_LTFLAGS]) diff --git a/externals/zexy/depcomp b/externals/zexy/depcomp deleted file mode 100755 index bd0ac089584a762069b7e0b3f2937e89b9144cc7..0000000000000000000000000000000000000000 --- a/externals/zexy/depcomp +++ /dev/null @@ -1,688 +0,0 @@ -#! /bin/sh -# depcomp - compile a program generating dependencies as side-effects - -scriptversion=2011-12-04.11; # UTC - -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010, -# 2011 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. - -case $1 in - '') - echo "$0: No command. Try \`$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: depcomp [--help] [--version] PROGRAM [ARGS] - -Run PROGRAMS ARGS to compile a file, generating dependencies -as side-effects. - -Environment variables: - depmode Dependency tracking mode. - source Source file read by `PROGRAMS ARGS'. - object Object file output by `PROGRAMS ARGS'. - DEPDIR directory where to store dependencies. - depfile Dependency file to output. - tmpdepfile Temporary file to use when outputting dependencies. - libtool Whether libtool is used (yes/no). - -Report bugs to <bug-automake@gnu.org>. -EOF - exit $? - ;; - -v | --v*) - echo "depcomp $scriptversion" - exit $? - ;; -esac - -if test -z "$depmode" || test -z "$source" || test -z "$object"; then - echo "depcomp: Variables source, object and depmode must be set" 1>&2 - exit 1 -fi - -# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. -depfile=${depfile-`echo "$object" | - sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} -tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} - -rm -f "$tmpdepfile" - -# Some modes work just like other modes, but use different flags. We -# parameterize here, but still list the modes in the big case below, -# to make depend.m4 easier to write. Note that we *cannot* use a case -# here, because this file can only contain one case statement. -if test "$depmode" = hp; then - # HP compiler uses -M and no extra arg. - gccflag=-M - depmode=gcc -fi - -if test "$depmode" = dashXmstdout; then - # This is just like dashmstdout with a different argument. - dashmflag=-xM - depmode=dashmstdout -fi - -cygpath_u="cygpath -u -f -" -if test "$depmode" = msvcmsys; then - # This is just like msvisualcpp but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvisualcpp -fi - -if test "$depmode" = msvc7msys; then - # This is just like msvc7 but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvc7 -fi - -case "$depmode" in -gcc3) -## gcc 3 implements dependency tracking that does exactly what -## we want. Yay! Note: for some reason libtool 1.4 doesn't like -## it if -MD -MP comes after the -MF stuff. Hmm. -## Unfortunately, FreeBSD c89 acceptance of flags depends upon -## the command line argument order; so add the flags where they -## appear in depend2.am. Note that the slowdown incurred here -## affects only configure: in makefiles, %FASTDEP% shortcuts this. - for arg - do - case $arg in - -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; - *) set fnord "$@" "$arg" ;; - esac - shift # fnord - shift # $arg - done - "$@" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - mv "$tmpdepfile" "$depfile" - ;; - -gcc) -## There are various ways to get dependency output from gcc. Here's -## why we pick this rather obscure method: -## - Don't want to use -MD because we'd like the dependencies to end -## up in a subdir. Having to rename by hand is ugly. -## (We might end up doing this anyway to support other compilers.) -## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like -## -MM, not -M (despite what the docs say). -## - Using -M directly means running the compiler twice (even worse -## than renaming). - if test -z "$gccflag"; then - gccflag=-MD, - fi - "$@" -Wp,"$gccflag$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz -## The second -e expression handles DOS-style file names with drive letters. - sed -e 's/^[^:]*: / /' \ - -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" -## This next piece of magic avoids the `deleted header file' problem. -## The problem is that when a header file which appears in a .P file -## is deleted, the dependency causes make to die (because there is -## typically no way to rebuild the header). We avoid this by adding -## dummy dependencies for each header file. Too bad gcc doesn't do -## this for us directly. - tr ' ' ' -' < "$tmpdepfile" | -## Some versions of gcc put a space before the `:'. On the theory -## that the space means something, we add a space to the output as -## well. hp depmode also adds that space, but also prefixes the VPATH -## to the object. Take care to not repeat it in the output. -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -sgi) - if test "$libtool" = yes; then - "$@" "-Wp,-MDupdate,$tmpdepfile" - else - "$@" -MDupdate "$tmpdepfile" - fi - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - - if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files - echo "$object : \\" > "$depfile" - - # Clip off the initial element (the dependent). Don't try to be - # clever and replace this with sed code, as IRIX sed won't handle - # lines with more than a fixed number of characters (4096 in - # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; - # the IRIX cc adds comments like `#:fec' to the end of the - # dependency line. - tr ' ' ' -' < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ - tr ' -' ' ' >> "$depfile" - echo >> "$depfile" - - # The second pass generates a dummy entry for each header file. - tr ' ' ' -' < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ - >> "$depfile" - else - # The sourcefile does not contain any dependencies, so just - # store a dummy comment line, to avoid errors with the Makefile - # "include basename.Plo" scheme. - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -aix) - # The C for AIX Compiler uses -M and outputs the dependencies - # in a .u file. In older versions, this file always lives in the - # current directory. Also, the AIX compiler puts `$object:' at the - # start of each line; $object doesn't have directory information. - # Version 6 uses the directory in both cases. - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.u - tmpdepfile2=$base.u - tmpdepfile3=$dir.libs/$base.u - "$@" -Wc,-M - else - tmpdepfile1=$dir$base.u - tmpdepfile2=$dir$base.u - tmpdepfile3=$dir$base.u - "$@" -M - fi - stat=$? - - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - # Each line is of the form `foo.o: dependent.h'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" - # That's a tab and a space in the []. - sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" - else - # The sourcefile does not contain any dependencies, so just - # store a dummy comment line, to avoid errors with the Makefile - # "include basename.Plo" scheme. - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -icc) - # Intel's C compiler understands `-MD -MF file'. However on - # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c - # ICC 7.0 will fill foo.d with something like - # foo.o: sub/foo.c - # foo.o: sub/foo.h - # which is wrong. We want: - # sub/foo.o: sub/foo.c - # sub/foo.o: sub/foo.h - # sub/foo.c: - # sub/foo.h: - # ICC 7.1 will output - # foo.o: sub/foo.c sub/foo.h - # and will wrap long lines using \ : - # foo.o: sub/foo.c ... \ - # sub/foo.h ... \ - # ... - - "$@" -MD -MF "$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each line is of the form `foo.o: dependent.h', - # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | - sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp2) - # The "hp" stanza above does not work with aCC (C++) and HP's ia64 - # compilers, which have integrated preprocessors. The correct option - # to use with these is +Maked; it writes dependencies to a file named - # 'foo.d', which lands next to the object file, wherever that - # happens to be. - # Much of this is similar to the tru64 case; see comments there. - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir.libs/$base.d - "$@" -Wc,+Maked - else - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir$base.d - "$@" +Maked - fi - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile1" "$tmpdepfile2" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" - # Add `dependent.h:' lines. - sed -ne '2,${ - s/^ *// - s/ \\*$// - s/$/:/ - p - }' "$tmpdepfile" >> "$depfile" - else - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" "$tmpdepfile2" - ;; - -tru64) - # The Tru64 compiler uses -MD to generate dependencies as a side - # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. - # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put - # dependencies in `foo.d' instead, so we check for that too. - # Subdirectories are respected. - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` - - if test "$libtool" = yes; then - # With Tru64 cc, shared objects can also be used to make a - # static library. This mechanism is used in libtool 1.4 series to - # handle both shared and static libraries in a single compilation. - # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. - # - # With libtool 1.5 this exception was removed, and libtool now - # generates 2 separate objects for the 2 libraries. These two - # compilations output dependencies in $dir.libs/$base.o.d and - # in $dir$base.o.d. We have to check for both files, because - # one of the two compilations can be disabled. We should prefer - # $dir$base.o.d over $dir.libs/$base.o.d because the latter is - # automatically cleaned when .libs/ is deleted, while ignoring - # the former would cause a distcleancheck panic. - tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 - tmpdepfile2=$dir$base.o.d # libtool 1.5 - tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 - tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 - "$@" -Wc,-MD - else - tmpdepfile1=$dir$base.o.d - tmpdepfile2=$dir$base.d - tmpdepfile3=$dir$base.d - tmpdepfile4=$dir$base.d - "$@" -MD - fi - - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" - # That's a tab and a space in the []. - sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" - else - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -msvc7) - if test "$libtool" = yes; then - showIncludes=-Wc,-showIncludes - else - showIncludes=-showIncludes - fi - "$@" $showIncludes > "$tmpdepfile" - stat=$? - grep -v '^Note: including file: ' "$tmpdepfile" - if test "$stat" = 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - # The first sed program below extracts the file names and escapes - # backslashes for cygpath. The second sed program outputs the file - # name when reading, but also accumulates all include files in the - # hold buffer in order to output them again at the end. This only - # works with sed implementations that can handle large buffers. - sed < "$tmpdepfile" -n ' -/^Note: including file: *\(.*\)/ { - s//\1/ - s/\\/\\\\/g - p -}' | $cygpath_u | sort -u | sed -n ' -s/ /\\ /g -s/\(.*\)/ \1 \\/p -s/.\(.*\) \\/\1:/ -H -$ { - s/.*/ / - G - p -}' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvc7msys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -#nosideeffect) - # This comment above is used by automake to tell side-effect - # dependency tracking mechanisms from slower ones. - -dashmstdout) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove `-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - test -z "$dashmflag" && dashmflag=-M - # Require at least two characters before searching for `:' - # in the target name. This is to cope with DOS-style filenames: - # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. - "$@" $dashmflag | - sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" - rm -f "$depfile" - cat < "$tmpdepfile" > "$depfile" - tr ' ' ' -' < "$tmpdepfile" | \ -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -dashXmstdout) - # This case only exists to satisfy depend.m4. It is never actually - # run, as this mode is specially recognized in the preamble. - exit 1 - ;; - -makedepend) - "$@" || exit $? - # Remove any Libtool call - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - # X makedepend - shift - cleared=no eat=no - for arg - do - case $cleared in - no) - set ""; shift - cleared=yes ;; - esac - if test $eat = yes; then - eat=no - continue - fi - case "$arg" in - -D*|-I*) - set fnord "$@" "$arg"; shift ;; - # Strip any option that makedepend may not understand. Remove - # the object too, otherwise makedepend will parse it as a source file. - -arch) - eat=yes ;; - -*|$object) - ;; - *) - set fnord "$@" "$arg"; shift ;; - esac - done - obj_suffix=`echo "$object" | sed 's/^.*\././'` - touch "$tmpdepfile" - ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" - rm -f "$depfile" - # makedepend may prepend the VPATH from the source file name to the object. - # No need to regex-escape $object, excess matching of '.' is harmless. - sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" - sed '1,2d' "$tmpdepfile" | tr ' ' ' -' | \ -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" "$tmpdepfile".bak - ;; - -cpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove `-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - "$@" -E | - sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | - sed '$ s: \\$::' > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - cat < "$tmpdepfile" >> "$depfile" - sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvisualcpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - IFS=" " - for arg - do - case "$arg" in - -o) - shift - ;; - $object) - shift - ;; - "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") - set fnord "$@" - shift - shift - ;; - *) - set fnord "$@" "$arg" - shift - shift - ;; - esac - done - "$@" -E 2>/dev/null | - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" - echo " " >> "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvcmsys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -none) - exec "$@" - ;; - -*) - echo "Unknown depmode $depmode" 1>&2 - exit 1 - ;; -esac - -exit 0 - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/externals/zexy/install-sh b/externals/zexy/install-sh deleted file mode 100755 index a9244eb0786534553fdd9eb0050bb4b172bad0a3..0000000000000000000000000000000000000000 --- a/externals/zexy/install-sh +++ /dev/null @@ -1,527 +0,0 @@ -#!/bin/sh -# install - install a program, script, or datafile - -scriptversion=2011-01-19.21; # UTC - -# This originates from X11R5 (mit/util/scripts/install.sh), which was -# later released in X11R6 (xc/config/util/install.sh) with the -# following copyright and license. -# -# Copyright (C) 1994 X Consortium -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Except as contained in this notice, the name of the X Consortium shall not -# be used in advertising or otherwise to promote the sale, use or other deal- -# ings in this Software without prior written authorization from the X Consor- -# tium. -# -# -# FSF changes to this file are in the public domain. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. - -nl=' -' -IFS=" "" $nl" - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit=${DOITPROG-} -if test -z "$doit"; then - doit_exec=exec -else - doit_exec=$doit -fi - -# Put in absolute file names if you don't have them in your path; -# or use environment vars. - -chgrpprog=${CHGRPPROG-chgrp} -chmodprog=${CHMODPROG-chmod} -chownprog=${CHOWNPROG-chown} -cmpprog=${CMPPROG-cmp} -cpprog=${CPPROG-cp} -mkdirprog=${MKDIRPROG-mkdir} -mvprog=${MVPROG-mv} -rmprog=${RMPROG-rm} -stripprog=${STRIPPROG-strip} - -posix_glob='?' -initialize_posix_glob=' - test "$posix_glob" != "?" || { - if (set -f) 2>/dev/null; then - posix_glob= - else - posix_glob=: - fi - } -' - -posix_mkdir= - -# Desired mode of installed file. -mode=0755 - -chgrpcmd= -chmodcmd=$chmodprog -chowncmd= -mvcmd=$mvprog -rmcmd="$rmprog -f" -stripcmd= - -src= -dst= -dir_arg= -dst_arg= - -copy_on_change=false -no_target_directory= - -usage="\ -Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE - or: $0 [OPTION]... SRCFILES... DIRECTORY - or: $0 [OPTION]... -t DIRECTORY SRCFILES... - or: $0 [OPTION]... -d DIRECTORIES... - -In the 1st form, copy SRCFILE to DSTFILE. -In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. -In the 4th, create DIRECTORIES. - -Options: - --help display this help and exit. - --version display version info and exit. - - -c (ignored) - -C install only if different (preserve the last data modification time) - -d create directories instead of installing files. - -g GROUP $chgrpprog installed files to GROUP. - -m MODE $chmodprog installed files to MODE. - -o USER $chownprog installed files to USER. - -s $stripprog installed files. - -t DIRECTORY install into DIRECTORY. - -T report an error if DSTFILE is a directory. - -Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG - RMPROG STRIPPROG -" - -while test $# -ne 0; do - case $1 in - -c) ;; - - -C) copy_on_change=true;; - - -d) dir_arg=true;; - - -g) chgrpcmd="$chgrpprog $2" - shift;; - - --help) echo "$usage"; exit $?;; - - -m) mode=$2 - case $mode in - *' '* | *' '* | *' -'* | *'*'* | *'?'* | *'['*) - echo "$0: invalid mode: $mode" >&2 - exit 1;; - esac - shift;; - - -o) chowncmd="$chownprog $2" - shift;; - - -s) stripcmd=$stripprog;; - - -t) dst_arg=$2 - # Protect names problematic for `test' and other utilities. - case $dst_arg in - -* | [=\(\)!]) dst_arg=./$dst_arg;; - esac - shift;; - - -T) no_target_directory=true;; - - --version) echo "$0 $scriptversion"; exit $?;; - - --) shift - break;; - - -*) echo "$0: invalid option: $1" >&2 - exit 1;; - - *) break;; - esac - shift -done - -if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then - # When -d is used, all remaining arguments are directories to create. - # When -t is used, the destination is already specified. - # Otherwise, the last argument is the destination. Remove it from $@. - for arg - do - if test -n "$dst_arg"; then - # $@ is not empty: it contains at least $arg. - set fnord "$@" "$dst_arg" - shift # fnord - fi - shift # arg - dst_arg=$arg - # Protect names problematic for `test' and other utilities. - case $dst_arg in - -* | [=\(\)!]) dst_arg=./$dst_arg;; - esac - done -fi - -if test $# -eq 0; then - if test -z "$dir_arg"; then - echo "$0: no input file specified." >&2 - exit 1 - fi - # It's OK to call `install-sh -d' without argument. - # This can happen when creating conditional directories. - exit 0 -fi - -if test -z "$dir_arg"; then - do_exit='(exit $ret); exit $ret' - trap "ret=129; $do_exit" 1 - trap "ret=130; $do_exit" 2 - trap "ret=141; $do_exit" 13 - trap "ret=143; $do_exit" 15 - - # Set umask so as not to create temps with too-generous modes. - # However, 'strip' requires both read and write access to temps. - case $mode in - # Optimize common cases. - *644) cp_umask=133;; - *755) cp_umask=22;; - - *[0-7]) - if test -z "$stripcmd"; then - u_plus_rw= - else - u_plus_rw='% 200' - fi - cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; - *) - if test -z "$stripcmd"; then - u_plus_rw= - else - u_plus_rw=,u+rw - fi - cp_umask=$mode$u_plus_rw;; - esac -fi - -for src -do - # Protect names problematic for `test' and other utilities. - case $src in - -* | [=\(\)!]) src=./$src;; - esac - - if test -n "$dir_arg"; then - dst=$src - dstdir=$dst - test -d "$dstdir" - dstdir_status=$? - else - - # Waiting for this to be detected by the "$cpprog $src $dsttmp" command - # might cause directories to be created, which would be especially bad - # if $src (and thus $dsttmp) contains '*'. - if test ! -f "$src" && test ! -d "$src"; then - echo "$0: $src does not exist." >&2 - exit 1 - fi - - if test -z "$dst_arg"; then - echo "$0: no destination specified." >&2 - exit 1 - fi - dst=$dst_arg - - # If destination is a directory, append the input filename; won't work - # if double slashes aren't ignored. - if test -d "$dst"; then - if test -n "$no_target_directory"; then - echo "$0: $dst_arg: Is a directory" >&2 - exit 1 - fi - dstdir=$dst - dst=$dstdir/`basename "$src"` - dstdir_status=0 - else - # Prefer dirname, but fall back on a substitute if dirname fails. - dstdir=` - (dirname "$dst") 2>/dev/null || - expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$dst" : 'X\(//\)[^/]' \| \ - X"$dst" : 'X\(//\)$' \| \ - X"$dst" : 'X\(/\)' \| . 2>/dev/null || - echo X"$dst" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q' - ` - - test -d "$dstdir" - dstdir_status=$? - fi - fi - - obsolete_mkdir_used=false - - if test $dstdir_status != 0; then - case $posix_mkdir in - '') - # Create intermediate dirs using mode 755 as modified by the umask. - # This is like FreeBSD 'install' as of 1997-10-28. - umask=`umask` - case $stripcmd.$umask in - # Optimize common cases. - *[2367][2367]) mkdir_umask=$umask;; - .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; - - *[0-7]) - mkdir_umask=`expr $umask + 22 \ - - $umask % 100 % 40 + $umask % 20 \ - - $umask % 10 % 4 + $umask % 2 - `;; - *) mkdir_umask=$umask,go-w;; - esac - - # With -d, create the new directory with the user-specified mode. - # Otherwise, rely on $mkdir_umask. - if test -n "$dir_arg"; then - mkdir_mode=-m$mode - else - mkdir_mode= - fi - - posix_mkdir=false - case $umask in - *[123567][0-7][0-7]) - # POSIX mkdir -p sets u+wx bits regardless of umask, which - # is incompatible with FreeBSD 'install' when (umask & 300) != 0. - ;; - *) - tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ - trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 - - if (umask $mkdir_umask && - exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 - then - if test -z "$dir_arg" || { - # Check for POSIX incompatibilities with -m. - # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or - # other-writeable bit of parent directory when it shouldn't. - # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. - ls_ld_tmpdir=`ls -ld "$tmpdir"` - case $ls_ld_tmpdir in - d????-?r-*) different_mode=700;; - d????-?--*) different_mode=755;; - *) false;; - esac && - $mkdirprog -m$different_mode -p -- "$tmpdir" && { - ls_ld_tmpdir_1=`ls -ld "$tmpdir"` - test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" - } - } - then posix_mkdir=: - fi - rmdir "$tmpdir/d" "$tmpdir" - else - # Remove any dirs left behind by ancient mkdir implementations. - rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null - fi - trap '' 0;; - esac;; - esac - - if - $posix_mkdir && ( - umask $mkdir_umask && - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" - ) - then : - else - - # The umask is ridiculous, or mkdir does not conform to POSIX, - # or it failed possibly due to a race condition. Create the - # directory the slow way, step by step, checking for races as we go. - - case $dstdir in - /*) prefix='/';; - [-=\(\)!]*) prefix='./';; - *) prefix='';; - esac - - eval "$initialize_posix_glob" - - oIFS=$IFS - IFS=/ - $posix_glob set -f - set fnord $dstdir - shift - $posix_glob set +f - IFS=$oIFS - - prefixes= - - for d - do - test X"$d" = X && continue - - prefix=$prefix$d - if test -d "$prefix"; then - prefixes= - else - if $posix_mkdir; then - (umask=$mkdir_umask && - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break - # Don't fail if two instances are running concurrently. - test -d "$prefix" || exit 1 - else - case $prefix in - *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; - *) qprefix=$prefix;; - esac - prefixes="$prefixes '$qprefix'" - fi - fi - prefix=$prefix/ - done - - if test -n "$prefixes"; then - # Don't fail if two instances are running concurrently. - (umask $mkdir_umask && - eval "\$doit_exec \$mkdirprog $prefixes") || - test -d "$dstdir" || exit 1 - obsolete_mkdir_used=true - fi - fi - fi - - if test -n "$dir_arg"; then - { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && - { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && - { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || - test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 - else - - # Make a couple of temp file names in the proper directory. - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ - - # Trap to clean up those temp files at exit. - trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 - - # Copy the file name to the temp name. - (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && - - # and set any options; do chmod last to preserve setuid bits. - # - # If any of these fail, we abort the whole thing. If we want to - # ignore errors from any of these, just make sure not to ignore - # errors from the above "$doit $cpprog $src $dsttmp" command. - # - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && - { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && - { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && - { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && - - # If -C, don't bother to copy if it wouldn't change the file. - if $copy_on_change && - old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && - new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && - - eval "$initialize_posix_glob" && - $posix_glob set -f && - set X $old && old=:$2:$4:$5:$6 && - set X $new && new=:$2:$4:$5:$6 && - $posix_glob set +f && - - test "$old" = "$new" && - $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 - then - rm -f "$dsttmp" - else - # Rename the file to the real destination. - $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || - - # The rename failed, perhaps because mv can't rename something else - # to itself, or perhaps because mv is so ancient that it does not - # support -f. - { - # Now remove or move aside any old file at destination location. - # We try this two ways since rm can't unlink itself on some - # systems and the destination file might be busy for other - # reasons. In this case, the final cleanup might fail but the new - # file should still install successfully. - { - test ! -f "$dst" || - $doit $rmcmd -f "$dst" 2>/dev/null || - { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && - { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } - } || - { echo "$0: cannot unlink or rename $dst" >&2 - (exit 1); exit 1 - } - } && - - # Now rename the file to the real destination. - $doit $mvcmd "$dsttmp" "$dst" - } - fi || exit 1 - - trap '' 0 - fi -done - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/externals/zexy/m4/iem_checkflags.m4 b/externals/zexy/m4/iem_checkflags.m4 index cd216325a5b3067272ca21a8e907a2f73b10ae2f..b58b7993da7a9091bfc23e5f166cc247f1e46122 100644 --- a/externals/zexy/m4/iem_checkflags.m4 +++ b/externals/zexy/m4/iem_checkflags.m4 @@ -1,5 +1,5 @@ -dnl Copyright (C) 2005-2011 IOhannes m zmölnig -dnl This file is free software; IOhannes m zmölnig +dnl Copyright (C) 2005-2011 IOhannes m zmölnig +dnl This file is free software; IOhannes m zmölnig dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/externals/zexy/m4/iem_fat.m4 b/externals/zexy/m4/iem_fat.m4 index 712e1dbfbab183fccd6fe58dcbfd4ec060c8f0ea..1ffeb5fe6d9fc36cfcc3ca2790f4fc6e33dcff05 100644 --- a/externals/zexy/m4/iem_fat.m4 +++ b/externals/zexy/m4/iem_fat.m4 @@ -1,5 +1,5 @@ -dnl Copyright (C) 2005-2006 IOhannes m zmölnig -dnl This file is free software; IOhannes m zmölnig +dnl Copyright (C) 2005-2006 IOhannes m zmölnig +dnl This file is free software; IOhannes m zmölnig dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/externals/zexy/m4/iem_parallelport.m4 b/externals/zexy/m4/iem_parallelport.m4 index c6b5fbedf326978edf6c3ae476044472b5d59439..f49707bf7e9390cf83526d8d30477ece80f1482c 100644 --- a/externals/zexy/m4/iem_parallelport.m4 +++ b/externals/zexy/m4/iem_parallelport.m4 @@ -1,5 +1,5 @@ -dnl Copyright (C) 2005-2006 IOhannes m zmölnig -dnl This file is free software; IOhannes m zmölnig +dnl Copyright (C) 2005-2006 IOhannes m zmölnig +dnl This file is free software; IOhannes m zmölnig dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/externals/zexy/m4/iem_simd.m4 b/externals/zexy/m4/iem_simd.m4 index 6ae4c2e80c27ce2ff0c72d7e60eca294c703c835..6b8931b1e646daa9d59c9661741ab99bc6ae2079 100644 --- a/externals/zexy/m4/iem_simd.m4 +++ b/externals/zexy/m4/iem_simd.m4 @@ -1,5 +1,5 @@ -dnl Copyright (C) 2005-2006 IOhannes m zmölnig -dnl This file is free software; IOhannes m zmölnig +dnl Copyright (C) 2005-2006 IOhannes m zmölnig +dnl This file is free software; IOhannes m zmölnig dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/externals/zexy/missing b/externals/zexy/missing deleted file mode 100755 index 86a8fc31e3c2aa268688a5be47d161c586772e78..0000000000000000000000000000000000000000 --- a/externals/zexy/missing +++ /dev/null @@ -1,331 +0,0 @@ -#! /bin/sh -# Common stub for a few missing GNU programs while installing. - -scriptversion=2012-01-06.13; # UTC - -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, -# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. -# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -if test $# -eq 0; then - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 -fi - -run=: -sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' -sed_minuso='s/.* -o \([^ ]*\).*/\1/p' - -# In the cases where this matters, `missing' is being run in the -# srcdir already. -if test -f configure.ac; then - configure_ac=configure.ac -else - configure_ac=configure.in -fi - -msg="missing on your system" - -case $1 in ---run) - # Try to run requested program, and just exit if it succeeds. - run= - shift - "$@" && exit 0 - # Exit code 63 means version mismatch. This often happens - # when the user try to use an ancient version of a tool on - # a file that requires a minimum version. In this case we - # we should proceed has if the program had been absent, or - # if --run hadn't been passed. - if test $? = 63; then - run=: - msg="probably too old" - fi - ;; - - -h|--h|--he|--hel|--help) - echo "\ -$0 [OPTION]... PROGRAM [ARGUMENT]... - -Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an -error status if there is no known handling for PROGRAM. - -Options: - -h, --help display this help and exit - -v, --version output version information and exit - --run try to run the given command, and emulate it if it fails - -Supported PROGRAM values: - aclocal touch file \`aclocal.m4' - autoconf touch file \`configure' - autoheader touch file \`config.h.in' - autom4te touch the output file, or create a stub one - automake touch all \`Makefile.in' files - bison create \`y.tab.[ch]', if possible, from existing .[ch] - flex create \`lex.yy.c', if possible, from existing .c - help2man touch the output file - lex create \`lex.yy.c', if possible, from existing .c - makeinfo touch the output file - yacc create \`y.tab.[ch]', if possible, from existing .[ch] - -Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and -\`g' are ignored when checking the name. - -Send bug reports to <bug-automake@gnu.org>." - exit $? - ;; - - -v|--v|--ve|--ver|--vers|--versi|--versio|--version) - echo "missing $scriptversion (GNU Automake)" - exit $? - ;; - - -*) - echo 1>&2 "$0: Unknown \`$1' option" - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 - ;; - -esac - -# normalize program name to check for. -program=`echo "$1" | sed ' - s/^gnu-//; t - s/^gnu//; t - s/^g//; t'` - -# Now exit if we have it, but it failed. Also exit now if we -# don't have it and --version was passed (most likely to detect -# the program). This is about non-GNU programs, so use $1 not -# $program. -case $1 in - lex*|yacc*) - # Not GNU programs, they don't have --version. - ;; - - *) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - elif test "x$2" = "x--version" || test "x$2" = "x--help"; then - # Could not run --version or --help. This is probably someone - # running `$TOOL --version' or `$TOOL --help' to check whether - # $TOOL exists and not knowing $TOOL uses missing. - exit 1 - fi - ;; -esac - -# If it does not exist, or fails to run (possibly an outdated version), -# try to emulate it. -case $program in - aclocal*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acinclude.m4' or \`${configure_ac}'. You might want - to install the \`Automake' and \`Perl' packages. Grab them from - any GNU archive site." - touch aclocal.m4 - ;; - - autoconf*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`${configure_ac}'. You might want to install the - \`Autoconf' and \`GNU m4' packages. Grab them from any GNU - archive site." - touch configure - ;; - - autoheader*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acconfig.h' or \`${configure_ac}'. You might want - to install the \`Autoconf' and \`GNU m4' packages. Grab them - from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` - test -z "$files" && files="config.h" - touch_files= - for f in $files; do - case $f in - *:*) touch_files="$touch_files "`echo "$f" | - sed -e 's/^[^:]*://' -e 's/:.*//'`;; - *) touch_files="$touch_files $f.in";; - esac - done - touch $touch_files - ;; - - automake*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. - You might want to install the \`Automake' and \`Perl' packages. - Grab them from any GNU archive site." - find . -type f -name Makefile.am -print | - sed 's/\.am$/.in/' | - while read f; do touch "$f"; done - ;; - - autom4te*) - echo 1>&2 "\ -WARNING: \`$1' is needed, but is $msg. - You might have modified some files without having the - proper tools for further handling them. - You can get \`$1' as part of \`Autoconf' from any GNU - archive site." - - file=`echo "$*" | sed -n "$sed_output"` - test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo "#! /bin/sh" - echo "# Created by GNU Automake missing as a replacement of" - echo "# $ $@" - echo "exit 0" - chmod +x $file - exit 1 - fi - ;; - - bison*|yacc*) - echo 1>&2 "\ -WARNING: \`$1' $msg. You should only need it if - you modified a \`.y' file. You may need the \`Bison' package - in order for those modifications to take effect. You can get - \`Bison' from any GNU archive site." - rm -f y.tab.c y.tab.h - if test $# -ne 1; then - eval LASTARG=\${$#} - case $LASTARG in - *.y) - SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` - if test -f "$SRCFILE"; then - cp "$SRCFILE" y.tab.c - fi - SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` - if test -f "$SRCFILE"; then - cp "$SRCFILE" y.tab.h - fi - ;; - esac - fi - if test ! -f y.tab.h; then - echo >y.tab.h - fi - if test ! -f y.tab.c; then - echo 'main() { return 0; }' >y.tab.c - fi - ;; - - lex*|flex*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.l' file. You may need the \`Flex' package - in order for those modifications to take effect. You can get - \`Flex' from any GNU archive site." - rm -f lex.yy.c - if test $# -ne 1; then - eval LASTARG=\${$#} - case $LASTARG in - *.l) - SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` - if test -f "$SRCFILE"; then - cp "$SRCFILE" lex.yy.c - fi - ;; - esac - fi - if test ! -f lex.yy.c; then - echo 'main() { return 0; }' >lex.yy.c - fi - ;; - - help2man*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a dependency of a manual page. You may need the - \`Help2man' package in order for those modifications to take - effect. You can get \`Help2man' from any GNU archive site." - - file=`echo "$*" | sed -n "$sed_output"` - test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo ".ab help2man is required to generate this page" - exit $? - fi - ;; - - makeinfo*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.texi' or \`.texinfo' file, or any other file - indirectly affecting the aspect of the manual. The spurious - call might also be the consequence of using a buggy \`make' (AIX, - DU, IRIX). You might want to install the \`Texinfo' package or - the \`GNU make' package. Grab either from any GNU archive site." - # The file to touch is that specified with -o ... - file=`echo "$*" | sed -n "$sed_output"` - test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` - if test -z "$file"; then - # ... or it is the one specified with @setfilename ... - infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n ' - /^@setfilename/{ - s/.* \([^ ]*\) *$/\1/ - p - q - }' $infile` - # ... or it is derived from the source name (dir/f.texi becomes f.info) - test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info - fi - # If the file does not exist, the user really needs makeinfo; - # let's fail without touching anything. - test -f $file || exit 1 - touch $file - ;; - - *) - echo 1>&2 "\ -WARNING: \`$1' is needed, and is $msg. - You might have modified some files without having the - proper tools for further handling them. Check the \`README' file, - it often tells you about the needed prerequisites for installing - this package. You may also peek at any GNU archive site, in case - some other package would contain this missing \`$1' program." - exit 1 - ;; -esac - -exit 0 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/externals/zexy/reference/Makefile.am b/externals/zexy/reference/Makefile.am index 0295c37b386ea81fefb331d6194754402ffbf2f7..b74db0c39bbc88ab74de1033b4b3f2a77814a054 100644 --- a/externals/zexy/reference/Makefile.am +++ b/externals/zexy/reference/Makefile.am @@ -4,6 +4,8 @@ SUFFIXES = .pd zexydir=$(pkglibdir) +empty= + dist_zexy_DATA= \ a2l-help.pd \ atoi-help.pd \ @@ -77,7 +79,8 @@ dist_zexy_DATA= \ urn-help.pd \ wrap-help.pd \ z~-help.pd \ - zigbinops-help.pd + zigbinops-help.pd \ + $(empty) ############# # symlinks for aliases diff --git a/externals/zexy/reference/Makefile.in b/externals/zexy/reference/Makefile.in deleted file mode 100644 index ec82e573e1dddbbc266c778004ce9938617bf868..0000000000000000000000000000000000000000 --- a/externals/zexy/reference/Makefile.in +++ /dev/null @@ -1,559 +0,0 @@ -# Makefile.in generated by automake 1.11.3 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = reference -DIST_COMMON = $(dist_zexy_DATA) $(dist_zexyalias_DATA) \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/iem_checkflags.m4 \ - $(top_srcdir)/m4/iem_fat.m4 \ - $(top_srcdir)/m4/iem_operatingsystem.m4 \ - $(top_srcdir)/m4/iem_parallelport.m4 \ - $(top_srcdir)/m4/iem_simd.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -SOURCES = -DIST_SOURCES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(zexydir)" "$(DESTDIR)$(zexyaliasdir)" -DATA = $(dist_zexy_DATA) $(dist_zexyalias_DATA) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -ARCH_FLAG = @ARCH_FLAG@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTENSION = @EXTENSION@ -EXTRA_LTFLAGS = @EXTRA_LTFLAGS@ -FGREP = @FGREP@ -GREP = @GREP@ -INCLUDES = @INCLUDES@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBTOOL_DEPS = @LIBTOOL_DEPS@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = foreign -SUFFIXES = .pd -zexydir = $(pkglibdir) -dist_zexy_DATA = \ - a2l-help.pd \ - atoi-help.pd \ - avg~-help.pd \ - blockmirror~-help.pd \ - blockswap~-help.pd \ - coordinates-help.pd \ - date-help.pd \ - demultiplex~-help.pd \ - demultiplex-help.pd \ - dfreq~-help.pd \ - digidistort-help.pd \ - dirac~-help.pd \ - drip-help.pd \ - envrms~-help.pd \ - fifop-help.pd \ - freadln-help.pd \ - fwriteln-help.pd \ - glue-help.pd \ - index-help.pd \ - length-help.pd \ - lifop-help.pd \ - limiter~-help.pd \ - list2int-help.pd \ - list2lists-help.pd \ - list2symbol-help.pd \ - lister-help.pd \ - listfind-help.pd \ - lpt-help.pd \ - makesymbol-help.pd \ - matchbox-help.pd \ - mavg-help.pd \ - minmax-help.pd \ - msgfile-help.pd \ - multiline~-help.pd \ - multiplex~-help.pd \ - multiplex-help.pd \ - niagara-help.pd \ - noish~-help.pd \ - noisi~-help.pd \ - operating_system-help.pd \ - packel-help.pd \ - pack~-help.pd \ - pack-help.pd \ - pdf~-help.pd \ - prime-help.pd \ - quantize~-help.pd \ - rawprint-help.pd \ - regex-help-help.pd \ - regex-help.pd \ - relay-help.pd \ - repack-help.pd \ - repeat-help.pd \ - route~-help.pd \ - scalarmult-help.pd \ - sf-play_record-help.pd \ - sigzero~-help.pd \ - sort-help.pd \ - step~-help.pd \ - strcmp-help.pd \ - sum-help.pd \ - swap~-help.pd \ - symbol2list-help.pd \ - tabdump-help.pd \ - tabminmax-help.pd \ - tabset-help.pd \ - tavg~-help.pd \ - time-help.pd \ - unpack~-help.pd \ - unpack-help.pd \ - urn-help.pd \ - wrap-help.pd \ - z~-help.pd \ - zigbinops-help.pd - - -############# -# symlinks for aliases -zexyaliasdir = $(pkglibdir) -dist_zexyalias_DATA = \ - unfold-help.pd \ - mux-help.pd \ - demux~-help.pd \ - l2i-help.pd \ - l2s-help.pd \ - any2list-help.pd \ - lp-help.pd \ - demux-help.pd \ - l-help.pd \ - mux~-help.pd \ - s2l-help.pd - -all: all-am - -.SUFFIXES: -.SUFFIXES: .pd -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign reference/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign reference/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-dist_zexyDATA: $(dist_zexy_DATA) - @$(NORMAL_INSTALL) - test -z "$(zexydir)" || $(MKDIR_P) "$(DESTDIR)$(zexydir)" - @list='$(dist_zexy_DATA)'; test -n "$(zexydir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(zexydir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(zexydir)" || exit $$?; \ - done - -uninstall-dist_zexyDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_zexy_DATA)'; test -n "$(zexydir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(zexydir)'; $(am__uninstall_files_from_dir) -install-dist_zexyaliasDATA: $(dist_zexyalias_DATA) - @$(NORMAL_INSTALL) - test -z "$(zexyaliasdir)" || $(MKDIR_P) "$(DESTDIR)$(zexyaliasdir)" - @list='$(dist_zexyalias_DATA)'; test -n "$(zexyaliasdir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(zexyaliasdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(zexyaliasdir)" || exit $$?; \ - done - -uninstall-dist_zexyaliasDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_zexyalias_DATA)'; test -n "$(zexyaliasdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(zexyaliasdir)'; $(am__uninstall_files_from_dir) -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: - for dir in "$(DESTDIR)$(zexydir)" "$(DESTDIR)$(zexyaliasdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-local mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-dist_zexyDATA install-dist_zexyaliasDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-dist_zexyDATA uninstall-dist_zexyaliasDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - clean-local distclean distclean-generic distclean-libtool \ - distdir dvi dvi-am html html-am info info-am install \ - install-am install-data install-data-am install-dist_zexyDATA \ - install-dist_zexyaliasDATA install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-dist_zexyDATA uninstall-dist_zexyaliasDATA - - -clean-local: clean_zexyalias -.PHONY: clean_zexyalias - -# create aliases -$(dist_zexyalias_DATA): - test -e $< && $(LN_S) $< $@ - -# delete aliases -clean_zexyalias: - -rm -f $(dist_zexyalias_DATA) - -# define aliases -any2list-help.pd: a2l-help.pd -demux~-help.pd: demultiplex~-help.pd -demux-help.pd: demultiplex-help.pd -l2i-help.pd: list2int-help.pd -l2s-help.pd: list2symbol-help.pd -l-help.pd: lister-help.pd -lp-help.pd: lpt-help.pd -mux~-help.pd: multiplex~-help.pd -mux-help.pd: multiplex-help.pd -s2l-help.pd: symbol2list-help.pd -unfold-help.pd: drip-help.pd - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/externals/zexy/reference/limiter~-help.pd b/externals/zexy/reference/limiter~-help.pd index 4bfe18e412900a13037f3edf4a6e70c1e25ef86e..246a36bb0193dc52d4da703a6547ee78bad69d0d 100644 --- a/externals/zexy/reference/limiter~-help.pd +++ b/externals/zexy/reference/limiter~-help.pd @@ -61,7 +61,7 @@ #X restore 476 221 pd generator~; #X text 37 99 it is quite important to delay the original signals before the limiter-amplification is applied to prevent clicks !!!; -#X text 52 353 1906:forum::für::umläute:2001; +#X text 52 353 1906:forum::für::umläute:2001; #X text 585 170 level of the inlets; #X text 511 148 (give some 190dB and notice no clipping); #X obj 493 298 z~ 64; diff --git a/externals/zexy/reference/longload-help.pd b/externals/zexy/reference/longload-help.pd new file mode 100644 index 0000000000000000000000000000000000000000..415d08741b27bb011687696ca3721c11a717b0ee --- /dev/null +++ b/externals/zexy/reference/longload-help.pd @@ -0,0 +1,6 @@ +#N canvas 553 320 450 300 10; +#X text 148 51 takes long to load; +#X obj 35 51 longload 5000; +#X text 30 119 the optional argument specifies the time (in ms) \, +this object takes to instantiate.; +#X text 36 158 the default is 1000ms.; diff --git a/externals/zexy/src/0x260x260x7e.c b/externals/zexy/src/0x260x260x7e.c index a93e56be90346ef4c83dfd70895eb9238e771c91..88e4896ff7a5b99eacccf3939a46e56b4d8f56fd 100644 --- a/externals/zexy/src/0x260x260x7e.c +++ b/externals/zexy/src/0x260x260x7e.c @@ -1,4 +1,4 @@ -/* +/* * &&~: logical AND for signals * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -25,14 +25,12 @@ /* ----------------------------- andand_tilde ----------------------------- */ static t_class *andand_tilde_class, *scalarandand_tilde_class; -typedef struct _andand_tilde -{ +typedef struct _andand_tilde { t_object x_obj; t_float x_f; } t_andand_tilde; -typedef struct _scalarandand_tilde -{ +typedef struct _scalarandand_tilde { t_object x_obj; t_float x_f; t_float x_g; /* inlet value */ @@ -40,24 +38,24 @@ typedef struct _scalarandand_tilde static void *andand_tilde_new(t_symbol * UNUSED(s), int argc, t_atom *argv) { - if (argc > 1) post("&&~: extra arguments ignored"); - if (argc) - { - t_scalarandand_tilde *x = (t_scalarandand_tilde *)pd_new(scalarandand_tilde_class); - floatinlet_new(&x->x_obj, &x->x_g); - x->x_g = atom_getfloatarg(0, argc, argv); - outlet_new(&x->x_obj, gensym("signal")); - x->x_f = 0; - return (x); - } - else - { - t_andand_tilde *x = (t_andand_tilde *)pd_new(andand_tilde_class); - inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); - outlet_new(&x->x_obj, gensym("signal")); - x->x_f = 0; - return (x); - } + if (argc > 1) { + post("&&~: extra arguments ignored"); + } + if (argc) { + t_scalarandand_tilde *x = (t_scalarandand_tilde *)pd_new( + scalarandand_tilde_class); + floatinlet_new(&x->x_obj, &x->x_g); + x->x_g = atom_getfloatarg(0, argc, argv); + outlet_new(&x->x_obj, gensym("signal")); + x->x_f = 0; + return (x); + } else { + t_andand_tilde *x = (t_andand_tilde *)pd_new(andand_tilde_class); + inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); + outlet_new(&x->x_obj, gensym("signal")); + x->x_f = 0; + return (x); + } } static t_int *andand_tilde_perform(t_int *w) @@ -66,7 +64,7 @@ static t_int *andand_tilde_perform(t_int *w) t_sample *in2 = (t_sample *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - while (n--){ + while (n--) { int f=(int)*in1++; int g=(int)*in2++; *out++ = (f && g); @@ -80,17 +78,22 @@ static t_int *andand_tilde_perf8(t_int *w) t_sample *in2 = (t_sample *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - for (; n; n -= 8, in1 += 8, in2 += 8, out += 8) - { - int f0 = in1[0], f1 = in1[1], f2 = in1[2], f3 = in1[3]; - int f4 = in1[4], f5 = in1[5], f6 = in1[6], f7 = in1[7]; - - int g0 = in2[0], g1 = in2[1], g2 = in2[2], g3 = in2[3]; - int g4 = in2[4], g5 = in2[5], g6 = in2[6], g7 = in2[7]; - - out[0] = f0 && g0; out[1] = f1 && g1; out[2] = f2 && g2; out[3] = f3 && g3; - out[4] = f4 && g4; out[5] = f5 && g5; out[6] = f6 && g6; out[7] = f7 && g7; - } + for (; n; n -= 8, in1 += 8, in2 += 8, out += 8) { + int f0 = in1[0], f1 = in1[1], f2 = in1[2], f3 = in1[3]; + int f4 = in1[4], f5 = in1[5], f6 = in1[6], f7 = in1[7]; + + int g0 = in2[0], g1 = in2[1], g2 = in2[2], g3 = in2[3]; + int g4 = in2[4], g5 = in2[5], g6 = in2[6], g7 = in2[7]; + + out[0] = f0 && g0; + out[1] = f1 && g1; + out[2] = f2 && g2; + out[3] = f3 && g3; + out[4] = f4 && g4; + out[5] = f5 && g5; + out[6] = f6 && g6; + out[7] = f7 && g7; + } return (w+5); } @@ -100,7 +103,9 @@ static t_int *scalarandand_tilde_perform(t_int *w) int f = *(t_float *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - while (n--) *out++ = (int)*in++ && f; + while (n--) { + *out++ = (int)*in++ && f; + } return (w+5); } @@ -110,19 +115,24 @@ static t_int *scalarandand_tilde_perf8(t_int *w) int g = *(t_float *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - for (; n; n -= 8, in += 8, out += 8) - { - int f0 = in[0], f1 = in[1], f2 = in[2], f3 = in[3]; - int f4 = in[4], f5 = in[5], f6 = in[6], f7 = in[7]; - - out[0] = f0 && g; out[1] = f1 && g; out[2] = f2 && g; out[3] = f3 && g; - out[4] = f4 && g; out[5] = f5 && g; out[6] = f6 && g; out[7] = f7 && g; - } + for (; n; n -= 8, in += 8, out += 8) { + int f0 = in[0], f1 = in[1], f2 = in[2], f3 = in[3]; + int f4 = in[4], f5 = in[5], f6 = in[6], f7 = in[7]; + + out[0] = f0 && g; + out[1] = f1 && g; + out[2] = f2 && g; + out[3] = f3 && g; + out[4] = f4 && g; + out[5] = f5 && g; + out[6] = f6 && g; + out[7] = f7 && g; + } return (w+5); } #ifdef __SSE__ -static int l_bitmask[]={0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff}; +static int l_bitmask[]= {0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff}; static t_int *andand_tilde_performSSE(t_int *w) { @@ -131,14 +141,16 @@ static t_int *andand_tilde_performSSE(t_int *w) __m128 *out = (__m128 *)(w[3]); int n = (int)(w[4])>>4; - const __m128 bitmask= _mm_loadu_ps((float*)l_bitmask); /* for getting the absolute value */ + const __m128 bitmask= _mm_loadu_ps((float*) + l_bitmask); /* for getting the absolute value */ const __m128 one = _mm_set1_ps(1.f); while (n--) { __m128 xmm0, xmm1, xmm2; xmm0 = _mm_and_ps (in1[0] , bitmask); /* =abs(f); */ xmm1 = _mm_and_ps (in2[0] , bitmask); - xmm0 = _mm_cmpge_ps(xmm0 , one); /* =(abs(f)>=1.0)=i (a weird cast to integer) */ + xmm0 = _mm_cmpge_ps(xmm0 , + one); /* =(abs(f)>=1.0)=i (a weird cast to integer) */ xmm1 = _mm_cmpge_ps(xmm1 , one); xmm2 = _mm_and_ps (xmm0 , xmm1); /* =(i0&&i1) */ out[0] = _mm_and_ps (xmm2 , one); /* 0xfffffff -> 1.0 */ @@ -167,7 +179,7 @@ static t_int *andand_tilde_performSSE(t_int *w) in1+=4; in2+=4; out+=4; - } + } return (w+5); } @@ -179,7 +191,8 @@ static t_int *scalarandand_tilde_performSSE(t_int *w) __m128 scalar = _mm_set1_ps(f); int n = (int)(w[4])>>4; - const __m128 bitmask= _mm_loadu_ps((float*)l_bitmask); /* for getting the absolute value */ + const __m128 bitmask= _mm_loadu_ps((float*) + l_bitmask); /* for getting the absolute value */ const __m128 one = _mm_set1_ps(1.f); scalar = _mm_and_ps (scalar, bitmask); @@ -189,7 +202,8 @@ static t_int *scalarandand_tilde_performSSE(t_int *w) while (n--) { __m128 xmm0, xmm1; xmm0 = _mm_and_ps (in[0], bitmask); /* =abs(f); */ - xmm0 = _mm_cmpge_ps(xmm0 , one); /* =(abs(f)>=1.0)=i (a weird cast to integer) */ + xmm0 = _mm_cmpge_ps(xmm0 , + one); /* =(abs(f)>=1.0)=i (a weird cast to integer) */ xmm0 = _mm_and_ps (xmm0 , scalar); /* =(i0&&i1) */ out[0] = _mm_and_ps (xmm0 , one); /* 0xfffffff -> 1.0 */ @@ -225,20 +239,20 @@ static void andand_tilde_dsp(t_andand_tilde *UNUSED(x), t_signal **sp) #ifdef __SSE__ if( - Z_SIMD_CHKBLOCKSIZE(n)&& - Z_SIMD_CHKALIGN(in1)&& - Z_SIMD_CHKALIGN(in2)&& - Z_SIMD_CHKALIGN(out)&& - ZEXY_TYPE_EQUAL(t_sample, float) - ) - { - dsp_add(andand_tilde_performSSE, 4, in1, in2, out, n); - } else + Z_SIMD_CHKBLOCKSIZE(n)&& + Z_SIMD_CHKALIGN(in1)&& + Z_SIMD_CHKALIGN(in2)&& + Z_SIMD_CHKALIGN(out)&& + ZEXY_TYPE_EQUAL(t_sample, float) + ) { + dsp_add(andand_tilde_performSSE, 4, in1, in2, out, n); + } else #endif - if (n&7) - dsp_add(andand_tilde_perform, 4, in1, in2, out, n); - else - dsp_add(andand_tilde_perf8, 4, in1, in2, out, n); + if (n&7) { + dsp_add(andand_tilde_perform, 4, in1, in2, out, n); + } else { + dsp_add(andand_tilde_perf8, 4, in1, in2, out, n); + } } static void scalarandand_tilde_dsp(t_scalarandand_tilde *x, t_signal **sp) @@ -249,42 +263,47 @@ static void scalarandand_tilde_dsp(t_scalarandand_tilde *x, t_signal **sp) #ifdef __SSE__ if( - Z_SIMD_CHKBLOCKSIZE(n)&& - Z_SIMD_CHKALIGN(in)&& - Z_SIMD_CHKALIGN(out)&& - ZEXY_TYPE_EQUAL(t_sample, float) - ) - { - dsp_add(scalarandand_tilde_performSSE, 4, in, &x->x_g, out, n); - } else + Z_SIMD_CHKBLOCKSIZE(n)&& + Z_SIMD_CHKALIGN(in)&& + Z_SIMD_CHKALIGN(out)&& + ZEXY_TYPE_EQUAL(t_sample, float) + ) { + dsp_add(scalarandand_tilde_performSSE, 4, in, &x->x_g, out, n); + } else #endif - if (n&7) - dsp_add(scalarandand_tilde_perform, 4, in, &x->x_g, out, n); - else - dsp_add(scalarandand_tilde_perf8, 4, in, &x->x_g, out, n); + if (n&7) { + dsp_add(scalarandand_tilde_perform, 4, in, &x->x_g, out, n); + } else { + dsp_add(scalarandand_tilde_perf8, 4, in, &x->x_g, out, n); + } } static void andand_tilde_help(t_object*x) { - post("\n"HEARTSYMBOL" &&~\t\t:: logical AND operation on 2 signals"); + post("\n"HEARTSYMBOL " &&~\t\t:: logical AND operation on 2 signals"); } void setup_0x260x260x7e(void) { - andand_tilde_class = class_new(gensym("&&~"), (t_newmethod)andand_tilde_new, 0, - sizeof(t_andand_tilde), 0, A_GIMME, 0); - class_addmethod(andand_tilde_class, (t_method)andand_tilde_dsp, gensym("dsp"), A_CANT, 0); + andand_tilde_class = class_new(gensym("&&~"), + (t_newmethod)andand_tilde_new, 0, + sizeof(t_andand_tilde), 0, A_GIMME, 0); + class_addmethod(andand_tilde_class, (t_method)andand_tilde_dsp, + gensym("dsp"), 0); CLASS_MAINSIGNALIN(andand_tilde_class, t_andand_tilde, x_f); - class_addmethod (andand_tilde_class, (t_method)andand_tilde_help, gensym("help"), A_NULL); + class_addmethod (andand_tilde_class, (t_method)andand_tilde_help, + gensym("help"), A_NULL); class_sethelpsymbol(andand_tilde_class, gensym("zigbinops")); scalarandand_tilde_class = class_new(gensym("&&~"), 0, 0, - sizeof(t_scalarandand_tilde), 0, 0); + sizeof(t_scalarandand_tilde), 0, 0); CLASS_MAINSIGNALIN(scalarandand_tilde_class, t_scalarandand_tilde, x_f); - class_addmethod(scalarandand_tilde_class, (t_method)scalarandand_tilde_dsp, gensym("dsp"), - 0); - class_addmethod (scalarandand_tilde_class, (t_method)andand_tilde_help, gensym("help"), A_NULL); + class_addmethod(scalarandand_tilde_class, (t_method)scalarandand_tilde_dsp, + gensym("dsp"), + 0); + class_addmethod (scalarandand_tilde_class, (t_method)andand_tilde_help, + gensym("help"), A_NULL); class_sethelpsymbol(scalarandand_tilde_class, gensym("zigbinops")); zexy_register("&&~"); @@ -293,6 +312,6 @@ void setup_0x260x260x7e(void) #ifndef ZEXY_LIBRARY void setup(void) { - setup_0x260x260x7e(); + setup_0x260x260x7e(); } #endif diff --git a/externals/zexy/src/0x2e.c b/externals/zexy/src/0x2e.c index d138ed73f9ae9690b8130e123e140561e435853e..83f4abc2a1b3bf6e3a411e57bc95ef857ba4e14c 100644 --- a/externals/zexy/src/0x2e.c +++ b/externals/zexy/src/0x2e.c @@ -1,4 +1,4 @@ -/* +/* * [.]: scala multiplication * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -23,8 +23,7 @@ static t_class *scalmul_class; static t_class *scalmul_scal_class; -typedef struct _scalmul -{ +typedef struct _scalmul { t_object x_obj; t_int n1, n2; @@ -35,7 +34,8 @@ typedef struct _scalmul } t_scalmul; -static void scalmul_lst2(t_scalmul *x, t_symbol *UNUSED(s), int argc, t_atom *argv) +static void scalmul_lst2(t_scalmul *x, t_symbol *UNUSED(s), int argc, + t_atom *argv) { t_float *fp; if (x->n2 != argc) { @@ -44,30 +44,35 @@ static void scalmul_lst2(t_scalmul *x, t_symbol *UNUSED(s), int argc, t_atom *ar x->buf2=(t_float *)getbytes(sizeof(t_float)*x->n2); }; fp = x->buf2; - while(argc--)*fp++=atom_getfloat(argv++); + while(argc--) { + *fp++=atom_getfloat(argv++); + } } -static void scalmul_lst(t_scalmul *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void scalmul_lst(t_scalmul *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { t_float *fp; t_atom *ap; int n; - if (argc){ + if (argc) { if (x->n1 != argc) { freebytes(x->buf1, x->n1 * sizeof(t_float)); x->n1 = argc; x->buf1=(t_float *)getbytes(sizeof(t_float)*x->n1); }; fp = x->buf1; - while(argc--)*fp++=atom_getfloat(argv++); + while(argc--) { + *fp++=atom_getfloat(argv++); + } } - if (x->n1*x->n2==1){ + if (x->n1*x->n2==1) { outlet_float(x->x_obj.ob_outlet, *x->buf1**x->buf2); return; } - if (x->n1==1){ + if (x->n1==1) { t_atom *a; int i = x->n2; t_float f = *x->buf1; @@ -75,11 +80,11 @@ static void scalmul_lst(t_scalmul *x, t_symbol* UNUSED(s), int argc, t_atom *arg n = x->n2; ap = (t_atom *)getbytes(sizeof(t_atom)*n); a = ap; - while(i--){ + while(i--) { SETFLOAT(a, *fp++*f); a++; } - } else if (x->n2==1){ + } else if (x->n2==1) { t_float f = *x->buf2; t_atom *a; int i = x->n1; @@ -87,7 +92,7 @@ static void scalmul_lst(t_scalmul *x, t_symbol* UNUSED(s), int argc, t_atom *arg ap = (t_atom *)getbytes(sizeof(t_atom)*n); a = ap; fp = x->buf1; - while(i--){ + while(i--) { SETFLOAT(a, *fp++*f); a++; } @@ -97,14 +102,16 @@ static void scalmul_lst(t_scalmul *x, t_symbol* UNUSED(s), int argc, t_atom *arg t_float *fp2=x->buf2; fp = x->buf1; n = x->n1; - if (x->n1!=x->n2){ + if (x->n1!=x->n2) { post("scalar multiplication: truncating vectors to the same length"); - if (x->n2<x->n1)n=x->n2; + if (x->n2<x->n1) { + n=x->n2; + } } ap = (t_atom *)getbytes(sizeof(t_atom)*n); a = ap; i=n; - while(i--){ + while(i--) { SETFLOAT(a, *fp++**fp2++); a++; } @@ -121,10 +128,12 @@ static void scalmul_free(t_scalmul *x) static void *scalmul_new(t_symbol* UNUSED(s), int argc, t_atom *argv) { t_scalmul *x; - if (argc-1){ + if (argc-1) { x = (t_scalmul *)pd_new(scalmul_class); inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("list"), gensym("")); - } else x = (t_scalmul *)pd_new(scalmul_scal_class); + } else { + x = (t_scalmul *)pd_new(scalmul_scal_class); + } outlet_new(&x->x_obj, 0); @@ -132,35 +141,41 @@ static void *scalmul_new(t_symbol* UNUSED(s), int argc, t_atom *argv) x->buf1 =(t_float*)getbytes(sizeof(t_float)); *x->buf1=0; - if (argc)scalmul_lst2(x, gensym("list"), argc, argv); - else { + if (argc) { + scalmul_lst2(x, gensym("list"), argc, argv); + } else { x->n2 =1; x->buf2 =(t_float*)getbytes(sizeof(t_float)); *x->buf2=0; } - if (argc==1)floatinlet_new(&x->x_obj, x->buf2); + if (argc==1) { + floatinlet_new(&x->x_obj, x->buf2); + } return (x); } static void scalmul_help(t_scalmul*x) { - post("\n"HEARTSYMBOL" .\t\t:: scalar multiplication (in-product)"); + post("\n"HEARTSYMBOL " .\t\t:: scalar multiplication (in-product)"); } void setup_0x2e(void) { - scalmul_class = class_new(gensym("."), (t_newmethod)scalmul_new, - (t_method)scalmul_free, sizeof(t_scalmul), 0, A_GIMME, 0); + scalmul_class = class_new(gensym("."), (t_newmethod)scalmul_new, + (t_method)scalmul_free, sizeof(t_scalmul), 0, A_GIMME, 0); class_addlist(scalmul_class, scalmul_lst); - class_addmethod (scalmul_class, (t_method)scalmul_lst2, gensym(""), A_GIMME, 0); - class_addmethod(scalmul_class, (t_method)scalmul_help, gensym("help"), A_NULL); + class_addmethod (scalmul_class, (t_method)scalmul_lst2, gensym(""), + A_GIMME, 0); + class_addmethod(scalmul_class, (t_method)scalmul_help, gensym("help"), + A_NULL); - scalmul_scal_class = class_new(gensym("."), 0, (t_method)scalmul_free, - sizeof(t_scalmul), 0, 0); + scalmul_scal_class = class_new(gensym("."), 0, (t_method)scalmul_free, + sizeof(t_scalmul), 0, 0); class_addlist(scalmul_scal_class, scalmul_lst); - class_addmethod(scalmul_scal_class, (t_method)scalmul_help, gensym("help"), A_NULL); + class_addmethod(scalmul_scal_class, (t_method)scalmul_help, gensym("help"), + A_NULL); class_sethelpsymbol(scalmul_class, gensym("scalarmult")); class_sethelpsymbol(scalmul_scal_class, gensym("scalarmult")); @@ -170,6 +185,6 @@ void setup_0x2e(void) #ifndef ZEXY_LIBRARY void setup(void) { - setup_0x2e(); + setup_0x2e(); } #endif diff --git a/externals/zexy/src/0x3c0x7e.c b/externals/zexy/src/0x3c0x7e.c index b05449d0fe14e98e8f747d9c5a0650064a42333f..c710dd7998f944067e01c5ce9ef49299d90ef777 100644 --- a/externals/zexy/src/0x3c0x7e.c +++ b/externals/zexy/src/0x3c0x7e.c @@ -1,4 +1,4 @@ -/* +/* * <~: signal comparision * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -25,14 +25,12 @@ /* ----------------------------- lt_tilde ----------------------------- */ static t_class *lt_tilde_class, *scalarlt_tilde_class; -typedef struct _lt_tilde -{ +typedef struct _lt_tilde { t_object x_obj; t_float x_f; } t_lt_tilde; -typedef struct _scalarlt_tilde -{ +typedef struct _scalarlt_tilde { t_object x_obj; t_float x_f; t_float x_g; /* inlet value */ @@ -40,24 +38,23 @@ typedef struct _scalarlt_tilde static void *lt_tilde_new(t_symbol *UNUSED(s), int argc, t_atom *argv) { - if (argc > 1) post("<~: extra arguments ignored"); - if (argc) - { - t_scalarlt_tilde *x = (t_scalarlt_tilde *)pd_new(scalarlt_tilde_class); - floatinlet_new(&x->x_obj, &x->x_g); - x->x_g = atom_getfloatarg(0, argc, argv); - outlet_new(&x->x_obj, gensym("signal")); - x->x_f = 0; - return (x); - } - else - { - t_lt_tilde *x = (t_lt_tilde *)pd_new(lt_tilde_class); - inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); - outlet_new(&x->x_obj, gensym("signal")); - x->x_f = 0; - return (x); - } + if (argc > 1) { + post("<~: extra arguments ignored"); + } + if (argc) { + t_scalarlt_tilde *x = (t_scalarlt_tilde *)pd_new(scalarlt_tilde_class); + floatinlet_new(&x->x_obj, &x->x_g); + x->x_g = atom_getfloatarg(0, argc, argv); + outlet_new(&x->x_obj, gensym("signal")); + x->x_f = 0; + return (x); + } else { + t_lt_tilde *x = (t_lt_tilde *)pd_new(lt_tilde_class); + inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); + outlet_new(&x->x_obj, gensym("signal")); + x->x_f = 0; + return (x); + } } static t_int *lt_tilde_perform(t_int *w) @@ -66,7 +63,9 @@ static t_int *lt_tilde_perform(t_int *w) t_sample *in2 = (t_sample *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - while (n--) *out++ = *in1++ < *in2++; + while (n--) { + *out++ = *in1++ < *in2++; + } return (w+5); } @@ -76,17 +75,22 @@ static t_int *lt_tilde_perf8(t_int *w) t_sample *in2 = (t_sample *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - for (; n; n -= 8, in1 += 8, in2 += 8, out += 8) - { - t_sample f0 = in1[0], f1 = in1[1], f2 = in1[2], f3 = in1[3]; - t_sample f4 = in1[4], f5 = in1[5], f6 = in1[6], f7 = in1[7]; - - t_sample g0 = in2[0], g1 = in2[1], g2 = in2[2], g3 = in2[3]; - t_sample g4 = in2[4], g5 = in2[5], g6 = in2[6], g7 = in2[7]; - - out[0] = f0 < g0; out[1] = f1 < g1; out[2] = f2 < g2; out[3] = f3 < g3; - out[4] = f4 < g4; out[5] = f5 < g5; out[6] = f6 < g6; out[7] = f7 < g7; - } + for (; n; n -= 8, in1 += 8, in2 += 8, out += 8) { + t_sample f0 = in1[0], f1 = in1[1], f2 = in1[2], f3 = in1[3]; + t_sample f4 = in1[4], f5 = in1[5], f6 = in1[6], f7 = in1[7]; + + t_sample g0 = in2[0], g1 = in2[1], g2 = in2[2], g3 = in2[3]; + t_sample g4 = in2[4], g5 = in2[5], g6 = in2[6], g7 = in2[7]; + + out[0] = f0 < g0; + out[1] = f1 < g1; + out[2] = f2 < g2; + out[3] = f3 < g3; + out[4] = f4 < g4; + out[5] = f5 < g5; + out[6] = f6 < g6; + out[7] = f7 < g7; + } return (w+5); } @@ -96,7 +100,9 @@ static t_int *scalarlt_tilde_perform(t_int *w) t_sample f = *(t_float *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - while (n--) *out++ = *in++ < f; + while (n--) { + *out++ = *in++ < f; + } return (w+5); } @@ -106,14 +112,19 @@ static t_int *scalarlt_tilde_perf8(t_int *w) t_sample g = *(t_float *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - for (; n; n -= 8, in += 8, out += 8) - { - t_sample f0 = in[0], f1 = in[1], f2 = in[2], f3 = in[3]; - t_sample f4 = in[4], f5 = in[5], f6 = in[6], f7 = in[7]; - - out[0] = f0 < g; out[1] = f1 < g; out[2] = f2 < g; out[3] = f3 < g; - out[4] = f4 < g; out[5] = f5 < g; out[6] = f6 < g; out[7] = f7 < g; - } + for (; n; n -= 8, in += 8, out += 8) { + t_sample f0 = in[0], f1 = in[1], f2 = in[2], f3 = in[3]; + t_sample f4 = in[4], f5 = in[5], f6 = in[6], f7 = in[7]; + + out[0] = f0 < g; + out[1] = f1 < g; + out[2] = f2 < g; + out[3] = f3 < g; + out[4] = f4 < g; + out[5] = f5 < g; + out[6] = f6 < g; + out[7] = f7 < g; + } return (w+5); } #ifdef __SSE__ @@ -142,7 +153,7 @@ static t_int *lt_tilde_performSSE(t_int *w) in1+=4; in2+=4; out+=4; - } + } return (w+5); } @@ -185,20 +196,20 @@ static void lt_tilde_dsp(t_lt_tilde* UNUSED(x), t_signal **sp) int n=sp[0]->s_n; #ifdef __SSE__ if( - Z_SIMD_CHKBLOCKSIZE(n)&& - Z_SIMD_CHKALIGN(in1)&& - Z_SIMD_CHKALIGN(in2)&& - Z_SIMD_CHKALIGN(out)&& - ZEXY_TYPE_EQUAL(t_sample, float) - ) - { - dsp_add(lt_tilde_performSSE, 4, in1, in2, out, n); - } else + Z_SIMD_CHKBLOCKSIZE(n)&& + Z_SIMD_CHKALIGN(in1)&& + Z_SIMD_CHKALIGN(in2)&& + Z_SIMD_CHKALIGN(out)&& + ZEXY_TYPE_EQUAL(t_sample, float) + ) { + dsp_add(lt_tilde_performSSE, 4, in1, in2, out, n); + } else #endif - if(n&7) - dsp_add(lt_tilde_perform, 4, in1, in2, out, n); - else - dsp_add(lt_tilde_perf8, 4, in1, in2, out, n); + if(n&7) { + dsp_add(lt_tilde_perform, 4, in1, in2, out, n); + } else { + dsp_add(lt_tilde_perf8, 4, in1, in2, out, n); + } } static void scalarlt_tilde_dsp(t_scalarlt_tilde *x, t_signal **sp) @@ -209,40 +220,43 @@ static void scalarlt_tilde_dsp(t_scalarlt_tilde *x, t_signal **sp) #ifdef __SSE__ if( - Z_SIMD_CHKBLOCKSIZE(n)&& - Z_SIMD_CHKALIGN(in)&& - Z_SIMD_CHKALIGN(out)&& - ZEXY_TYPE_EQUAL(t_sample, float) - ) - { - dsp_add(scalarlt_tilde_performSSE, 4, in, &x->x_g, out, n); - } else + Z_SIMD_CHKBLOCKSIZE(n)&& + Z_SIMD_CHKALIGN(in)&& + Z_SIMD_CHKALIGN(out)&& + ZEXY_TYPE_EQUAL(t_sample, float) + ) { + dsp_add(scalarlt_tilde_performSSE, 4, in, &x->x_g, out, n); + } else #endif - if (n&7) - dsp_add(scalarlt_tilde_perform, 4, in, &x->x_g, out, n); - else - dsp_add(scalarlt_tilde_perf8, 4, in, &x->x_g, out, n); + if (n&7) { + dsp_add(scalarlt_tilde_perform, 4, in, &x->x_g, out, n); + } else { + dsp_add(scalarlt_tilde_perf8, 4, in, &x->x_g, out, n); + } } static void lt_tilde_help(t_object*x) { - post("\n"HEARTSYMBOL" <~\t\t:: compare 2 signals"); + post("\n"HEARTSYMBOL " <~\t\t:: compare 2 signals"); } void setup_0x3c0x7e(void) { lt_tilde_class = class_new(gensym("<~"), (t_newmethod)lt_tilde_new, 0, - sizeof(t_lt_tilde), 0, A_GIMME, 0); - class_addmethod(lt_tilde_class, (t_method)lt_tilde_dsp, gensym("dsp"), A_CANT, 0); + sizeof(t_lt_tilde), 0, A_GIMME, 0); + class_addmethod(lt_tilde_class, (t_method)lt_tilde_dsp, gensym("dsp"), 0); CLASS_MAINSIGNALIN(lt_tilde_class, t_lt_tilde, x_f); - class_addmethod (lt_tilde_class, (t_method)lt_tilde_help, gensym("help"), A_NULL); + class_addmethod (lt_tilde_class, (t_method)lt_tilde_help, gensym("help"), + A_NULL); class_sethelpsymbol(lt_tilde_class, gensym("zigbinops")); scalarlt_tilde_class = class_new(gensym("<~"), 0, 0, - sizeof(t_scalarlt_tilde), 0, 0); + sizeof(t_scalarlt_tilde), 0, 0); CLASS_MAINSIGNALIN(scalarlt_tilde_class, t_scalarlt_tilde, x_f); - class_addmethod(scalarlt_tilde_class, (t_method)scalarlt_tilde_dsp, gensym("dsp"), - 0); - class_addmethod (scalarlt_tilde_class, (t_method)lt_tilde_help, gensym("help"), A_NULL); + class_addmethod(scalarlt_tilde_class, (t_method)scalarlt_tilde_dsp, + gensym("dsp"), + 0); + class_addmethod (scalarlt_tilde_class, (t_method)lt_tilde_help, + gensym("help"), A_NULL); class_sethelpsymbol(scalarlt_tilde_class, gensym("zigbinops")); zexy_register("<~"); } @@ -250,6 +264,6 @@ void setup_0x3c0x7e(void) #ifndef ZEXY_LIBRARY void setup(void) { - setup_0x3c0x7e(); + setup_0x3c0x7e(); } #endif diff --git a/externals/zexy/src/0x3d0x3d0x7e.c b/externals/zexy/src/0x3d0x3d0x7e.c index 4f77a3fa52504d2361a85f359a231b5fdffe2c0b..7c0c014653e189cfbeac7b8fb35b9c0ac55bcd7e 100644 --- a/externals/zexy/src/0x3d0x3d0x7e.c +++ b/externals/zexy/src/0x3d0x3d0x7e.c @@ -1,4 +1,4 @@ -/* +/* * ==~: test signals for equality * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -22,14 +22,12 @@ /* ----------------------------- eq_tilde ----------------------------- */ static t_class *eq_tilde_class, *scalareq_tilde_class; -typedef struct _eq_tilde -{ +typedef struct _eq_tilde { t_object x_obj; t_float x_f; } t_eq_tilde; -typedef struct _scalareq_tilde -{ +typedef struct _scalareq_tilde { t_object x_obj; t_float x_f; t_float x_g; /* inlet value */ @@ -37,24 +35,23 @@ typedef struct _scalareq_tilde static void *eq_tilde_new(t_symbol* UNUSED(s), int argc, t_atom *argv) { - if (argc > 1) post("==~: extra arguments ignored"); - if (argc) - { - t_scalareq_tilde *x = (t_scalareq_tilde *)pd_new(scalareq_tilde_class); - floatinlet_new(&x->x_obj, &x->x_g); - x->x_g = atom_getfloatarg(0, argc, argv); - outlet_new(&x->x_obj, gensym("signal")); - x->x_f = 0; - return (x); - } - else - { - t_eq_tilde *x = (t_eq_tilde *)pd_new(eq_tilde_class); - inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); - outlet_new(&x->x_obj, gensym("signal")); - x->x_f = 0; - return (x); - } + if (argc > 1) { + post("==~: extra arguments ignored"); + } + if (argc) { + t_scalareq_tilde *x = (t_scalareq_tilde *)pd_new(scalareq_tilde_class); + floatinlet_new(&x->x_obj, &x->x_g); + x->x_g = atom_getfloatarg(0, argc, argv); + outlet_new(&x->x_obj, gensym("signal")); + x->x_f = 0; + return (x); + } else { + t_eq_tilde *x = (t_eq_tilde *)pd_new(eq_tilde_class); + inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); + outlet_new(&x->x_obj, gensym("signal")); + x->x_f = 0; + return (x); + } } static t_int *eq_tilde_perform(t_int *w) @@ -63,7 +60,9 @@ static t_int *eq_tilde_perform(t_int *w) t_sample *in2 = (t_sample *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - while (n--) *out++ = (*in1++ == *in2++); + while (n--) { + *out++ = (*in1++ == *in2++); + } return (w+5); } @@ -73,17 +72,22 @@ static t_int *eq_tilde_perf8(t_int *w) t_sample *in2 = (t_sample *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - for (; n; n -= 8, in1 += 8, in2 += 8, out += 8) - { - t_sample f0 = in1[0], f1 = in1[1], f2 = in1[2], f3 = in1[3]; - t_sample f4 = in1[4], f5 = in1[5], f6 = in1[6], f7 = in1[7]; - - t_sample g0 = in2[0], g1 = in2[1], g2 = in2[2], g3 = in2[3]; - t_sample g4 = in2[4], g5 = in2[5], g6 = in2[6], g7 = in2[7]; - - out[0] = f0 == g0; out[1] = f1 == g1; out[2] = f2 == g2; out[3] = f3 == g3; - out[4] = f4 == g4; out[5] = f5 == g5; out[6] = f6 == g6; out[7] = f7 == g7; - } + for (; n; n -= 8, in1 += 8, in2 += 8, out += 8) { + t_sample f0 = in1[0], f1 = in1[1], f2 = in1[2], f3 = in1[3]; + t_sample f4 = in1[4], f5 = in1[5], f6 = in1[6], f7 = in1[7]; + + t_sample g0 = in2[0], g1 = in2[1], g2 = in2[2], g3 = in2[3]; + t_sample g4 = in2[4], g5 = in2[5], g6 = in2[6], g7 = in2[7]; + + out[0] = f0 == g0; + out[1] = f1 == g1; + out[2] = f2 == g2; + out[3] = f3 == g3; + out[4] = f4 == g4; + out[5] = f5 == g5; + out[6] = f6 == g6; + out[7] = f7 == g7; + } return (w+5); } @@ -93,7 +97,9 @@ static t_int *scalareq_tilde_perform(t_int *w) t_sample f = *(t_float *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - while (n--) *out++ = (*in++ == f); + while (n--) { + *out++ = (*in++ == f); + } return (w+5); } @@ -103,14 +109,19 @@ static t_int *scalareq_tilde_perf8(t_int *w) t_sample g = *(t_float *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - for (; n; n -= 8, in += 8, out += 8) - { - t_sample f0 = in[0], f1 = in[1], f2 = in[2], f3 = in[3]; - t_sample f4 = in[4], f5 = in[5], f6 = in[6], f7 = in[7]; + for (; n; n -= 8, in += 8, out += 8) { + t_sample f0 = in[0], f1 = in[1], f2 = in[2], f3 = in[3]; + t_sample f4 = in[4], f5 = in[5], f6 = in[6], f7 = in[7]; - out[0] = (f0 == g); out[1] = (f1 == g); out[2] = (f2 == g); out[3] = (f3 == g); - out[4] = (f4 == g); out[5] = (f5 == g); out[6] = (f6 == g); out[7] = (f7 == g); - } + out[0] = (f0 == g); + out[1] = (f1 == g); + out[2] = (f2 == g); + out[3] = (f3 == g); + out[4] = (f4 == g); + out[5] = (f5 == g); + out[6] = (f6 == g); + out[7] = (f7 == g); + } return (w+5); } @@ -140,7 +151,7 @@ static t_int *eq_tilde_performSSE(t_int *w) in1+=4; in2+=4; out+=4; - } + } return (w+5); } @@ -184,20 +195,20 @@ static void eq_tilde_dsp(t_eq_tilde* UNUSED(x), t_signal **sp) #ifdef __SSE__ if( - Z_SIMD_CHKBLOCKSIZE(n)&& - Z_SIMD_CHKALIGN(in1)&& - Z_SIMD_CHKALIGN(in2)&& - Z_SIMD_CHKALIGN(out)&& - ZEXY_TYPE_EQUAL(t_sample, float) - ) - { - dsp_add(eq_tilde_performSSE, 4, in1, in2, out, n); - } else + Z_SIMD_CHKBLOCKSIZE(n)&& + Z_SIMD_CHKALIGN(in1)&& + Z_SIMD_CHKALIGN(in2)&& + Z_SIMD_CHKALIGN(out)&& + ZEXY_TYPE_EQUAL(t_sample, float) + ) { + dsp_add(eq_tilde_performSSE, 4, in1, in2, out, n); + } else #endif - if (n&7) - dsp_add(eq_tilde_perform, 4, in1, in2, out, n); - else - dsp_add(eq_tilde_perf8, 4, in1, in2, out, n); + if (n&7) { + dsp_add(eq_tilde_perform, 4, in1, in2, out, n); + } else { + dsp_add(eq_tilde_perf8, 4, in1, in2, out, n); + } } static void scalareq_tilde_dsp(t_scalareq_tilde *x, t_signal **sp) @@ -208,40 +219,43 @@ static void scalareq_tilde_dsp(t_scalareq_tilde *x, t_signal **sp) #ifdef __SSE__ if( - Z_SIMD_CHKBLOCKSIZE(n)&& - Z_SIMD_CHKALIGN(in)&& - Z_SIMD_CHKALIGN(out) && - ZEXY_TYPE_EQUAL(t_sample, float) - ) - { - dsp_add(scalareq_tilde_performSSE, 4, in, &x->x_g, out, n); - } else + Z_SIMD_CHKBLOCKSIZE(n)&& + Z_SIMD_CHKALIGN(in)&& + Z_SIMD_CHKALIGN(out) && + ZEXY_TYPE_EQUAL(t_sample, float) + ) { + dsp_add(scalareq_tilde_performSSE, 4, in, &x->x_g, out, n); + } else #endif - if (n&7) - dsp_add(scalareq_tilde_perform, 4, in, &x->x_g, out, n); - else - dsp_add(scalareq_tilde_perf8, 4, in, &x->x_g, out, n); + if (n&7) { + dsp_add(scalareq_tilde_perform, 4, in, &x->x_g, out, n); + } else { + dsp_add(scalareq_tilde_perf8, 4, in, &x->x_g, out, n); + } } static void eq_tilde_help(t_object*x) { - post("\n"HEARTSYMBOL" &&~\t\t:: test 2 signals for equality"); + post("\n"HEARTSYMBOL " &&~\t\t:: test 2 signals for equality"); } void setup_0x3d0x3d0x7e(void) { eq_tilde_class = class_new(gensym("==~"), (t_newmethod)eq_tilde_new, 0, - sizeof(t_eq_tilde), 0, A_GIMME, 0); - class_addmethod(eq_tilde_class, (t_method)eq_tilde_dsp, gensym("dsp"), A_CANT, 0); + sizeof(t_eq_tilde), 0, A_GIMME, 0); + class_addmethod(eq_tilde_class, (t_method)eq_tilde_dsp, gensym("dsp"), 0); CLASS_MAINSIGNALIN(eq_tilde_class, t_eq_tilde, x_f); - class_addmethod (eq_tilde_class, (t_method)eq_tilde_help, gensym("help"), A_NULL); + class_addmethod (eq_tilde_class, (t_method)eq_tilde_help, gensym("help"), + A_NULL); class_sethelpsymbol(eq_tilde_class, gensym("zigbinops")); scalareq_tilde_class = class_new(gensym("==~"), 0, 0, - sizeof(t_scalareq_tilde), 0, 0); + sizeof(t_scalareq_tilde), 0, 0); CLASS_MAINSIGNALIN(scalareq_tilde_class, t_scalareq_tilde, x_f); - class_addmethod(scalareq_tilde_class, (t_method)scalareq_tilde_dsp, gensym("dsp"), - 0); - class_addmethod (scalareq_tilde_class, (t_method)eq_tilde_help, gensym("help"), A_NULL); + class_addmethod(scalareq_tilde_class, (t_method)scalareq_tilde_dsp, + gensym("dsp"), + 0); + class_addmethod (scalareq_tilde_class, (t_method)eq_tilde_help, + gensym("help"), A_NULL); class_sethelpsymbol(scalareq_tilde_class, gensym("zigbinops")); zexy_register("==~"); @@ -250,6 +264,6 @@ void setup_0x3d0x3d0x7e(void) #ifndef ZEXY_LIBRARY void setup(void) { - setup_0x3d0x3d0x7e(); + setup_0x3d0x3d0x7e(); } #endif diff --git a/externals/zexy/src/0x3e0x7e.c b/externals/zexy/src/0x3e0x7e.c index ce137a0d2a61be7ca898d74ad0ac69b0e9083913..9c91e1d3e4852f22f495901197f75be47f450b73 100644 --- a/externals/zexy/src/0x3e0x7e.c +++ b/externals/zexy/src/0x3e0x7e.c @@ -1,4 +1,4 @@ -/* +/* * >~: signal comparision * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -25,14 +25,12 @@ /* ----------------------------- gt_tilde ----------------------------- */ static t_class *gt_tilde_class, *scalargt_tilde_class; -typedef struct _gt_tilde -{ +typedef struct _gt_tilde { t_object x_obj; t_float x_f; } t_gt_tilde; -typedef struct _scalargt_tilde -{ +typedef struct _scalargt_tilde { t_object x_obj; t_float x_f; t_float x_g; /* inlet value */ @@ -40,24 +38,23 @@ typedef struct _scalargt_tilde static void *gt_tilde_new(t_symbol* UNUSED(s), int argc, t_atom *argv) { - if (argc > 1) post(">~: extra arguments ignored"); - if (argc) - { - t_scalargt_tilde *x = (t_scalargt_tilde *)pd_new(scalargt_tilde_class); - floatinlet_new(&x->x_obj, &x->x_g); - x->x_g = atom_getfloatarg(0, argc, argv); - outlet_new(&x->x_obj, gensym("signal")); - x->x_f = 0; - return (x); - } - else - { - t_gt_tilde *x = (t_gt_tilde *)pd_new(gt_tilde_class); - inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); - outlet_new(&x->x_obj, gensym("signal")); - x->x_f = 0; - return (x); - } + if (argc > 1) { + post(">~: extra arguments ignored"); + } + if (argc) { + t_scalargt_tilde *x = (t_scalargt_tilde *)pd_new(scalargt_tilde_class); + floatinlet_new(&x->x_obj, &x->x_g); + x->x_g = atom_getfloatarg(0, argc, argv); + outlet_new(&x->x_obj, gensym("signal")); + x->x_f = 0; + return (x); + } else { + t_gt_tilde *x = (t_gt_tilde *)pd_new(gt_tilde_class); + inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); + outlet_new(&x->x_obj, gensym("signal")); + x->x_f = 0; + return (x); + } } static t_int *gt_tilde_perform(t_int *w) @@ -66,7 +63,9 @@ static t_int *gt_tilde_perform(t_int *w) t_sample *in2 = (t_sample *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - while (n--) *out++ = *in1++ > *in2++; + while (n--) { + *out++ = *in1++ > *in2++; + } return (w+5); } @@ -76,17 +75,22 @@ static t_int *gt_tilde_perf8(t_int *w) t_sample *in2 = (t_sample *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - for (; n; n -= 8, in1 += 8, in2 += 8, out += 8) - { - t_sample f0 = in1[0], f1 = in1[1], f2 = in1[2], f3 = in1[3]; - t_sample f4 = in1[4], f5 = in1[5], f6 = in1[6], f7 = in1[7]; - - t_sample g0 = in2[0], g1 = in2[1], g2 = in2[2], g3 = in2[3]; - t_sample g4 = in2[4], g5 = in2[5], g6 = in2[6], g7 = in2[7]; - - out[0] = f0 > g0; out[1] = f1 > g1; out[2] = f2 > g2; out[3] = f3 > g3; - out[4] = f4 > g4; out[5] = f5 > g5; out[6] = f6 > g6; out[7] = f7 > g7; - } + for (; n; n -= 8, in1 += 8, in2 += 8, out += 8) { + t_sample f0 = in1[0], f1 = in1[1], f2 = in1[2], f3 = in1[3]; + t_sample f4 = in1[4], f5 = in1[5], f6 = in1[6], f7 = in1[7]; + + t_sample g0 = in2[0], g1 = in2[1], g2 = in2[2], g3 = in2[3]; + t_sample g4 = in2[4], g5 = in2[5], g6 = in2[6], g7 = in2[7]; + + out[0] = f0 > g0; + out[1] = f1 > g1; + out[2] = f2 > g2; + out[3] = f3 > g3; + out[4] = f4 > g4; + out[5] = f5 > g5; + out[6] = f6 > g6; + out[7] = f7 > g7; + } return (w+5); } @@ -96,7 +100,9 @@ static t_int *scalargt_tilde_perform(t_int *w) t_sample f = *(t_float *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - while (n--) *out++ = *in++ > f; + while (n--) { + *out++ = *in++ > f; + } return (w+5); } @@ -106,14 +112,19 @@ static t_int *scalargt_tilde_perf8(t_int *w) t_sample g = *(t_float *)(w[2]); t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); - for (; n; n -= 8, in += 8, out += 8) - { - t_sample f0 = in[0], f1 = in[1], f2 = in[2], f3 = in[3]; - t_sample f4 = in[4], f5 = in[5], f6 = in[6], f7 = in[7]; - - out[0] = f0 > g; out[1] = f1 > g; out[2] = f2 > g; out[3] = f3 > g; - out[4] = f4 > g; out[5] = f5 > g; out[6] = f6 > g; out[7] = f7 > g; - } + for (; n; n -= 8, in += 8, out += 8) { + t_sample f0 = in[0], f1 = in[1], f2 = in[2], f3 = in[3]; + t_sample f4 = in[4], f5 = in[5], f6 = in[6], f7 = in[7]; + + out[0] = f0 > g; + out[1] = f1 > g; + out[2] = f2 > g; + out[3] = f3 > g; + out[4] = f4 > g; + out[5] = f5 > g; + out[6] = f6 > g; + out[7] = f7 > g; + } return (w+5); } #ifdef __SSE__ @@ -142,7 +153,7 @@ static t_int *gt_tilde_performSSE(t_int *w) in1+=4; in2+=4; out+=4; - } + } return (w+5); } @@ -187,20 +198,20 @@ static void gt_tilde_dsp(t_gt_tilde* UNUSED(x), t_signal **sp) #ifdef __SSE__ if( - Z_SIMD_CHKBLOCKSIZE(n)&& - Z_SIMD_CHKALIGN(in1)&& - Z_SIMD_CHKALIGN(in2)&& - Z_SIMD_CHKALIGN(out)&& - ZEXY_TYPE_EQUAL(t_sample, float) - ) - { - dsp_add(gt_tilde_performSSE, 4, in1, in2, out, n); - } else + Z_SIMD_CHKBLOCKSIZE(n)&& + Z_SIMD_CHKALIGN(in1)&& + Z_SIMD_CHKALIGN(in2)&& + Z_SIMD_CHKALIGN(out)&& + ZEXY_TYPE_EQUAL(t_sample, float) + ) { + dsp_add(gt_tilde_performSSE, 4, in1, in2, out, n); + } else #endif - if (n&7) - dsp_add(gt_tilde_perform, 4, in1, in2, out, n); - else - dsp_add(gt_tilde_perf8, 4, in1, in2, out, n); + if (n&7) { + dsp_add(gt_tilde_perform, 4, in1, in2, out, n); + } else { + dsp_add(gt_tilde_perf8, 4, in1, in2, out, n); + } } static void scalargt_tilde_dsp(t_scalargt_tilde *x, t_signal **sp) @@ -211,41 +222,44 @@ static void scalargt_tilde_dsp(t_scalargt_tilde *x, t_signal **sp) #ifdef __SSE__ if( - Z_SIMD_CHKBLOCKSIZE(n)&& - Z_SIMD_CHKALIGN(in)&& - Z_SIMD_CHKALIGN(out)&& - ZEXY_TYPE_EQUAL(t_sample, float) - ) - { - dsp_add(scalargt_tilde_performSSE, 4, in, &x->x_g, out, n); - } else + Z_SIMD_CHKBLOCKSIZE(n)&& + Z_SIMD_CHKALIGN(in)&& + Z_SIMD_CHKALIGN(out)&& + ZEXY_TYPE_EQUAL(t_sample, float) + ) { + dsp_add(scalargt_tilde_performSSE, 4, in, &x->x_g, out, n); + } else #endif - if (n&7) - dsp_add(scalargt_tilde_perform, 4, in, &x->x_g, out, n); - else - dsp_add(scalargt_tilde_perf8, 4, in, &x->x_g, out, n); + if (n&7) { + dsp_add(scalargt_tilde_perform, 4, in, &x->x_g, out, n); + } else { + dsp_add(scalargt_tilde_perf8, 4, in, &x->x_g, out, n); + } } static void gt_tilde_help(t_object*x) { - post("\n"HEARTSYMBOL" >~\t\t:: compare 2 signals"); + post("\n"HEARTSYMBOL " >~\t\t:: compare 2 signals"); } void setup_0x3e0x7e(void) { gt_tilde_class = class_new(gensym(">~"), (t_newmethod)gt_tilde_new, 0, - sizeof(t_gt_tilde), 0, A_GIMME, 0); - class_addmethod(gt_tilde_class, (t_method)gt_tilde_dsp, gensym("dsp"), A_CANT, 0); + sizeof(t_gt_tilde), 0, A_GIMME, 0); + class_addmethod(gt_tilde_class, (t_method)gt_tilde_dsp, gensym("dsp"), 0); CLASS_MAINSIGNALIN(gt_tilde_class, t_gt_tilde, x_f); - class_addmethod (gt_tilde_class, (t_method)gt_tilde_help, gensym("help"), A_NULL); + class_addmethod (gt_tilde_class, (t_method)gt_tilde_help, gensym("help"), + A_NULL); class_sethelpsymbol(gt_tilde_class, gensym("zigbinops")); scalargt_tilde_class = class_new(gensym(">~"), 0, 0, - sizeof(t_scalargt_tilde), 0, 0); + sizeof(t_scalargt_tilde), 0, 0); CLASS_MAINSIGNALIN(scalargt_tilde_class, t_scalargt_tilde, x_f); - class_addmethod(scalargt_tilde_class, (t_method)scalargt_tilde_dsp, gensym("dsp"), - 0); - class_addmethod (scalargt_tilde_class, (t_method)gt_tilde_help, gensym("help"), A_NULL); + class_addmethod(scalargt_tilde_class, (t_method)scalargt_tilde_dsp, + gensym("dsp"), + 0); + class_addmethod (scalargt_tilde_class, (t_method)gt_tilde_help, + gensym("help"), A_NULL); class_sethelpsymbol(scalargt_tilde_class, gensym("zigbinops")); zexy_register(">~"); @@ -254,6 +268,6 @@ void setup_0x3e0x7e(void) #ifndef ZEXY_LIBRARY void setup(void) { - setup_0x3e0x7e(); + setup_0x3e0x7e(); } #endif diff --git a/externals/zexy/src/0x7c0x7c0x7e.c b/externals/zexy/src/0x7c0x7c0x7e.c index 7f1b38765ce9cbb4caa12470f94bbf0f4d6a49ef..b1cd497c51264a8837e474cfeeb5a6e42b1fd7bf 100644 --- a/externals/zexy/src/0x7c0x7c0x7e.c +++ b/externals/zexy/src/0x7c0x7c0x7e.c @@ -1,4 +1,4 @@ -/* +/* * ||~: logical OR for signals * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -22,14 +22,12 @@ /* ----------------------------- oror_tilde ----------------------------- */ static t_class *oror_tilde_class, *scalaroror_tilde_class; -typedef struct _oror_tilde -{ +typedef struct _oror_tilde { t_object x_obj; t_float x_f; } t_oror_tilde; -typedef struct _scalaroror_tilde -{ +typedef struct _scalaroror_tilde { t_object x_obj; t_float x_f; t_float x_g; /* inlet value */ @@ -37,24 +35,24 @@ typedef struct _scalaroror_tilde static void *oror_tilde_new(t_symbol* UNUSED(s), int argc, t_atom *argv) { - if (argc > 1) post("||~: extra arguments ignored"); - if (argc) - { - t_scalaroror_tilde *x = (t_scalaroror_tilde *)pd_new(scalaroror_tilde_class); - floatinlet_new(&x->x_obj, &x->x_g); - x->x_g = atom_getfloatarg(0, argc, argv); - outlet_new(&x->x_obj, gensym("signal")); - x->x_f = 0; - return (x); - } - else - { - t_oror_tilde *x = (t_oror_tilde *)pd_new(oror_tilde_class); - inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); - outlet_new(&x->x_obj, gensym("signal")); - x->x_f = 0; - return (x); - } + if (argc > 1) { + post("||~: extra arguments ignored"); + } + if (argc) { + t_scalaroror_tilde *x = (t_scalaroror_tilde *)pd_new( + scalaroror_tilde_class); + floatinlet_new(&x->x_obj, &x->x_g); + x->x_g = atom_getfloatarg(0, argc, argv); + outlet_new(&x->x_obj, gensym("signal")); + x->x_f = 0; + return (x); + } else { + t_oror_tilde *x = (t_oror_tilde *)pd_new(oror_tilde_class); + inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); + outlet_new(&x->x_obj, gensym("signal")); + x->x_f = 0; + return (x); + } } static t_int *oror_tilde_perform(t_int *w) @@ -63,7 +61,9 @@ static t_int *oror_tilde_perform(t_int *w) t_float *in2 = (t_float *)(w[2]); t_float *out = (t_float *)(w[3]); int n = (int)(w[4]); - while (n--) *out++ = (int)*in1++ || (int)*in2++; + while (n--) { + *out++ = (int)*in1++ || (int)*in2++; + } return (w+5); } @@ -73,17 +73,22 @@ static t_int *oror_tilde_perf8(t_int *w) t_float *in2 = (t_float *)(w[2]); t_float *out = (t_float *)(w[3]); int n = (int)(w[4]); - for (; n; n -= 8, in1 += 8, in2 += 8, out += 8) - { - int f0 = in1[0], f1 = in1[1], f2 = in1[2], f3 = in1[3]; - int f4 = in1[4], f5 = in1[5], f6 = in1[6], f7 = in1[7]; - - int g0 = in2[0], g1 = in2[1], g2 = in2[2], g3 = in2[3]; - int g4 = in2[4], g5 = in2[5], g6 = in2[6], g7 = in2[7]; - - out[0] = f0 || g0; out[1] = f1 || g1; out[2] = f2 || g2; out[3] = f3 || g3; - out[4] = f4 || g4; out[5] = f5 || g5; out[6] = f6 || g6; out[7] = f7 || g7; - } + for (; n; n -= 8, in1 += 8, in2 += 8, out += 8) { + int f0 = in1[0], f1 = in1[1], f2 = in1[2], f3 = in1[3]; + int f4 = in1[4], f5 = in1[5], f6 = in1[6], f7 = in1[7]; + + int g0 = in2[0], g1 = in2[1], g2 = in2[2], g3 = in2[3]; + int g4 = in2[4], g5 = in2[5], g6 = in2[6], g7 = in2[7]; + + out[0] = f0 || g0; + out[1] = f1 || g1; + out[2] = f2 || g2; + out[3] = f3 || g3; + out[4] = f4 || g4; + out[5] = f5 || g5; + out[6] = f6 || g6; + out[7] = f7 || g7; + } return (w+5); } @@ -93,7 +98,9 @@ static t_int *scalaroror_tilde_perform(t_int *w) int f = *(t_float *)(w[2]); t_float *out = (t_float *)(w[3]); int n = (int)(w[4]); - while (n--) *out++ = (int)*in++ || f; + while (n--) { + *out++ = (int)*in++ || f; + } return (w+5); } @@ -103,14 +110,19 @@ static t_int *scalaroror_tilde_perf8(t_int *w) int g = *(t_float *)(w[2]); t_float *out = (t_float *)(w[3]); int n = (int)(w[4]); - for (; n; n -= 8, in += 8, out += 8) - { - int f0 = in[0], f1 = in[1], f2 = in[2], f3 = in[3]; - int f4 = in[4], f5 = in[5], f6 = in[6], f7 = in[7]; - - out[0] = f0 || g; out[1] = f1 || g; out[2] = f2 || g; out[3] = f3 || g; - out[4] = f4 || g; out[5] = f5 || g; out[6] = f6 || g; out[7] = f7 || g; - } + for (; n; n -= 8, in += 8, out += 8) { + int f0 = in[0], f1 = in[1], f2 = in[2], f3 = in[3]; + int f4 = in[4], f5 = in[5], f6 = in[6], f7 = in[7]; + + out[0] = f0 || g; + out[1] = f1 || g; + out[2] = f2 || g; + out[3] = f3 || g; + out[4] = f4 || g; + out[5] = f5 || g; + out[6] = f6 || g; + out[7] = f7 || g; + } return (w+5); } @@ -149,7 +161,7 @@ static t_int *oror_tilde_performSSE(t_int *w) in1+=4; in2+=4; out+=4; - } + } return (w+5); } @@ -200,21 +212,21 @@ static void oror_tilde_dsp(t_oror_tilde* UNUSED(x), t_signal **sp) #ifdef __SSE__ if( - 0 && /* disabled for now since SSE2 code not compatible with [||] */ - Z_SIMD_CHKBLOCKSIZE(n)&& - Z_SIMD_CHKALIGN(in1)&& - Z_SIMD_CHKALIGN(in2)&& - Z_SIMD_CHKALIGN(out)&& - ZEXY_TYPE_EQUAL(t_sample, float) - ) - { - dsp_add(oror_tilde_performSSE, 4, in1, in2, out, n); - } else + 0 && /* disabled for now since SSE2 code not compatible with [||] */ + Z_SIMD_CHKBLOCKSIZE(n)&& + Z_SIMD_CHKALIGN(in1)&& + Z_SIMD_CHKALIGN(in2)&& + Z_SIMD_CHKALIGN(out)&& + ZEXY_TYPE_EQUAL(t_sample, float) + ) { + dsp_add(oror_tilde_performSSE, 4, in1, in2, out, n); + } else #endif - if(n&7) - dsp_add(oror_tilde_perform, 4, in1, in2, out, n); - else - dsp_add(oror_tilde_perf8, 4, in1, in2, out, n); + if(n&7) { + dsp_add(oror_tilde_perform, 4, in1, in2, out, n); + } else { + dsp_add(oror_tilde_perf8, 4, in1, in2, out, n); + } } static void scalaroror_tilde_dsp(t_scalaroror_tilde *x, t_signal **sp) @@ -225,41 +237,45 @@ static void scalaroror_tilde_dsp(t_scalaroror_tilde *x, t_signal **sp) #ifdef __SSE__ if( - Z_SIMD_CHKBLOCKSIZE(n)&& - Z_SIMD_CHKALIGN(in)&& - Z_SIMD_CHKALIGN(out)&& - ZEXY_TYPE_EQUAL(t_sample, float) - ) - { - dsp_add(scalaroror_tilde_performSSE, 4, in, &x->x_g, out, n); - } else + Z_SIMD_CHKBLOCKSIZE(n)&& + Z_SIMD_CHKALIGN(in)&& + Z_SIMD_CHKALIGN(out)&& + ZEXY_TYPE_EQUAL(t_sample, float) + ) { + dsp_add(scalaroror_tilde_performSSE, 4, in, &x->x_g, out, n); + } else #endif - if (n&7) - dsp_add(scalaroror_tilde_perform, 4, in, &x->x_g, out, n); - else - dsp_add(scalaroror_tilde_perf8, 4, in, &x->x_g, out, n); + if (n&7) { + dsp_add(scalaroror_tilde_perform, 4, in, &x->x_g, out, n); + } else { + dsp_add(scalaroror_tilde_perf8, 4, in, &x->x_g, out, n); + } } static void oror_tilde_help(t_object*x) { - post("\n"HEARTSYMBOL" &&~\t\t:: logical OR operation on 2 signals"); + post("\n"HEARTSYMBOL " &&~\t\t:: logical OR operation on 2 signals"); } void setup_0x7c0x7c0x7e(void) { oror_tilde_class = class_new(gensym("||~"), (t_newmethod)oror_tilde_new, 0, - sizeof(t_oror_tilde), 0, A_GIMME, 0); - class_addmethod(oror_tilde_class, (t_method)oror_tilde_dsp, gensym("dsp"), A_CANT, 0); + sizeof(t_oror_tilde), 0, A_GIMME, 0); + class_addmethod(oror_tilde_class, (t_method)oror_tilde_dsp, gensym("dsp"), + 0); CLASS_MAINSIGNALIN(oror_tilde_class, t_oror_tilde, x_f); - class_addmethod (oror_tilde_class, (t_method)oror_tilde_help, gensym("help"), A_NULL); + class_addmethod (oror_tilde_class, (t_method)oror_tilde_help, + gensym("help"), A_NULL); class_sethelpsymbol(oror_tilde_class, gensym("zigbinops")); scalaroror_tilde_class = class_new(gensym("||~"), 0, 0, - sizeof(t_scalaroror_tilde), 0, 0); + sizeof(t_scalaroror_tilde), 0, 0); CLASS_MAINSIGNALIN(scalaroror_tilde_class, t_scalaroror_tilde, x_f); - class_addmethod(scalaroror_tilde_class, (t_method)scalaroror_tilde_dsp, gensym("dsp"), - 0); - class_addmethod (scalaroror_tilde_class, (t_method)oror_tilde_help, gensym("help"), A_NULL); + class_addmethod(scalaroror_tilde_class, (t_method)scalaroror_tilde_dsp, + gensym("dsp"), + 0); + class_addmethod (scalaroror_tilde_class, (t_method)oror_tilde_help, + gensym("help"), A_NULL); class_sethelpsymbol(scalaroror_tilde_class, gensym("zigbinops")); zexy_register("||~"); @@ -268,6 +284,6 @@ void setup_0x7c0x7c0x7e(void) #ifndef ZEXY_LIBRARY void setup(void) { - setup_0x7c0x7c0x7e(); + setup_0x7c0x7c0x7e(); } #endif diff --git a/externals/zexy/src/Makefile.am b/externals/zexy/src/Makefile.am index 50bdbc83a9096670b19e5e9133cfd331d5200fbc..06f44087e77bb417b07fbec9d52749b65b841a0d 100644 --- a/externals/zexy/src/Makefile.am +++ b/externals/zexy/src/Makefile.am @@ -16,6 +16,8 @@ AM_LDFLAGS+= @EXTRA_LTFLAGS@ AM_CFLAGS += AM_LDFLAGS+= +EXTRA_DIST = \ + astyle.rc if LIBRARY pkglib_LTLIBRARIES+=zexy.la @@ -45,6 +47,7 @@ pkglib_LTLIBRARIES+= \ demux.la \ dfreq~.la \ dirac~.la \ + doublepole~.la \ drip.la \ unfold.la \ envrms~.la \ @@ -146,6 +149,7 @@ demultiplex_la_SOURCES = demultiplex.c demux_la_SOURCES = demultiplex.c dfreq__la_SOURCES = dfreq~.c dirac__la_SOURCES = dirac~.c +doublepole__la_SOURCES = doublepole~.c drip_la_SOURCES = drip.c unfold_la_SOURCES = drip.c envrms__la_SOURCES = envrms~.c @@ -231,7 +235,7 @@ zexy_la_SOURCES = zexy.c z_zexy.c \ 0x260x260x7e.c 0x2e.c 0x3c0x7e.c 0x3d0x3d0x7e.c 0x3e0x7e.c 0x7c0x7c0x7e.c \ a2l.c abs~.c absgn~.c atoi.c atof.c avg~.c \ blockmirror~.c blockshuffle~.c blockswap~.c \ - date.c demultiplex~.c demultiplex.c dfreq~.c dirac~.c drip.c envrms~.c \ + date.c demultiplex~.c demultiplex.c dfreq~.c dirac~.c doublepole~.c drip.c envrms~.c \ fifop.c freadln.c fwriteln.c glue.c index.c length.c lifop.c limiter~.c \ list2int.c list2lists.c list2symbol.c lister.c listfind.c liststorage.c longload.c lpt.c \ makesymbol.c matchbox.c mavg.c minmax.c msgfile.c multiline~.c multiplex~.c \ diff --git a/externals/zexy/src/Makefile.in b/externals/zexy/src/Makefile.in deleted file mode 100644 index fd26ee72caf242520b63d9b0eee21fd04c449098..0000000000000000000000000000000000000000 --- a/externals/zexy/src/Makefile.in +++ /dev/null @@ -1,2256 +0,0 @@ -# Makefile.in generated by automake 1.11.3 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -@WINDOWS_TRUE@am__append_1 = -no-undefined -@LIBRARY_TRUE@am__append_2 = zexy.la -@SINGLEOBJECTS_TRUE@am__append_3 = \ -@SINGLEOBJECTS_TRUE@ 0x260x260x7e.la \ -@SINGLEOBJECTS_TRUE@ 0x2e.la \ -@SINGLEOBJECTS_TRUE@ 0x3c0x7e.la \ -@SINGLEOBJECTS_TRUE@ 0x3d0x3d0x7e.la \ -@SINGLEOBJECTS_TRUE@ 0x3e0x7e.la \ -@SINGLEOBJECTS_TRUE@ 0x7c0x7c0x7e.la \ -@SINGLEOBJECTS_TRUE@ any2list.la \ -@SINGLEOBJECTS_TRUE@ a2l.la \ -@SINGLEOBJECTS_TRUE@ abs~.la \ -@SINGLEOBJECTS_TRUE@ absgn~.la \ -@SINGLEOBJECTS_TRUE@ atoi.la \ -@SINGLEOBJECTS_TRUE@ atof.la \ -@SINGLEOBJECTS_TRUE@ avg~.la \ -@SINGLEOBJECTS_TRUE@ blockmirror~.la \ -@SINGLEOBJECTS_TRUE@ blockshuffle~.la \ -@SINGLEOBJECTS_TRUE@ blockswap~.la \ -@SINGLEOBJECTS_TRUE@ date.la \ -@SINGLEOBJECTS_TRUE@ demultiplex~.la \ -@SINGLEOBJECTS_TRUE@ demux~.la \ -@SINGLEOBJECTS_TRUE@ demultiplex.la \ -@SINGLEOBJECTS_TRUE@ demux.la \ -@SINGLEOBJECTS_TRUE@ dfreq~.la \ -@SINGLEOBJECTS_TRUE@ dirac~.la \ -@SINGLEOBJECTS_TRUE@ drip.la \ -@SINGLEOBJECTS_TRUE@ unfold.la \ -@SINGLEOBJECTS_TRUE@ envrms~.la \ -@SINGLEOBJECTS_TRUE@ fifop.la \ -@SINGLEOBJECTS_TRUE@ freadln.la \ -@SINGLEOBJECTS_TRUE@ fwriteln.la \ -@SINGLEOBJECTS_TRUE@ glue.la \ -@SINGLEOBJECTS_TRUE@ index.la \ -@SINGLEOBJECTS_TRUE@ length.la \ -@SINGLEOBJECTS_TRUE@ lifop.la \ -@SINGLEOBJECTS_TRUE@ limiter~.la \ -@SINGLEOBJECTS_TRUE@ l2i.la \ -@SINGLEOBJECTS_TRUE@ list2int.la \ -@SINGLEOBJECTS_TRUE@ list2lists.la \ -@SINGLEOBJECTS_TRUE@ l2s.la \ -@SINGLEOBJECTS_TRUE@ list2symbol.la \ -@SINGLEOBJECTS_TRUE@ l.la \ -@SINGLEOBJECTS_TRUE@ lister.la \ -@SINGLEOBJECTS_TRUE@ listfind.la \ -@SINGLEOBJECTS_TRUE@ liststorage.la \ -@SINGLEOBJECTS_TRUE@ longload.la \ -@SINGLEOBJECTS_TRUE@ lpt.la \ -@SINGLEOBJECTS_TRUE@ lp.la \ -@SINGLEOBJECTS_TRUE@ makesymbol.la \ -@SINGLEOBJECTS_TRUE@ matchbox.la \ -@SINGLEOBJECTS_TRUE@ mavg.la \ -@SINGLEOBJECTS_TRUE@ minmax.la \ -@SINGLEOBJECTS_TRUE@ msgfile.la \ -@SINGLEOBJECTS_TRUE@ multiline~.la \ -@SINGLEOBJECTS_TRUE@ mux~.la \ -@SINGLEOBJECTS_TRUE@ mux.la \ -@SINGLEOBJECTS_TRUE@ multiplex~.la \ -@SINGLEOBJECTS_TRUE@ multiplex.la \ -@SINGLEOBJECTS_TRUE@ multireceive.la \ -@SINGLEOBJECTS_TRUE@ niagara.la \ -@SINGLEOBJECTS_TRUE@ noish~.la \ -@SINGLEOBJECTS_TRUE@ noisi~.la \ -@SINGLEOBJECTS_TRUE@ operating_system.la \ -@SINGLEOBJECTS_TRUE@ pack~.la \ -@SINGLEOBJECTS_TRUE@ pack.la \ -@SINGLEOBJECTS_TRUE@ packel.la \ -@SINGLEOBJECTS_TRUE@ pdf~.la \ -@SINGLEOBJECTS_TRUE@ prime.la \ -@SINGLEOBJECTS_TRUE@ quantize~.la \ -@SINGLEOBJECTS_TRUE@ rawprint.la \ -@SINGLEOBJECTS_TRUE@ regex.la \ -@SINGLEOBJECTS_TRUE@ relay.la \ -@SINGLEOBJECTS_TRUE@ repack.la \ -@SINGLEOBJECTS_TRUE@ repeat.la \ -@SINGLEOBJECTS_TRUE@ route~.la \ -@SINGLEOBJECTS_TRUE@ sfplay.la \ -@SINGLEOBJECTS_TRUE@ sfrecord.la \ -@SINGLEOBJECTS_TRUE@ sgn~.la \ -@SINGLEOBJECTS_TRUE@ sigzero~.la \ -@SINGLEOBJECTS_TRUE@ sleepgrain.la \ -@SINGLEOBJECTS_TRUE@ sort.la \ -@SINGLEOBJECTS_TRUE@ step~.la \ -@SINGLEOBJECTS_TRUE@ strcmp.la \ -@SINGLEOBJECTS_TRUE@ sum.la \ -@SINGLEOBJECTS_TRUE@ swap~.la \ -@SINGLEOBJECTS_TRUE@ symbol2list.la \ -@SINGLEOBJECTS_TRUE@ s2l.la \ -@SINGLEOBJECTS_TRUE@ tabdump.la \ -@SINGLEOBJECTS_TRUE@ tabminmax.la \ -@SINGLEOBJECTS_TRUE@ tabread4~~.la \ -@SINGLEOBJECTS_TRUE@ tabset.la \ -@SINGLEOBJECTS_TRUE@ tavg~.la \ -@SINGLEOBJECTS_TRUE@ time.la \ -@SINGLEOBJECTS_TRUE@ unpack~.la \ -@SINGLEOBJECTS_TRUE@ unpack.la \ -@SINGLEOBJECTS_TRUE@ urn.la \ -@SINGLEOBJECTS_TRUE@ wrap.la \ -@SINGLEOBJECTS_TRUE@ z~.la - -@LPT_TRUE@@WINDOWS_TRUE@am__append_4 = winNT_portio.c -@LPT_TRUE@@WINDOWS_TRUE@am__append_5 = winNT_portio.c -@WINDOWS_TRUE@am__append_6 = winNT_portio.c -subdir = src -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/iem_checkflags.m4 \ - $(top_srcdir)/m4/iem_fat.m4 \ - $(top_srcdir)/m4/iem_operatingsystem.m4 \ - $(top_srcdir)/m4/iem_parallelport.m4 \ - $(top_srcdir)/m4/iem_simd.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(pkglibdir)" -LTLIBRARIES = $(pkglib_LTLIBRARIES) -0x260x260x7e_la_LIBADD = -am_0x260x260x7e_la_OBJECTS = 0x260x260x7e.lo -0x260x260x7e_la_OBJECTS = $(am_0x260x260x7e_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_0x260x260x7e_la_rpath = -rpath $(pkglibdir) -0x2e_la_LIBADD = -am_0x2e_la_OBJECTS = 0x2e.lo -0x2e_la_OBJECTS = $(am_0x2e_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_0x2e_la_rpath = -rpath $(pkglibdir) -0x3c0x7e_la_LIBADD = -am_0x3c0x7e_la_OBJECTS = 0x3c0x7e.lo -0x3c0x7e_la_OBJECTS = $(am_0x3c0x7e_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_0x3c0x7e_la_rpath = -rpath $(pkglibdir) -0x3d0x3d0x7e_la_LIBADD = -am_0x3d0x3d0x7e_la_OBJECTS = 0x3d0x3d0x7e.lo -0x3d0x3d0x7e_la_OBJECTS = $(am_0x3d0x3d0x7e_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_0x3d0x3d0x7e_la_rpath = -rpath $(pkglibdir) -0x3e0x7e_la_LIBADD = -am_0x3e0x7e_la_OBJECTS = 0x3e0x7e.lo -0x3e0x7e_la_OBJECTS = $(am_0x3e0x7e_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_0x3e0x7e_la_rpath = -rpath $(pkglibdir) -0x7c0x7c0x7e_la_LIBADD = -am_0x7c0x7c0x7e_la_OBJECTS = 0x7c0x7c0x7e.lo -0x7c0x7c0x7e_la_OBJECTS = $(am_0x7c0x7c0x7e_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_0x7c0x7c0x7e_la_rpath = -rpath $(pkglibdir) -a2l_la_LIBADD = -am_a2l_la_OBJECTS = a2l.lo -a2l_la_OBJECTS = $(am_a2l_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_a2l_la_rpath = -rpath $(pkglibdir) -absgn__la_LIBADD = -am_absgn__la_OBJECTS = absgn~.lo -absgn__la_OBJECTS = $(am_absgn__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_absgn__la_rpath = -rpath $(pkglibdir) -abs__la_LIBADD = -am_abs__la_OBJECTS = abs~.lo -abs__la_OBJECTS = $(am_abs__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_abs__la_rpath = -rpath $(pkglibdir) -any2list_la_LIBADD = -am_any2list_la_OBJECTS = a2l.lo -any2list_la_OBJECTS = $(am_any2list_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_any2list_la_rpath = -rpath $(pkglibdir) -atof_la_LIBADD = -am_atof_la_OBJECTS = atof.lo -atof_la_OBJECTS = $(am_atof_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_atof_la_rpath = -rpath $(pkglibdir) -atoi_la_LIBADD = -am_atoi_la_OBJECTS = atoi.lo -atoi_la_OBJECTS = $(am_atoi_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_atoi_la_rpath = -rpath $(pkglibdir) -avg__la_LIBADD = -am_avg__la_OBJECTS = avg~.lo -avg__la_OBJECTS = $(am_avg__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_avg__la_rpath = -rpath $(pkglibdir) -blockmirror__la_LIBADD = -am_blockmirror__la_OBJECTS = blockmirror~.lo -blockmirror__la_OBJECTS = $(am_blockmirror__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_blockmirror__la_rpath = -rpath $(pkglibdir) -blockshuffle__la_LIBADD = -am_blockshuffle__la_OBJECTS = blockshuffle~.lo -blockshuffle__la_OBJECTS = $(am_blockshuffle__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_blockshuffle__la_rpath = -rpath $(pkglibdir) -blockswap__la_LIBADD = -am_blockswap__la_OBJECTS = blockswap~.lo -blockswap__la_OBJECTS = $(am_blockswap__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_blockswap__la_rpath = -rpath $(pkglibdir) -date_la_LIBADD = -am_date_la_OBJECTS = date.lo -date_la_OBJECTS = $(am_date_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_date_la_rpath = -rpath $(pkglibdir) -demultiplex_la_LIBADD = -am_demultiplex_la_OBJECTS = demultiplex.lo -demultiplex_la_OBJECTS = $(am_demultiplex_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_demultiplex_la_rpath = -rpath $(pkglibdir) -demultiplex__la_LIBADD = -am_demultiplex__la_OBJECTS = demultiplex~.lo -demultiplex__la_OBJECTS = $(am_demultiplex__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_demultiplex__la_rpath = -rpath $(pkglibdir) -demux_la_LIBADD = -am_demux_la_OBJECTS = demultiplex.lo -demux_la_OBJECTS = $(am_demux_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_demux_la_rpath = -rpath $(pkglibdir) -demux__la_LIBADD = -am_demux__la_OBJECTS = demultiplex~.lo -demux__la_OBJECTS = $(am_demux__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_demux__la_rpath = -rpath $(pkglibdir) -dfreq__la_LIBADD = -am_dfreq__la_OBJECTS = dfreq~.lo -dfreq__la_OBJECTS = $(am_dfreq__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_dfreq__la_rpath = -rpath $(pkglibdir) -dirac__la_LIBADD = -am_dirac__la_OBJECTS = dirac~.lo -dirac__la_OBJECTS = $(am_dirac__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_dirac__la_rpath = -rpath $(pkglibdir) -drip_la_LIBADD = -am_drip_la_OBJECTS = drip.lo -drip_la_OBJECTS = $(am_drip_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_drip_la_rpath = -rpath $(pkglibdir) -envrms__la_LIBADD = -am_envrms__la_OBJECTS = envrms~.lo -envrms__la_OBJECTS = $(am_envrms__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_envrms__la_rpath = -rpath $(pkglibdir) -fifop_la_LIBADD = -am_fifop_la_OBJECTS = fifop.lo -fifop_la_OBJECTS = $(am_fifop_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_fifop_la_rpath = -rpath $(pkglibdir) -freadln_la_LIBADD = -am_freadln_la_OBJECTS = freadln.lo -freadln_la_OBJECTS = $(am_freadln_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_freadln_la_rpath = -rpath $(pkglibdir) -fwriteln_la_LIBADD = -am_fwriteln_la_OBJECTS = fwriteln.lo -fwriteln_la_OBJECTS = $(am_fwriteln_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_fwriteln_la_rpath = -rpath $(pkglibdir) -glue_la_LIBADD = -am_glue_la_OBJECTS = glue.lo -glue_la_OBJECTS = $(am_glue_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_glue_la_rpath = -rpath $(pkglibdir) -index_la_LIBADD = -am_index_la_OBJECTS = index.lo -index_la_OBJECTS = $(am_index_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_index_la_rpath = -rpath $(pkglibdir) -l_la_LIBADD = -am_l_la_OBJECTS = lister.lo -l_la_OBJECTS = $(am_l_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_l_la_rpath = -rpath $(pkglibdir) -l2i_la_LIBADD = -am_l2i_la_OBJECTS = list2int.lo -l2i_la_OBJECTS = $(am_l2i_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_l2i_la_rpath = -rpath $(pkglibdir) -l2s_la_LIBADD = -am_l2s_la_OBJECTS = list2symbol.lo -l2s_la_OBJECTS = $(am_l2s_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_l2s_la_rpath = -rpath $(pkglibdir) -length_la_LIBADD = -am_length_la_OBJECTS = length.lo -length_la_OBJECTS = $(am_length_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_length_la_rpath = -rpath $(pkglibdir) -lifop_la_LIBADD = -am_lifop_la_OBJECTS = lifop.lo -lifop_la_OBJECTS = $(am_lifop_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_lifop_la_rpath = -rpath $(pkglibdir) -limiter__la_LIBADD = -am_limiter__la_OBJECTS = limiter~.lo -limiter__la_OBJECTS = $(am_limiter__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_limiter__la_rpath = -rpath $(pkglibdir) -list2int_la_LIBADD = -am_list2int_la_OBJECTS = list2int.lo -list2int_la_OBJECTS = $(am_list2int_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_list2int_la_rpath = -rpath $(pkglibdir) -list2lists_la_LIBADD = -am_list2lists_la_OBJECTS = list2lists.lo -list2lists_la_OBJECTS = $(am_list2lists_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_list2lists_la_rpath = -rpath $(pkglibdir) -list2symbol_la_LIBADD = -am_list2symbol_la_OBJECTS = list2symbol.lo -list2symbol_la_OBJECTS = $(am_list2symbol_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_list2symbol_la_rpath = -rpath $(pkglibdir) -lister_la_LIBADD = -am_lister_la_OBJECTS = lister.lo -lister_la_OBJECTS = $(am_lister_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_lister_la_rpath = -rpath $(pkglibdir) -listfind_la_LIBADD = -am_listfind_la_OBJECTS = listfind.lo -listfind_la_OBJECTS = $(am_listfind_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_listfind_la_rpath = -rpath $(pkglibdir) -liststorage_la_LIBADD = -am_liststorage_la_OBJECTS = liststorage.lo -liststorage_la_OBJECTS = $(am_liststorage_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_liststorage_la_rpath = -rpath $(pkglibdir) -longload_la_LIBADD = -am_longload_la_OBJECTS = longload.lo -longload_la_OBJECTS = $(am_longload_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_longload_la_rpath = -rpath $(pkglibdir) -lp_la_LIBADD = -am__lp_la_SOURCES_DIST = lpt.c winNT_portio.c -@LPT_TRUE@@WINDOWS_TRUE@am__objects_1 = winNT_portio.lo -@LPT_TRUE@am_lp_la_OBJECTS = lpt.lo $(am__objects_1) -lp_la_OBJECTS = $(am_lp_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_lp_la_rpath = -rpath $(pkglibdir) -lpt_la_LIBADD = -am__lpt_la_SOURCES_DIST = lpt.c winNT_portio.c -@LPT_TRUE@am_lpt_la_OBJECTS = lpt.lo $(am__objects_1) -lpt_la_OBJECTS = $(am_lpt_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_lpt_la_rpath = -rpath $(pkglibdir) -makesymbol_la_LIBADD = -am_makesymbol_la_OBJECTS = makesymbol.lo -makesymbol_la_OBJECTS = $(am_makesymbol_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_makesymbol_la_rpath = -rpath $(pkglibdir) -matchbox_la_LIBADD = -am_matchbox_la_OBJECTS = matchbox.lo -matchbox_la_OBJECTS = $(am_matchbox_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_matchbox_la_rpath = -rpath $(pkglibdir) -mavg_la_LIBADD = -am_mavg_la_OBJECTS = mavg.lo -mavg_la_OBJECTS = $(am_mavg_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_mavg_la_rpath = -rpath $(pkglibdir) -minmax_la_LIBADD = -am_minmax_la_OBJECTS = minmax.lo -minmax_la_OBJECTS = $(am_minmax_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_minmax_la_rpath = -rpath $(pkglibdir) -msgfile_la_LIBADD = -am_msgfile_la_OBJECTS = msgfile.lo -msgfile_la_OBJECTS = $(am_msgfile_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_msgfile_la_rpath = -rpath $(pkglibdir) -multiline__la_LIBADD = -am_multiline__la_OBJECTS = multiline~.lo -multiline__la_OBJECTS = $(am_multiline__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_multiline__la_rpath = -rpath $(pkglibdir) -multiplex_la_LIBADD = -am_multiplex_la_OBJECTS = multiplex.lo -multiplex_la_OBJECTS = $(am_multiplex_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_multiplex_la_rpath = -rpath $(pkglibdir) -multiplex__la_LIBADD = -am_multiplex__la_OBJECTS = multiplex~.lo -multiplex__la_OBJECTS = $(am_multiplex__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_multiplex__la_rpath = -rpath $(pkglibdir) -multireceive_la_LIBADD = -am_multireceive_la_OBJECTS = multireceive.lo -multireceive_la_OBJECTS = $(am_multireceive_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_multireceive_la_rpath = -rpath $(pkglibdir) -mux_la_LIBADD = -am_mux_la_OBJECTS = multiplex.lo -mux_la_OBJECTS = $(am_mux_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_mux_la_rpath = -rpath $(pkglibdir) -mux__la_LIBADD = -am_mux__la_OBJECTS = multiplex~.lo -mux__la_OBJECTS = $(am_mux__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_mux__la_rpath = -rpath $(pkglibdir) -niagara_la_LIBADD = -am_niagara_la_OBJECTS = niagara.lo -niagara_la_OBJECTS = $(am_niagara_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_niagara_la_rpath = -rpath $(pkglibdir) -noish__la_LIBADD = -am_noish__la_OBJECTS = noish~.lo -noish__la_OBJECTS = $(am_noish__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_noish__la_rpath = -rpath $(pkglibdir) -noisi__la_LIBADD = -am_noisi__la_OBJECTS = noisi~.lo -noisi__la_OBJECTS = $(am_noisi__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_noisi__la_rpath = -rpath $(pkglibdir) -operating_system_la_LIBADD = -am_operating_system_la_OBJECTS = operating_system.lo -operating_system_la_OBJECTS = $(am_operating_system_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_operating_system_la_rpath = -rpath $(pkglibdir) -pack_la_LIBADD = -am_pack_la_OBJECTS = pack.lo -pack_la_OBJECTS = $(am_pack_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_pack_la_rpath = -rpath $(pkglibdir) -packel_la_LIBADD = -am_packel_la_OBJECTS = packel.lo -packel_la_OBJECTS = $(am_packel_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_packel_la_rpath = -rpath $(pkglibdir) -pack__la_LIBADD = -am_pack__la_OBJECTS = pack~.lo -pack__la_OBJECTS = $(am_pack__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_pack__la_rpath = -rpath $(pkglibdir) -pdf__la_LIBADD = -am_pdf__la_OBJECTS = pdf~.lo -pdf__la_OBJECTS = $(am_pdf__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_pdf__la_rpath = -rpath $(pkglibdir) -prime_la_LIBADD = -am_prime_la_OBJECTS = prime.lo -prime_la_OBJECTS = $(am_prime_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_prime_la_rpath = -rpath $(pkglibdir) -quantize__la_LIBADD = -am_quantize__la_OBJECTS = quantize~.lo -quantize__la_OBJECTS = $(am_quantize__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_quantize__la_rpath = -rpath $(pkglibdir) -rawprint_la_LIBADD = -am_rawprint_la_OBJECTS = rawprint.lo -rawprint_la_OBJECTS = $(am_rawprint_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_rawprint_la_rpath = -rpath $(pkglibdir) -regex_la_LIBADD = -am_regex_la_OBJECTS = regex.lo -regex_la_OBJECTS = $(am_regex_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_regex_la_rpath = -rpath $(pkglibdir) -relay_la_LIBADD = -am_relay_la_OBJECTS = relay.lo -relay_la_OBJECTS = $(am_relay_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_relay_la_rpath = -rpath $(pkglibdir) -repack_la_LIBADD = -am_repack_la_OBJECTS = repack.lo -repack_la_OBJECTS = $(am_repack_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_repack_la_rpath = -rpath $(pkglibdir) -repeat_la_LIBADD = -am_repeat_la_OBJECTS = repeat.lo -repeat_la_OBJECTS = $(am_repeat_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_repeat_la_rpath = -rpath $(pkglibdir) -route__la_LIBADD = -am_route__la_OBJECTS = route~.lo -route__la_OBJECTS = $(am_route__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_route__la_rpath = -rpath $(pkglibdir) -s2l_la_LIBADD = -am_s2l_la_OBJECTS = symbol2list.lo -s2l_la_OBJECTS = $(am_s2l_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_s2l_la_rpath = -rpath $(pkglibdir) -sfplay_la_LIBADD = -am_sfplay_la_OBJECTS = sfplay.lo -sfplay_la_OBJECTS = $(am_sfplay_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_sfplay_la_rpath = -rpath $(pkglibdir) -sfrecord_la_LIBADD = -am_sfrecord_la_OBJECTS = sfrecord.lo -sfrecord_la_OBJECTS = $(am_sfrecord_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_sfrecord_la_rpath = -rpath $(pkglibdir) -sgn__la_LIBADD = -am_sgn__la_OBJECTS = sgn~.lo -sgn__la_OBJECTS = $(am_sgn__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_sgn__la_rpath = -rpath $(pkglibdir) -sigzero__la_LIBADD = -am_sigzero__la_OBJECTS = sigzero~.lo -sigzero__la_OBJECTS = $(am_sigzero__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_sigzero__la_rpath = -rpath $(pkglibdir) -sleepgrain_la_LIBADD = -am_sleepgrain_la_OBJECTS = sleepgrain.lo -sleepgrain_la_OBJECTS = $(am_sleepgrain_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_sleepgrain_la_rpath = -rpath $(pkglibdir) -sort_la_LIBADD = -am_sort_la_OBJECTS = sort.lo -sort_la_OBJECTS = $(am_sort_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_sort_la_rpath = -rpath $(pkglibdir) -step__la_LIBADD = -am_step__la_OBJECTS = step~.lo -step__la_OBJECTS = $(am_step__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_step__la_rpath = -rpath $(pkglibdir) -strcmp_la_LIBADD = -am_strcmp_la_OBJECTS = strcmp.lo -strcmp_la_OBJECTS = $(am_strcmp_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_strcmp_la_rpath = -rpath $(pkglibdir) -sum_la_LIBADD = -am_sum_la_OBJECTS = sum.lo -sum_la_OBJECTS = $(am_sum_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_sum_la_rpath = -rpath $(pkglibdir) -swap__la_LIBADD = -am_swap__la_OBJECTS = swap~.lo -swap__la_OBJECTS = $(am_swap__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_swap__la_rpath = -rpath $(pkglibdir) -symbol2list_la_LIBADD = -am_symbol2list_la_OBJECTS = symbol2list.lo -symbol2list_la_OBJECTS = $(am_symbol2list_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_symbol2list_la_rpath = -rpath $(pkglibdir) -tabdump_la_LIBADD = -am_tabdump_la_OBJECTS = tabdump.lo -tabdump_la_OBJECTS = $(am_tabdump_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_tabdump_la_rpath = -rpath $(pkglibdir) -tabminmax_la_LIBADD = -am_tabminmax_la_OBJECTS = tabminmax.lo -tabminmax_la_OBJECTS = $(am_tabminmax_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_tabminmax_la_rpath = -rpath $(pkglibdir) -tabread4___la_LIBADD = -am_tabread4___la_OBJECTS = tabread4~~.lo -tabread4___la_OBJECTS = $(am_tabread4___la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_tabread4___la_rpath = -rpath $(pkglibdir) -tabset_la_LIBADD = -am_tabset_la_OBJECTS = tabset.lo -tabset_la_OBJECTS = $(am_tabset_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_tabset_la_rpath = -rpath $(pkglibdir) -tavg__la_LIBADD = -am_tavg__la_OBJECTS = tavg~.lo -tavg__la_OBJECTS = $(am_tavg__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_tavg__la_rpath = -rpath $(pkglibdir) -time_la_LIBADD = -am_time_la_OBJECTS = time.lo -time_la_OBJECTS = $(am_time_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_time_la_rpath = -rpath $(pkglibdir) -unfold_la_LIBADD = -am_unfold_la_OBJECTS = drip.lo -unfold_la_OBJECTS = $(am_unfold_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_unfold_la_rpath = -rpath $(pkglibdir) -unpack_la_LIBADD = -am_unpack_la_OBJECTS = unpack.lo -unpack_la_OBJECTS = $(am_unpack_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_unpack_la_rpath = -rpath $(pkglibdir) -unpack__la_LIBADD = -am_unpack__la_OBJECTS = unpack~.lo -unpack__la_OBJECTS = $(am_unpack__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_unpack__la_rpath = -rpath $(pkglibdir) -urn_la_LIBADD = -am_urn_la_OBJECTS = urn.lo -urn_la_OBJECTS = $(am_urn_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_urn_la_rpath = -rpath $(pkglibdir) -wrap_la_LIBADD = -am_wrap_la_OBJECTS = wrap.lo -wrap_la_OBJECTS = $(am_wrap_la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_wrap_la_rpath = -rpath $(pkglibdir) -zexy_la_LIBADD = -am__zexy_la_SOURCES_DIST = zexy.c z_zexy.c zexy.h zexySIMD.h z_zexy.h \ - zexyconf.h 0x260x260x7e.c 0x2e.c 0x3c0x7e.c 0x3d0x3d0x7e.c \ - 0x3e0x7e.c 0x7c0x7c0x7e.c a2l.c abs~.c absgn~.c atoi.c atof.c \ - avg~.c blockmirror~.c blockshuffle~.c blockswap~.c date.c \ - demultiplex~.c demultiplex.c dfreq~.c dirac~.c drip.c \ - envrms~.c fifop.c freadln.c fwriteln.c glue.c index.c length.c \ - lifop.c limiter~.c list2int.c list2lists.c list2symbol.c \ - lister.c listfind.c liststorage.c longload.c lpt.c \ - makesymbol.c matchbox.c mavg.c minmax.c msgfile.c multiline~.c \ - multiplex~.c multiplex.c multireceive.c niagara.c noish~.c \ - noisi~.c operating_system.c pack~.c pack.c packel.c pdf~.c \ - prime.c quantize~.c rawprint.c regex.c relay.c repack.c \ - repeat.c route~.c sfplay.c sfrecord.c sgn~.c sigzero~.c \ - sleepgrain.c sort.c step~.c strcmp.c sum.c swap~.c \ - symbol2list.c tabdump.c tabminmax.c tabread4~~.c tabset.c \ - tavg~.c time.c unpack~.c unpack.c urn.c wrap.c z~.c \ - winNT_portio.c -@WINDOWS_TRUE@am__objects_2 = zexy_la-winNT_portio.lo -am_zexy_la_OBJECTS = zexy_la-zexy.lo zexy_la-z_zexy.lo \ - zexy_la-0x260x260x7e.lo zexy_la-0x2e.lo zexy_la-0x3c0x7e.lo \ - zexy_la-0x3d0x3d0x7e.lo zexy_la-0x3e0x7e.lo \ - zexy_la-0x7c0x7c0x7e.lo zexy_la-a2l.lo zexy_la-abs~.lo \ - zexy_la-absgn~.lo zexy_la-atoi.lo zexy_la-atof.lo \ - zexy_la-avg~.lo zexy_la-blockmirror~.lo \ - zexy_la-blockshuffle~.lo zexy_la-blockswap~.lo zexy_la-date.lo \ - zexy_la-demultiplex~.lo zexy_la-demultiplex.lo \ - zexy_la-dfreq~.lo zexy_la-dirac~.lo zexy_la-drip.lo \ - zexy_la-envrms~.lo zexy_la-fifop.lo zexy_la-freadln.lo \ - zexy_la-fwriteln.lo zexy_la-glue.lo zexy_la-index.lo \ - zexy_la-length.lo zexy_la-lifop.lo zexy_la-limiter~.lo \ - zexy_la-list2int.lo zexy_la-list2lists.lo \ - zexy_la-list2symbol.lo zexy_la-lister.lo zexy_la-listfind.lo \ - zexy_la-liststorage.lo zexy_la-longload.lo zexy_la-lpt.lo \ - zexy_la-makesymbol.lo zexy_la-matchbox.lo zexy_la-mavg.lo \ - zexy_la-minmax.lo zexy_la-msgfile.lo zexy_la-multiline~.lo \ - zexy_la-multiplex~.lo zexy_la-multiplex.lo \ - zexy_la-multireceive.lo zexy_la-niagara.lo zexy_la-noish~.lo \ - zexy_la-noisi~.lo zexy_la-operating_system.lo zexy_la-pack~.lo \ - zexy_la-pack.lo zexy_la-packel.lo zexy_la-pdf~.lo \ - zexy_la-prime.lo zexy_la-quantize~.lo zexy_la-rawprint.lo \ - zexy_la-regex.lo zexy_la-relay.lo zexy_la-repack.lo \ - zexy_la-repeat.lo zexy_la-route~.lo zexy_la-sfplay.lo \ - zexy_la-sfrecord.lo zexy_la-sgn~.lo zexy_la-sigzero~.lo \ - zexy_la-sleepgrain.lo zexy_la-sort.lo zexy_la-step~.lo \ - zexy_la-strcmp.lo zexy_la-sum.lo zexy_la-swap~.lo \ - zexy_la-symbol2list.lo zexy_la-tabdump.lo zexy_la-tabminmax.lo \ - zexy_la-tabread4~~.lo zexy_la-tabset.lo zexy_la-tavg~.lo \ - zexy_la-time.lo zexy_la-unpack~.lo zexy_la-unpack.lo \ - zexy_la-urn.lo zexy_la-wrap.lo zexy_la-z~.lo $(am__objects_2) -zexy_la_OBJECTS = $(am_zexy_la_OBJECTS) -@LIBRARY_TRUE@am_zexy_la_rpath = -rpath $(pkglibdir) -z__la_LIBADD = -am_z__la_OBJECTS = z~.lo -z__la_OBJECTS = $(am_z__la_OBJECTS) -@SINGLEOBJECTS_TRUE@am_z__la_rpath = -rpath $(pkglibdir) -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -SOURCES = $(0x260x260x7e_la_SOURCES) $(0x2e_la_SOURCES) \ - $(0x3c0x7e_la_SOURCES) $(0x3d0x3d0x7e_la_SOURCES) \ - $(0x3e0x7e_la_SOURCES) $(0x7c0x7c0x7e_la_SOURCES) \ - $(a2l_la_SOURCES) $(absgn__la_SOURCES) $(abs__la_SOURCES) \ - $(any2list_la_SOURCES) $(atof_la_SOURCES) $(atoi_la_SOURCES) \ - $(avg__la_SOURCES) $(blockmirror__la_SOURCES) \ - $(blockshuffle__la_SOURCES) $(blockswap__la_SOURCES) \ - $(date_la_SOURCES) $(demultiplex_la_SOURCES) \ - $(demultiplex__la_SOURCES) $(demux_la_SOURCES) \ - $(demux__la_SOURCES) $(dfreq__la_SOURCES) $(dirac__la_SOURCES) \ - $(drip_la_SOURCES) $(envrms__la_SOURCES) $(fifop_la_SOURCES) \ - $(freadln_la_SOURCES) $(fwriteln_la_SOURCES) \ - $(glue_la_SOURCES) $(index_la_SOURCES) $(l_la_SOURCES) \ - $(l2i_la_SOURCES) $(l2s_la_SOURCES) $(length_la_SOURCES) \ - $(lifop_la_SOURCES) $(limiter__la_SOURCES) \ - $(list2int_la_SOURCES) $(list2lists_la_SOURCES) \ - $(list2symbol_la_SOURCES) $(lister_la_SOURCES) \ - $(listfind_la_SOURCES) $(liststorage_la_SOURCES) \ - $(longload_la_SOURCES) $(lp_la_SOURCES) $(lpt_la_SOURCES) \ - $(makesymbol_la_SOURCES) $(matchbox_la_SOURCES) \ - $(mavg_la_SOURCES) $(minmax_la_SOURCES) $(msgfile_la_SOURCES) \ - $(multiline__la_SOURCES) $(multiplex_la_SOURCES) \ - $(multiplex__la_SOURCES) $(multireceive_la_SOURCES) \ - $(mux_la_SOURCES) $(mux__la_SOURCES) $(niagara_la_SOURCES) \ - $(noish__la_SOURCES) $(noisi__la_SOURCES) \ - $(operating_system_la_SOURCES) $(pack_la_SOURCES) \ - $(packel_la_SOURCES) $(pack__la_SOURCES) $(pdf__la_SOURCES) \ - $(prime_la_SOURCES) $(quantize__la_SOURCES) \ - $(rawprint_la_SOURCES) $(regex_la_SOURCES) $(relay_la_SOURCES) \ - $(repack_la_SOURCES) $(repeat_la_SOURCES) $(route__la_SOURCES) \ - $(s2l_la_SOURCES) $(sfplay_la_SOURCES) $(sfrecord_la_SOURCES) \ - $(sgn__la_SOURCES) $(sigzero__la_SOURCES) \ - $(sleepgrain_la_SOURCES) $(sort_la_SOURCES) \ - $(step__la_SOURCES) $(strcmp_la_SOURCES) $(sum_la_SOURCES) \ - $(swap__la_SOURCES) $(symbol2list_la_SOURCES) \ - $(tabdump_la_SOURCES) $(tabminmax_la_SOURCES) \ - $(tabread4___la_SOURCES) $(tabset_la_SOURCES) \ - $(tavg__la_SOURCES) $(time_la_SOURCES) $(unfold_la_SOURCES) \ - $(unpack_la_SOURCES) $(unpack__la_SOURCES) $(urn_la_SOURCES) \ - $(wrap_la_SOURCES) $(zexy_la_SOURCES) $(z__la_SOURCES) -DIST_SOURCES = $(0x260x260x7e_la_SOURCES) $(0x2e_la_SOURCES) \ - $(0x3c0x7e_la_SOURCES) $(0x3d0x3d0x7e_la_SOURCES) \ - $(0x3e0x7e_la_SOURCES) $(0x7c0x7c0x7e_la_SOURCES) \ - $(a2l_la_SOURCES) $(absgn__la_SOURCES) $(abs__la_SOURCES) \ - $(any2list_la_SOURCES) $(atof_la_SOURCES) $(atoi_la_SOURCES) \ - $(avg__la_SOURCES) $(blockmirror__la_SOURCES) \ - $(blockshuffle__la_SOURCES) $(blockswap__la_SOURCES) \ - $(date_la_SOURCES) $(demultiplex_la_SOURCES) \ - $(demultiplex__la_SOURCES) $(demux_la_SOURCES) \ - $(demux__la_SOURCES) $(dfreq__la_SOURCES) $(dirac__la_SOURCES) \ - $(drip_la_SOURCES) $(envrms__la_SOURCES) $(fifop_la_SOURCES) \ - $(freadln_la_SOURCES) $(fwriteln_la_SOURCES) \ - $(glue_la_SOURCES) $(index_la_SOURCES) $(l_la_SOURCES) \ - $(l2i_la_SOURCES) $(l2s_la_SOURCES) $(length_la_SOURCES) \ - $(lifop_la_SOURCES) $(limiter__la_SOURCES) \ - $(list2int_la_SOURCES) $(list2lists_la_SOURCES) \ - $(list2symbol_la_SOURCES) $(lister_la_SOURCES) \ - $(listfind_la_SOURCES) $(liststorage_la_SOURCES) \ - $(longload_la_SOURCES) $(am__lp_la_SOURCES_DIST) \ - $(am__lpt_la_SOURCES_DIST) $(makesymbol_la_SOURCES) \ - $(matchbox_la_SOURCES) $(mavg_la_SOURCES) $(minmax_la_SOURCES) \ - $(msgfile_la_SOURCES) $(multiline__la_SOURCES) \ - $(multiplex_la_SOURCES) $(multiplex__la_SOURCES) \ - $(multireceive_la_SOURCES) $(mux_la_SOURCES) \ - $(mux__la_SOURCES) $(niagara_la_SOURCES) $(noish__la_SOURCES) \ - $(noisi__la_SOURCES) $(operating_system_la_SOURCES) \ - $(pack_la_SOURCES) $(packel_la_SOURCES) $(pack__la_SOURCES) \ - $(pdf__la_SOURCES) $(prime_la_SOURCES) $(quantize__la_SOURCES) \ - $(rawprint_la_SOURCES) $(regex_la_SOURCES) $(relay_la_SOURCES) \ - $(repack_la_SOURCES) $(repeat_la_SOURCES) $(route__la_SOURCES) \ - $(s2l_la_SOURCES) $(sfplay_la_SOURCES) $(sfrecord_la_SOURCES) \ - $(sgn__la_SOURCES) $(sigzero__la_SOURCES) \ - $(sleepgrain_la_SOURCES) $(sort_la_SOURCES) \ - $(step__la_SOURCES) $(strcmp_la_SOURCES) $(sum_la_SOURCES) \ - $(swap__la_SOURCES) $(symbol2list_la_SOURCES) \ - $(tabdump_la_SOURCES) $(tabminmax_la_SOURCES) \ - $(tabread4___la_SOURCES) $(tabset_la_SOURCES) \ - $(tavg__la_SOURCES) $(time_la_SOURCES) $(unfold_la_SOURCES) \ - $(unpack_la_SOURCES) $(unpack__la_SOURCES) $(urn_la_SOURCES) \ - $(wrap_la_SOURCES) $(am__zexy_la_SOURCES_DIST) \ - $(z__la_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -ARCH_FLAG = @ARCH_FLAG@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTENSION = @EXTENSION@ -EXTRA_LTFLAGS = @EXTRA_LTFLAGS@ -FGREP = @FGREP@ -GREP = @GREP@ -INCLUDES = @INCLUDES@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBTOOL_DEPS = @LIBTOOL_DEPS@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = foreign -ACLOCAL_AMFLAGS = -I m4 -pkglib_LTLIBRARIES = $(am__append_2) $(am__append_3) - -# RTE -AM_CFLAGS = -AM_LDFLAGS = -module -avoid-version -shared -shrext .@EXTENSION@ \ - $(am__append_1) @EXTRA_LTFLAGS@ -zexy_la_CPPFLAGS = -DZEXY_LIBRARY -0x260x260x7e_la_SOURCES = 0x260x260x7e.c -0x2e_la_SOURCES = 0x2e.c -0x3c0x7e_la_SOURCES = 0x3c0x7e.c -0x3d0x3d0x7e_la_SOURCES = 0x3d0x3d0x7e.c -0x3e0x7e_la_SOURCES = 0x3e0x7e.c -0x7c0x7c0x7e_la_SOURCES = 0x7c0x7c0x7e.c -a2l_la_SOURCES = a2l.c -any2list_la_SOURCES = a2l.c -abs__la_SOURCES = abs~.c -absgn__la_SOURCES = absgn~.c -atoi_la_SOURCES = atoi.c -atof_la_SOURCES = atof.c -avg__la_SOURCES = avg~.c -blockmirror__la_SOURCES = blockmirror~.c -blockshuffle__la_SOURCES = blockshuffle~.c -blockswap__la_SOURCES = blockswap~.c -date_la_SOURCES = date.c -demultiplex__la_SOURCES = demultiplex~.c -demux__la_SOURCES = demultiplex~.c -demultiplex_la_SOURCES = demultiplex.c -demux_la_SOURCES = demultiplex.c -dfreq__la_SOURCES = dfreq~.c -dirac__la_SOURCES = dirac~.c -drip_la_SOURCES = drip.c -unfold_la_SOURCES = drip.c -envrms__la_SOURCES = envrms~.c -fifop_la_SOURCES = fifop.c -freadln_la_SOURCES = freadln.c -fwriteln_la_SOURCES = fwriteln.c -glue_la_SOURCES = glue.c -index_la_SOURCES = index.c -length_la_SOURCES = length.c -lifop_la_SOURCES = lifop.c -limiter__la_SOURCES = limiter~.c -list2int_la_SOURCES = list2int.c -l2i_la_SOURCES = list2int.c -list2lists_la_SOURCES = list2lists.c -list2symbol_la_SOURCES = list2symbol.c -l2s_la_SOURCES = list2symbol.c -lister_la_SOURCES = lister.c -l_la_SOURCES = lister.c -listfind_la_SOURCES = listfind.c -liststorage_la_SOURCES = liststorage.c -longload_la_SOURCES = longload.c -@LPT_TRUE@lpt_la_SOURCES = lpt.c $(am__append_4) -@LPT_TRUE@lp_la_SOURCES = lpt.c $(am__append_5) -makesymbol_la_SOURCES = makesymbol.c -matchbox_la_SOURCES = matchbox.c -mavg_la_SOURCES = mavg.c -minmax_la_SOURCES = minmax.c -msgfile_la_SOURCES = msgfile.c -multiline__la_SOURCES = multiline~.c -mux__la_SOURCES = multiplex~.c -multiplex__la_SOURCES = multiplex~.c -mux_la_SOURCES = multiplex.c -multiplex_la_SOURCES = multiplex.c -multireceive_la_SOURCES = multireceive.c -niagara_la_SOURCES = niagara.c -noish__la_SOURCES = noish~.c -noisi__la_SOURCES = noisi~.c -operating_system_la_SOURCES = operating_system.c -pack__la_SOURCES = pack~.c -pack_la_SOURCES = pack.c -packel_la_SOURCES = packel.c -pdf__la_SOURCES = pdf~.c -prime_la_SOURCES = prime.c -quantize__la_SOURCES = quantize~.c -rawprint_la_SOURCES = rawprint.c -regex_la_SOURCES = regex.c -relay_la_SOURCES = relay.c -repack_la_SOURCES = repack.c -repeat_la_SOURCES = repeat.c -route__la_SOURCES = route~.c -sfplay_la_SOURCES = sfplay.c -sfrecord_la_SOURCES = sfrecord.c -sgn__la_SOURCES = sgn~.c -sigzero__la_SOURCES = sigzero~.c -sleepgrain_la_SOURCES = sleepgrain.c -sort_la_SOURCES = sort.c -step__la_SOURCES = step~.c -strcmp_la_SOURCES = strcmp.c -sum_la_SOURCES = sum.c -swap__la_SOURCES = swap~.c -symbol2list_la_SOURCES = symbol2list.c -s2l_la_SOURCES = symbol2list.c -tabdump_la_SOURCES = tabdump.c -tabminmax_la_SOURCES = tabminmax.c -tabread4___la_SOURCES = tabread4~~.c -tabset_la_SOURCES = tabset.c -tavg__la_SOURCES = tavg~.c -time_la_SOURCES = time.c -unpack__la_SOURCES = unpack~.c -unpack_la_SOURCES = unpack.c -urn_la_SOURCES = urn.c -wrap_la_SOURCES = wrap.c -z__la_SOURCES = z~.c -zexy_la_SOURCES = zexy.c z_zexy.c zexy.h zexySIMD.h z_zexy.h \ - zexyconf.h 0x260x260x7e.c 0x2e.c 0x3c0x7e.c 0x3d0x3d0x7e.c \ - 0x3e0x7e.c 0x7c0x7c0x7e.c a2l.c abs~.c absgn~.c atoi.c atof.c \ - avg~.c blockmirror~.c blockshuffle~.c blockswap~.c date.c \ - demultiplex~.c demultiplex.c dfreq~.c dirac~.c drip.c \ - envrms~.c fifop.c freadln.c fwriteln.c glue.c index.c length.c \ - lifop.c limiter~.c list2int.c list2lists.c list2symbol.c \ - lister.c listfind.c liststorage.c longload.c lpt.c \ - makesymbol.c matchbox.c mavg.c minmax.c msgfile.c multiline~.c \ - multiplex~.c multiplex.c multireceive.c niagara.c noish~.c \ - noisi~.c operating_system.c pack~.c pack.c packel.c pdf~.c \ - prime.c quantize~.c rawprint.c regex.c relay.c repack.c \ - repeat.c route~.c sfplay.c sfrecord.c sgn~.c sigzero~.c \ - sleepgrain.c sort.c step~.c strcmp.c sum.c swap~.c \ - symbol2list.c tabdump.c tabminmax.c tabread4~~.c tabset.c \ - tavg~.c time.c unpack~.c unpack.c urn.c wrap.c z~.c \ - $(am__append_6) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign src/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" - @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ - } - -uninstall-pkglibLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ - done - -clean-pkglibLTLIBRARIES: - -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) - @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -0x260x260x7e.la: $(0x260x260x7e_la_OBJECTS) $(0x260x260x7e_la_DEPENDENCIES) $(EXTRA_0x260x260x7e_la_DEPENDENCIES) - $(LINK) $(am_0x260x260x7e_la_rpath) $(0x260x260x7e_la_OBJECTS) $(0x260x260x7e_la_LIBADD) $(LIBS) -0x2e.la: $(0x2e_la_OBJECTS) $(0x2e_la_DEPENDENCIES) $(EXTRA_0x2e_la_DEPENDENCIES) - $(LINK) $(am_0x2e_la_rpath) $(0x2e_la_OBJECTS) $(0x2e_la_LIBADD) $(LIBS) -0x3c0x7e.la: $(0x3c0x7e_la_OBJECTS) $(0x3c0x7e_la_DEPENDENCIES) $(EXTRA_0x3c0x7e_la_DEPENDENCIES) - $(LINK) $(am_0x3c0x7e_la_rpath) $(0x3c0x7e_la_OBJECTS) $(0x3c0x7e_la_LIBADD) $(LIBS) -0x3d0x3d0x7e.la: $(0x3d0x3d0x7e_la_OBJECTS) $(0x3d0x3d0x7e_la_DEPENDENCIES) $(EXTRA_0x3d0x3d0x7e_la_DEPENDENCIES) - $(LINK) $(am_0x3d0x3d0x7e_la_rpath) $(0x3d0x3d0x7e_la_OBJECTS) $(0x3d0x3d0x7e_la_LIBADD) $(LIBS) -0x3e0x7e.la: $(0x3e0x7e_la_OBJECTS) $(0x3e0x7e_la_DEPENDENCIES) $(EXTRA_0x3e0x7e_la_DEPENDENCIES) - $(LINK) $(am_0x3e0x7e_la_rpath) $(0x3e0x7e_la_OBJECTS) $(0x3e0x7e_la_LIBADD) $(LIBS) -0x7c0x7c0x7e.la: $(0x7c0x7c0x7e_la_OBJECTS) $(0x7c0x7c0x7e_la_DEPENDENCIES) $(EXTRA_0x7c0x7c0x7e_la_DEPENDENCIES) - $(LINK) $(am_0x7c0x7c0x7e_la_rpath) $(0x7c0x7c0x7e_la_OBJECTS) $(0x7c0x7c0x7e_la_LIBADD) $(LIBS) -a2l.la: $(a2l_la_OBJECTS) $(a2l_la_DEPENDENCIES) $(EXTRA_a2l_la_DEPENDENCIES) - $(LINK) $(am_a2l_la_rpath) $(a2l_la_OBJECTS) $(a2l_la_LIBADD) $(LIBS) -absgn~.la: $(absgn__la_OBJECTS) $(absgn__la_DEPENDENCIES) $(EXTRA_absgn__la_DEPENDENCIES) - $(LINK) $(am_absgn__la_rpath) $(absgn__la_OBJECTS) $(absgn__la_LIBADD) $(LIBS) -abs~.la: $(abs__la_OBJECTS) $(abs__la_DEPENDENCIES) $(EXTRA_abs__la_DEPENDENCIES) - $(LINK) $(am_abs__la_rpath) $(abs__la_OBJECTS) $(abs__la_LIBADD) $(LIBS) -any2list.la: $(any2list_la_OBJECTS) $(any2list_la_DEPENDENCIES) $(EXTRA_any2list_la_DEPENDENCIES) - $(LINK) $(am_any2list_la_rpath) $(any2list_la_OBJECTS) $(any2list_la_LIBADD) $(LIBS) -atof.la: $(atof_la_OBJECTS) $(atof_la_DEPENDENCIES) $(EXTRA_atof_la_DEPENDENCIES) - $(LINK) $(am_atof_la_rpath) $(atof_la_OBJECTS) $(atof_la_LIBADD) $(LIBS) -atoi.la: $(atoi_la_OBJECTS) $(atoi_la_DEPENDENCIES) $(EXTRA_atoi_la_DEPENDENCIES) - $(LINK) $(am_atoi_la_rpath) $(atoi_la_OBJECTS) $(atoi_la_LIBADD) $(LIBS) -avg~.la: $(avg__la_OBJECTS) $(avg__la_DEPENDENCIES) $(EXTRA_avg__la_DEPENDENCIES) - $(LINK) $(am_avg__la_rpath) $(avg__la_OBJECTS) $(avg__la_LIBADD) $(LIBS) -blockmirror~.la: $(blockmirror__la_OBJECTS) $(blockmirror__la_DEPENDENCIES) $(EXTRA_blockmirror__la_DEPENDENCIES) - $(LINK) $(am_blockmirror__la_rpath) $(blockmirror__la_OBJECTS) $(blockmirror__la_LIBADD) $(LIBS) -blockshuffle~.la: $(blockshuffle__la_OBJECTS) $(blockshuffle__la_DEPENDENCIES) $(EXTRA_blockshuffle__la_DEPENDENCIES) - $(LINK) $(am_blockshuffle__la_rpath) $(blockshuffle__la_OBJECTS) $(blockshuffle__la_LIBADD) $(LIBS) -blockswap~.la: $(blockswap__la_OBJECTS) $(blockswap__la_DEPENDENCIES) $(EXTRA_blockswap__la_DEPENDENCIES) - $(LINK) $(am_blockswap__la_rpath) $(blockswap__la_OBJECTS) $(blockswap__la_LIBADD) $(LIBS) -date.la: $(date_la_OBJECTS) $(date_la_DEPENDENCIES) $(EXTRA_date_la_DEPENDENCIES) - $(LINK) $(am_date_la_rpath) $(date_la_OBJECTS) $(date_la_LIBADD) $(LIBS) -demultiplex.la: $(demultiplex_la_OBJECTS) $(demultiplex_la_DEPENDENCIES) $(EXTRA_demultiplex_la_DEPENDENCIES) - $(LINK) $(am_demultiplex_la_rpath) $(demultiplex_la_OBJECTS) $(demultiplex_la_LIBADD) $(LIBS) -demultiplex~.la: $(demultiplex__la_OBJECTS) $(demultiplex__la_DEPENDENCIES) $(EXTRA_demultiplex__la_DEPENDENCIES) - $(LINK) $(am_demultiplex__la_rpath) $(demultiplex__la_OBJECTS) $(demultiplex__la_LIBADD) $(LIBS) -demux.la: $(demux_la_OBJECTS) $(demux_la_DEPENDENCIES) $(EXTRA_demux_la_DEPENDENCIES) - $(LINK) $(am_demux_la_rpath) $(demux_la_OBJECTS) $(demux_la_LIBADD) $(LIBS) -demux~.la: $(demux__la_OBJECTS) $(demux__la_DEPENDENCIES) $(EXTRA_demux__la_DEPENDENCIES) - $(LINK) $(am_demux__la_rpath) $(demux__la_OBJECTS) $(demux__la_LIBADD) $(LIBS) -dfreq~.la: $(dfreq__la_OBJECTS) $(dfreq__la_DEPENDENCIES) $(EXTRA_dfreq__la_DEPENDENCIES) - $(LINK) $(am_dfreq__la_rpath) $(dfreq__la_OBJECTS) $(dfreq__la_LIBADD) $(LIBS) -dirac~.la: $(dirac__la_OBJECTS) $(dirac__la_DEPENDENCIES) $(EXTRA_dirac__la_DEPENDENCIES) - $(LINK) $(am_dirac__la_rpath) $(dirac__la_OBJECTS) $(dirac__la_LIBADD) $(LIBS) -drip.la: $(drip_la_OBJECTS) $(drip_la_DEPENDENCIES) $(EXTRA_drip_la_DEPENDENCIES) - $(LINK) $(am_drip_la_rpath) $(drip_la_OBJECTS) $(drip_la_LIBADD) $(LIBS) -envrms~.la: $(envrms__la_OBJECTS) $(envrms__la_DEPENDENCIES) $(EXTRA_envrms__la_DEPENDENCIES) - $(LINK) $(am_envrms__la_rpath) $(envrms__la_OBJECTS) $(envrms__la_LIBADD) $(LIBS) -fifop.la: $(fifop_la_OBJECTS) $(fifop_la_DEPENDENCIES) $(EXTRA_fifop_la_DEPENDENCIES) - $(LINK) $(am_fifop_la_rpath) $(fifop_la_OBJECTS) $(fifop_la_LIBADD) $(LIBS) -freadln.la: $(freadln_la_OBJECTS) $(freadln_la_DEPENDENCIES) $(EXTRA_freadln_la_DEPENDENCIES) - $(LINK) $(am_freadln_la_rpath) $(freadln_la_OBJECTS) $(freadln_la_LIBADD) $(LIBS) -fwriteln.la: $(fwriteln_la_OBJECTS) $(fwriteln_la_DEPENDENCIES) $(EXTRA_fwriteln_la_DEPENDENCIES) - $(LINK) $(am_fwriteln_la_rpath) $(fwriteln_la_OBJECTS) $(fwriteln_la_LIBADD) $(LIBS) -glue.la: $(glue_la_OBJECTS) $(glue_la_DEPENDENCIES) $(EXTRA_glue_la_DEPENDENCIES) - $(LINK) $(am_glue_la_rpath) $(glue_la_OBJECTS) $(glue_la_LIBADD) $(LIBS) -index.la: $(index_la_OBJECTS) $(index_la_DEPENDENCIES) $(EXTRA_index_la_DEPENDENCIES) - $(LINK) $(am_index_la_rpath) $(index_la_OBJECTS) $(index_la_LIBADD) $(LIBS) -l.la: $(l_la_OBJECTS) $(l_la_DEPENDENCIES) $(EXTRA_l_la_DEPENDENCIES) - $(LINK) $(am_l_la_rpath) $(l_la_OBJECTS) $(l_la_LIBADD) $(LIBS) -l2i.la: $(l2i_la_OBJECTS) $(l2i_la_DEPENDENCIES) $(EXTRA_l2i_la_DEPENDENCIES) - $(LINK) $(am_l2i_la_rpath) $(l2i_la_OBJECTS) $(l2i_la_LIBADD) $(LIBS) -l2s.la: $(l2s_la_OBJECTS) $(l2s_la_DEPENDENCIES) $(EXTRA_l2s_la_DEPENDENCIES) - $(LINK) $(am_l2s_la_rpath) $(l2s_la_OBJECTS) $(l2s_la_LIBADD) $(LIBS) -length.la: $(length_la_OBJECTS) $(length_la_DEPENDENCIES) $(EXTRA_length_la_DEPENDENCIES) - $(LINK) $(am_length_la_rpath) $(length_la_OBJECTS) $(length_la_LIBADD) $(LIBS) -lifop.la: $(lifop_la_OBJECTS) $(lifop_la_DEPENDENCIES) $(EXTRA_lifop_la_DEPENDENCIES) - $(LINK) $(am_lifop_la_rpath) $(lifop_la_OBJECTS) $(lifop_la_LIBADD) $(LIBS) -limiter~.la: $(limiter__la_OBJECTS) $(limiter__la_DEPENDENCIES) $(EXTRA_limiter__la_DEPENDENCIES) - $(LINK) $(am_limiter__la_rpath) $(limiter__la_OBJECTS) $(limiter__la_LIBADD) $(LIBS) -list2int.la: $(list2int_la_OBJECTS) $(list2int_la_DEPENDENCIES) $(EXTRA_list2int_la_DEPENDENCIES) - $(LINK) $(am_list2int_la_rpath) $(list2int_la_OBJECTS) $(list2int_la_LIBADD) $(LIBS) -list2lists.la: $(list2lists_la_OBJECTS) $(list2lists_la_DEPENDENCIES) $(EXTRA_list2lists_la_DEPENDENCIES) - $(LINK) $(am_list2lists_la_rpath) $(list2lists_la_OBJECTS) $(list2lists_la_LIBADD) $(LIBS) -list2symbol.la: $(list2symbol_la_OBJECTS) $(list2symbol_la_DEPENDENCIES) $(EXTRA_list2symbol_la_DEPENDENCIES) - $(LINK) $(am_list2symbol_la_rpath) $(list2symbol_la_OBJECTS) $(list2symbol_la_LIBADD) $(LIBS) -lister.la: $(lister_la_OBJECTS) $(lister_la_DEPENDENCIES) $(EXTRA_lister_la_DEPENDENCIES) - $(LINK) $(am_lister_la_rpath) $(lister_la_OBJECTS) $(lister_la_LIBADD) $(LIBS) -listfind.la: $(listfind_la_OBJECTS) $(listfind_la_DEPENDENCIES) $(EXTRA_listfind_la_DEPENDENCIES) - $(LINK) $(am_listfind_la_rpath) $(listfind_la_OBJECTS) $(listfind_la_LIBADD) $(LIBS) -liststorage.la: $(liststorage_la_OBJECTS) $(liststorage_la_DEPENDENCIES) $(EXTRA_liststorage_la_DEPENDENCIES) - $(LINK) $(am_liststorage_la_rpath) $(liststorage_la_OBJECTS) $(liststorage_la_LIBADD) $(LIBS) -longload.la: $(longload_la_OBJECTS) $(longload_la_DEPENDENCIES) $(EXTRA_longload_la_DEPENDENCIES) - $(LINK) $(am_longload_la_rpath) $(longload_la_OBJECTS) $(longload_la_LIBADD) $(LIBS) -lp.la: $(lp_la_OBJECTS) $(lp_la_DEPENDENCIES) $(EXTRA_lp_la_DEPENDENCIES) - $(LINK) $(am_lp_la_rpath) $(lp_la_OBJECTS) $(lp_la_LIBADD) $(LIBS) -lpt.la: $(lpt_la_OBJECTS) $(lpt_la_DEPENDENCIES) $(EXTRA_lpt_la_DEPENDENCIES) - $(LINK) $(am_lpt_la_rpath) $(lpt_la_OBJECTS) $(lpt_la_LIBADD) $(LIBS) -makesymbol.la: $(makesymbol_la_OBJECTS) $(makesymbol_la_DEPENDENCIES) $(EXTRA_makesymbol_la_DEPENDENCIES) - $(LINK) $(am_makesymbol_la_rpath) $(makesymbol_la_OBJECTS) $(makesymbol_la_LIBADD) $(LIBS) -matchbox.la: $(matchbox_la_OBJECTS) $(matchbox_la_DEPENDENCIES) $(EXTRA_matchbox_la_DEPENDENCIES) - $(LINK) $(am_matchbox_la_rpath) $(matchbox_la_OBJECTS) $(matchbox_la_LIBADD) $(LIBS) -mavg.la: $(mavg_la_OBJECTS) $(mavg_la_DEPENDENCIES) $(EXTRA_mavg_la_DEPENDENCIES) - $(LINK) $(am_mavg_la_rpath) $(mavg_la_OBJECTS) $(mavg_la_LIBADD) $(LIBS) -minmax.la: $(minmax_la_OBJECTS) $(minmax_la_DEPENDENCIES) $(EXTRA_minmax_la_DEPENDENCIES) - $(LINK) $(am_minmax_la_rpath) $(minmax_la_OBJECTS) $(minmax_la_LIBADD) $(LIBS) -msgfile.la: $(msgfile_la_OBJECTS) $(msgfile_la_DEPENDENCIES) $(EXTRA_msgfile_la_DEPENDENCIES) - $(LINK) $(am_msgfile_la_rpath) $(msgfile_la_OBJECTS) $(msgfile_la_LIBADD) $(LIBS) -multiline~.la: $(multiline__la_OBJECTS) $(multiline__la_DEPENDENCIES) $(EXTRA_multiline__la_DEPENDENCIES) - $(LINK) $(am_multiline__la_rpath) $(multiline__la_OBJECTS) $(multiline__la_LIBADD) $(LIBS) -multiplex.la: $(multiplex_la_OBJECTS) $(multiplex_la_DEPENDENCIES) $(EXTRA_multiplex_la_DEPENDENCIES) - $(LINK) $(am_multiplex_la_rpath) $(multiplex_la_OBJECTS) $(multiplex_la_LIBADD) $(LIBS) -multiplex~.la: $(multiplex__la_OBJECTS) $(multiplex__la_DEPENDENCIES) $(EXTRA_multiplex__la_DEPENDENCIES) - $(LINK) $(am_multiplex__la_rpath) $(multiplex__la_OBJECTS) $(multiplex__la_LIBADD) $(LIBS) -multireceive.la: $(multireceive_la_OBJECTS) $(multireceive_la_DEPENDENCIES) $(EXTRA_multireceive_la_DEPENDENCIES) - $(LINK) $(am_multireceive_la_rpath) $(multireceive_la_OBJECTS) $(multireceive_la_LIBADD) $(LIBS) -mux.la: $(mux_la_OBJECTS) $(mux_la_DEPENDENCIES) $(EXTRA_mux_la_DEPENDENCIES) - $(LINK) $(am_mux_la_rpath) $(mux_la_OBJECTS) $(mux_la_LIBADD) $(LIBS) -mux~.la: $(mux__la_OBJECTS) $(mux__la_DEPENDENCIES) $(EXTRA_mux__la_DEPENDENCIES) - $(LINK) $(am_mux__la_rpath) $(mux__la_OBJECTS) $(mux__la_LIBADD) $(LIBS) -niagara.la: $(niagara_la_OBJECTS) $(niagara_la_DEPENDENCIES) $(EXTRA_niagara_la_DEPENDENCIES) - $(LINK) $(am_niagara_la_rpath) $(niagara_la_OBJECTS) $(niagara_la_LIBADD) $(LIBS) -noish~.la: $(noish__la_OBJECTS) $(noish__la_DEPENDENCIES) $(EXTRA_noish__la_DEPENDENCIES) - $(LINK) $(am_noish__la_rpath) $(noish__la_OBJECTS) $(noish__la_LIBADD) $(LIBS) -noisi~.la: $(noisi__la_OBJECTS) $(noisi__la_DEPENDENCIES) $(EXTRA_noisi__la_DEPENDENCIES) - $(LINK) $(am_noisi__la_rpath) $(noisi__la_OBJECTS) $(noisi__la_LIBADD) $(LIBS) -operating_system.la: $(operating_system_la_OBJECTS) $(operating_system_la_DEPENDENCIES) $(EXTRA_operating_system_la_DEPENDENCIES) - $(LINK) $(am_operating_system_la_rpath) $(operating_system_la_OBJECTS) $(operating_system_la_LIBADD) $(LIBS) -pack.la: $(pack_la_OBJECTS) $(pack_la_DEPENDENCIES) $(EXTRA_pack_la_DEPENDENCIES) - $(LINK) $(am_pack_la_rpath) $(pack_la_OBJECTS) $(pack_la_LIBADD) $(LIBS) -packel.la: $(packel_la_OBJECTS) $(packel_la_DEPENDENCIES) $(EXTRA_packel_la_DEPENDENCIES) - $(LINK) $(am_packel_la_rpath) $(packel_la_OBJECTS) $(packel_la_LIBADD) $(LIBS) -pack~.la: $(pack__la_OBJECTS) $(pack__la_DEPENDENCIES) $(EXTRA_pack__la_DEPENDENCIES) - $(LINK) $(am_pack__la_rpath) $(pack__la_OBJECTS) $(pack__la_LIBADD) $(LIBS) -pdf~.la: $(pdf__la_OBJECTS) $(pdf__la_DEPENDENCIES) $(EXTRA_pdf__la_DEPENDENCIES) - $(LINK) $(am_pdf__la_rpath) $(pdf__la_OBJECTS) $(pdf__la_LIBADD) $(LIBS) -prime.la: $(prime_la_OBJECTS) $(prime_la_DEPENDENCIES) $(EXTRA_prime_la_DEPENDENCIES) - $(LINK) $(am_prime_la_rpath) $(prime_la_OBJECTS) $(prime_la_LIBADD) $(LIBS) -quantize~.la: $(quantize__la_OBJECTS) $(quantize__la_DEPENDENCIES) $(EXTRA_quantize__la_DEPENDENCIES) - $(LINK) $(am_quantize__la_rpath) $(quantize__la_OBJECTS) $(quantize__la_LIBADD) $(LIBS) -rawprint.la: $(rawprint_la_OBJECTS) $(rawprint_la_DEPENDENCIES) $(EXTRA_rawprint_la_DEPENDENCIES) - $(LINK) $(am_rawprint_la_rpath) $(rawprint_la_OBJECTS) $(rawprint_la_LIBADD) $(LIBS) -regex.la: $(regex_la_OBJECTS) $(regex_la_DEPENDENCIES) $(EXTRA_regex_la_DEPENDENCIES) - $(LINK) $(am_regex_la_rpath) $(regex_la_OBJECTS) $(regex_la_LIBADD) $(LIBS) -relay.la: $(relay_la_OBJECTS) $(relay_la_DEPENDENCIES) $(EXTRA_relay_la_DEPENDENCIES) - $(LINK) $(am_relay_la_rpath) $(relay_la_OBJECTS) $(relay_la_LIBADD) $(LIBS) -repack.la: $(repack_la_OBJECTS) $(repack_la_DEPENDENCIES) $(EXTRA_repack_la_DEPENDENCIES) - $(LINK) $(am_repack_la_rpath) $(repack_la_OBJECTS) $(repack_la_LIBADD) $(LIBS) -repeat.la: $(repeat_la_OBJECTS) $(repeat_la_DEPENDENCIES) $(EXTRA_repeat_la_DEPENDENCIES) - $(LINK) $(am_repeat_la_rpath) $(repeat_la_OBJECTS) $(repeat_la_LIBADD) $(LIBS) -route~.la: $(route__la_OBJECTS) $(route__la_DEPENDENCIES) $(EXTRA_route__la_DEPENDENCIES) - $(LINK) $(am_route__la_rpath) $(route__la_OBJECTS) $(route__la_LIBADD) $(LIBS) -s2l.la: $(s2l_la_OBJECTS) $(s2l_la_DEPENDENCIES) $(EXTRA_s2l_la_DEPENDENCIES) - $(LINK) $(am_s2l_la_rpath) $(s2l_la_OBJECTS) $(s2l_la_LIBADD) $(LIBS) -sfplay.la: $(sfplay_la_OBJECTS) $(sfplay_la_DEPENDENCIES) $(EXTRA_sfplay_la_DEPENDENCIES) - $(LINK) $(am_sfplay_la_rpath) $(sfplay_la_OBJECTS) $(sfplay_la_LIBADD) $(LIBS) -sfrecord.la: $(sfrecord_la_OBJECTS) $(sfrecord_la_DEPENDENCIES) $(EXTRA_sfrecord_la_DEPENDENCIES) - $(LINK) $(am_sfrecord_la_rpath) $(sfrecord_la_OBJECTS) $(sfrecord_la_LIBADD) $(LIBS) -sgn~.la: $(sgn__la_OBJECTS) $(sgn__la_DEPENDENCIES) $(EXTRA_sgn__la_DEPENDENCIES) - $(LINK) $(am_sgn__la_rpath) $(sgn__la_OBJECTS) $(sgn__la_LIBADD) $(LIBS) -sigzero~.la: $(sigzero__la_OBJECTS) $(sigzero__la_DEPENDENCIES) $(EXTRA_sigzero__la_DEPENDENCIES) - $(LINK) $(am_sigzero__la_rpath) $(sigzero__la_OBJECTS) $(sigzero__la_LIBADD) $(LIBS) -sleepgrain.la: $(sleepgrain_la_OBJECTS) $(sleepgrain_la_DEPENDENCIES) $(EXTRA_sleepgrain_la_DEPENDENCIES) - $(LINK) $(am_sleepgrain_la_rpath) $(sleepgrain_la_OBJECTS) $(sleepgrain_la_LIBADD) $(LIBS) -sort.la: $(sort_la_OBJECTS) $(sort_la_DEPENDENCIES) $(EXTRA_sort_la_DEPENDENCIES) - $(LINK) $(am_sort_la_rpath) $(sort_la_OBJECTS) $(sort_la_LIBADD) $(LIBS) -step~.la: $(step__la_OBJECTS) $(step__la_DEPENDENCIES) $(EXTRA_step__la_DEPENDENCIES) - $(LINK) $(am_step__la_rpath) $(step__la_OBJECTS) $(step__la_LIBADD) $(LIBS) -strcmp.la: $(strcmp_la_OBJECTS) $(strcmp_la_DEPENDENCIES) $(EXTRA_strcmp_la_DEPENDENCIES) - $(LINK) $(am_strcmp_la_rpath) $(strcmp_la_OBJECTS) $(strcmp_la_LIBADD) $(LIBS) -sum.la: $(sum_la_OBJECTS) $(sum_la_DEPENDENCIES) $(EXTRA_sum_la_DEPENDENCIES) - $(LINK) $(am_sum_la_rpath) $(sum_la_OBJECTS) $(sum_la_LIBADD) $(LIBS) -swap~.la: $(swap__la_OBJECTS) $(swap__la_DEPENDENCIES) $(EXTRA_swap__la_DEPENDENCIES) - $(LINK) $(am_swap__la_rpath) $(swap__la_OBJECTS) $(swap__la_LIBADD) $(LIBS) -symbol2list.la: $(symbol2list_la_OBJECTS) $(symbol2list_la_DEPENDENCIES) $(EXTRA_symbol2list_la_DEPENDENCIES) - $(LINK) $(am_symbol2list_la_rpath) $(symbol2list_la_OBJECTS) $(symbol2list_la_LIBADD) $(LIBS) -tabdump.la: $(tabdump_la_OBJECTS) $(tabdump_la_DEPENDENCIES) $(EXTRA_tabdump_la_DEPENDENCIES) - $(LINK) $(am_tabdump_la_rpath) $(tabdump_la_OBJECTS) $(tabdump_la_LIBADD) $(LIBS) -tabminmax.la: $(tabminmax_la_OBJECTS) $(tabminmax_la_DEPENDENCIES) $(EXTRA_tabminmax_la_DEPENDENCIES) - $(LINK) $(am_tabminmax_la_rpath) $(tabminmax_la_OBJECTS) $(tabminmax_la_LIBADD) $(LIBS) -tabread4~~.la: $(tabread4___la_OBJECTS) $(tabread4___la_DEPENDENCIES) $(EXTRA_tabread4___la_DEPENDENCIES) - $(LINK) $(am_tabread4___la_rpath) $(tabread4___la_OBJECTS) $(tabread4___la_LIBADD) $(LIBS) -tabset.la: $(tabset_la_OBJECTS) $(tabset_la_DEPENDENCIES) $(EXTRA_tabset_la_DEPENDENCIES) - $(LINK) $(am_tabset_la_rpath) $(tabset_la_OBJECTS) $(tabset_la_LIBADD) $(LIBS) -tavg~.la: $(tavg__la_OBJECTS) $(tavg__la_DEPENDENCIES) $(EXTRA_tavg__la_DEPENDENCIES) - $(LINK) $(am_tavg__la_rpath) $(tavg__la_OBJECTS) $(tavg__la_LIBADD) $(LIBS) -time.la: $(time_la_OBJECTS) $(time_la_DEPENDENCIES) $(EXTRA_time_la_DEPENDENCIES) - $(LINK) $(am_time_la_rpath) $(time_la_OBJECTS) $(time_la_LIBADD) $(LIBS) -unfold.la: $(unfold_la_OBJECTS) $(unfold_la_DEPENDENCIES) $(EXTRA_unfold_la_DEPENDENCIES) - $(LINK) $(am_unfold_la_rpath) $(unfold_la_OBJECTS) $(unfold_la_LIBADD) $(LIBS) -unpack.la: $(unpack_la_OBJECTS) $(unpack_la_DEPENDENCIES) $(EXTRA_unpack_la_DEPENDENCIES) - $(LINK) $(am_unpack_la_rpath) $(unpack_la_OBJECTS) $(unpack_la_LIBADD) $(LIBS) -unpack~.la: $(unpack__la_OBJECTS) $(unpack__la_DEPENDENCIES) $(EXTRA_unpack__la_DEPENDENCIES) - $(LINK) $(am_unpack__la_rpath) $(unpack__la_OBJECTS) $(unpack__la_LIBADD) $(LIBS) -urn.la: $(urn_la_OBJECTS) $(urn_la_DEPENDENCIES) $(EXTRA_urn_la_DEPENDENCIES) - $(LINK) $(am_urn_la_rpath) $(urn_la_OBJECTS) $(urn_la_LIBADD) $(LIBS) -wrap.la: $(wrap_la_OBJECTS) $(wrap_la_DEPENDENCIES) $(EXTRA_wrap_la_DEPENDENCIES) - $(LINK) $(am_wrap_la_rpath) $(wrap_la_OBJECTS) $(wrap_la_LIBADD) $(LIBS) -zexy.la: $(zexy_la_OBJECTS) $(zexy_la_DEPENDENCIES) $(EXTRA_zexy_la_DEPENDENCIES) - $(LINK) $(am_zexy_la_rpath) $(zexy_la_OBJECTS) $(zexy_la_LIBADD) $(LIBS) -z~.la: $(z__la_OBJECTS) $(z__la_DEPENDENCIES) $(EXTRA_z__la_DEPENDENCIES) - $(LINK) $(am_z__la_rpath) $(z__la_OBJECTS) $(z__la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/0x260x260x7e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/0x2e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/0x3c0x7e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/0x3d0x3d0x7e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/0x3e0x7e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/0x7c0x7c0x7e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/a2l.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/absgn~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/abs~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atof.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atoi.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avg~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/blockmirror~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/blockshuffle~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/blockswap~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/date.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/demultiplex.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/demultiplex~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dfreq~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dirac~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drip.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/envrms~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fifop.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/freadln.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fwriteln.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glue.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/index.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/length.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lifop.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/limiter~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list2int.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list2lists.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list2symbol.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lister.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listfind.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/liststorage.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/longload.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lpt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/makesymbol.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/matchbox.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mavg.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/minmax.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msgfile.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiline~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiplex.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiplex~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multireceive.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/niagara.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/noish~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/noisi~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/operating_system.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pack.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/packel.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pack~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdf~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prime.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quantize~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rawprint.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/regex.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/relay.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/repack.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/repeat.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/route~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sfplay.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sfrecord.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sgn~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sigzero~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sleepgrain.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sort.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/step~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strcmp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/swap~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symbol2list.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tabdump.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tabminmax.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tabread4~~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tabset.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tavg~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/time.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unpack.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unpack~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/urn.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/winNT_portio.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wrap.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-0x260x260x7e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-0x2e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-0x3c0x7e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-0x3d0x3d0x7e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-0x3e0x7e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-0x7c0x7c0x7e.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-a2l.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-absgn~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-abs~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-atof.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-atoi.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-avg~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-blockmirror~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-blockshuffle~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-blockswap~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-date.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-demultiplex.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-demultiplex~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-dfreq~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-dirac~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-drip.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-envrms~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-fifop.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-freadln.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-fwriteln.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-glue.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-index.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-length.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-lifop.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-limiter~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-list2int.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-list2lists.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-list2symbol.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-lister.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-listfind.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-liststorage.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-longload.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-lpt.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-makesymbol.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-matchbox.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-mavg.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-minmax.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-msgfile.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-multiline~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-multiplex.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-multiplex~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-multireceive.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-niagara.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-noish~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-noisi~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-operating_system.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-pack.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-packel.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-pack~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-pdf~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-prime.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-quantize~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-rawprint.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-regex.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-relay.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-repack.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-repeat.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-route~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-sfplay.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-sfrecord.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-sgn~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-sigzero~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-sleepgrain.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-sort.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-step~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-strcmp.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-sum.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-swap~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-symbol2list.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-tabdump.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-tabminmax.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-tabread4~~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-tabset.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-tavg~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-time.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-unpack.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-unpack~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-urn.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-winNT_portio.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-wrap.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-z_zexy.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-zexy.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexy_la-z~.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/z~.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -zexy_la-zexy.lo: zexy.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-zexy.lo -MD -MP -MF $(DEPDIR)/zexy_la-zexy.Tpo -c -o zexy_la-zexy.lo `test -f 'zexy.c' || echo '$(srcdir)/'`zexy.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-zexy.Tpo $(DEPDIR)/zexy_la-zexy.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='zexy.c' object='zexy_la-zexy.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-zexy.lo `test -f 'zexy.c' || echo '$(srcdir)/'`zexy.c - -zexy_la-z_zexy.lo: z_zexy.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-z_zexy.lo -MD -MP -MF $(DEPDIR)/zexy_la-z_zexy.Tpo -c -o zexy_la-z_zexy.lo `test -f 'z_zexy.c' || echo '$(srcdir)/'`z_zexy.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-z_zexy.Tpo $(DEPDIR)/zexy_la-z_zexy.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='z_zexy.c' object='zexy_la-z_zexy.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-z_zexy.lo `test -f 'z_zexy.c' || echo '$(srcdir)/'`z_zexy.c - -zexy_la-0x260x260x7e.lo: 0x260x260x7e.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-0x260x260x7e.lo -MD -MP -MF $(DEPDIR)/zexy_la-0x260x260x7e.Tpo -c -o zexy_la-0x260x260x7e.lo `test -f '0x260x260x7e.c' || echo '$(srcdir)/'`0x260x260x7e.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-0x260x260x7e.Tpo $(DEPDIR)/zexy_la-0x260x260x7e.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='0x260x260x7e.c' object='zexy_la-0x260x260x7e.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-0x260x260x7e.lo `test -f '0x260x260x7e.c' || echo '$(srcdir)/'`0x260x260x7e.c - -zexy_la-0x2e.lo: 0x2e.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-0x2e.lo -MD -MP -MF $(DEPDIR)/zexy_la-0x2e.Tpo -c -o zexy_la-0x2e.lo `test -f '0x2e.c' || echo '$(srcdir)/'`0x2e.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-0x2e.Tpo $(DEPDIR)/zexy_la-0x2e.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='0x2e.c' object='zexy_la-0x2e.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-0x2e.lo `test -f '0x2e.c' || echo '$(srcdir)/'`0x2e.c - -zexy_la-0x3c0x7e.lo: 0x3c0x7e.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-0x3c0x7e.lo -MD -MP -MF $(DEPDIR)/zexy_la-0x3c0x7e.Tpo -c -o zexy_la-0x3c0x7e.lo `test -f '0x3c0x7e.c' || echo '$(srcdir)/'`0x3c0x7e.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-0x3c0x7e.Tpo $(DEPDIR)/zexy_la-0x3c0x7e.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='0x3c0x7e.c' object='zexy_la-0x3c0x7e.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-0x3c0x7e.lo `test -f '0x3c0x7e.c' || echo '$(srcdir)/'`0x3c0x7e.c - -zexy_la-0x3d0x3d0x7e.lo: 0x3d0x3d0x7e.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-0x3d0x3d0x7e.lo -MD -MP -MF $(DEPDIR)/zexy_la-0x3d0x3d0x7e.Tpo -c -o zexy_la-0x3d0x3d0x7e.lo `test -f '0x3d0x3d0x7e.c' || echo '$(srcdir)/'`0x3d0x3d0x7e.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-0x3d0x3d0x7e.Tpo $(DEPDIR)/zexy_la-0x3d0x3d0x7e.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='0x3d0x3d0x7e.c' object='zexy_la-0x3d0x3d0x7e.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-0x3d0x3d0x7e.lo `test -f '0x3d0x3d0x7e.c' || echo '$(srcdir)/'`0x3d0x3d0x7e.c - -zexy_la-0x3e0x7e.lo: 0x3e0x7e.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-0x3e0x7e.lo -MD -MP -MF $(DEPDIR)/zexy_la-0x3e0x7e.Tpo -c -o zexy_la-0x3e0x7e.lo `test -f '0x3e0x7e.c' || echo '$(srcdir)/'`0x3e0x7e.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-0x3e0x7e.Tpo $(DEPDIR)/zexy_la-0x3e0x7e.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='0x3e0x7e.c' object='zexy_la-0x3e0x7e.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-0x3e0x7e.lo `test -f '0x3e0x7e.c' || echo '$(srcdir)/'`0x3e0x7e.c - -zexy_la-0x7c0x7c0x7e.lo: 0x7c0x7c0x7e.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-0x7c0x7c0x7e.lo -MD -MP -MF $(DEPDIR)/zexy_la-0x7c0x7c0x7e.Tpo -c -o zexy_la-0x7c0x7c0x7e.lo `test -f '0x7c0x7c0x7e.c' || echo '$(srcdir)/'`0x7c0x7c0x7e.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-0x7c0x7c0x7e.Tpo $(DEPDIR)/zexy_la-0x7c0x7c0x7e.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='0x7c0x7c0x7e.c' object='zexy_la-0x7c0x7c0x7e.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-0x7c0x7c0x7e.lo `test -f '0x7c0x7c0x7e.c' || echo '$(srcdir)/'`0x7c0x7c0x7e.c - -zexy_la-a2l.lo: a2l.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-a2l.lo -MD -MP -MF $(DEPDIR)/zexy_la-a2l.Tpo -c -o zexy_la-a2l.lo `test -f 'a2l.c' || echo '$(srcdir)/'`a2l.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-a2l.Tpo $(DEPDIR)/zexy_la-a2l.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='a2l.c' object='zexy_la-a2l.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-a2l.lo `test -f 'a2l.c' || echo '$(srcdir)/'`a2l.c - -zexy_la-abs~.lo: abs~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-abs~.lo -MD -MP -MF $(DEPDIR)/zexy_la-abs~.Tpo -c -o zexy_la-abs~.lo `test -f 'abs~.c' || echo '$(srcdir)/'`abs~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-abs~.Tpo $(DEPDIR)/zexy_la-abs~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='abs~.c' object='zexy_la-abs~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-abs~.lo `test -f 'abs~.c' || echo '$(srcdir)/'`abs~.c - -zexy_la-absgn~.lo: absgn~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-absgn~.lo -MD -MP -MF $(DEPDIR)/zexy_la-absgn~.Tpo -c -o zexy_la-absgn~.lo `test -f 'absgn~.c' || echo '$(srcdir)/'`absgn~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-absgn~.Tpo $(DEPDIR)/zexy_la-absgn~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='absgn~.c' object='zexy_la-absgn~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-absgn~.lo `test -f 'absgn~.c' || echo '$(srcdir)/'`absgn~.c - -zexy_la-atoi.lo: atoi.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-atoi.lo -MD -MP -MF $(DEPDIR)/zexy_la-atoi.Tpo -c -o zexy_la-atoi.lo `test -f 'atoi.c' || echo '$(srcdir)/'`atoi.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-atoi.Tpo $(DEPDIR)/zexy_la-atoi.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='atoi.c' object='zexy_la-atoi.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-atoi.lo `test -f 'atoi.c' || echo '$(srcdir)/'`atoi.c - -zexy_la-atof.lo: atof.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-atof.lo -MD -MP -MF $(DEPDIR)/zexy_la-atof.Tpo -c -o zexy_la-atof.lo `test -f 'atof.c' || echo '$(srcdir)/'`atof.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-atof.Tpo $(DEPDIR)/zexy_la-atof.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='atof.c' object='zexy_la-atof.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-atof.lo `test -f 'atof.c' || echo '$(srcdir)/'`atof.c - -zexy_la-avg~.lo: avg~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-avg~.lo -MD -MP -MF $(DEPDIR)/zexy_la-avg~.Tpo -c -o zexy_la-avg~.lo `test -f 'avg~.c' || echo '$(srcdir)/'`avg~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-avg~.Tpo $(DEPDIR)/zexy_la-avg~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='avg~.c' object='zexy_la-avg~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-avg~.lo `test -f 'avg~.c' || echo '$(srcdir)/'`avg~.c - -zexy_la-blockmirror~.lo: blockmirror~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-blockmirror~.lo -MD -MP -MF $(DEPDIR)/zexy_la-blockmirror~.Tpo -c -o zexy_la-blockmirror~.lo `test -f 'blockmirror~.c' || echo '$(srcdir)/'`blockmirror~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-blockmirror~.Tpo $(DEPDIR)/zexy_la-blockmirror~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='blockmirror~.c' object='zexy_la-blockmirror~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-blockmirror~.lo `test -f 'blockmirror~.c' || echo '$(srcdir)/'`blockmirror~.c - -zexy_la-blockshuffle~.lo: blockshuffle~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-blockshuffle~.lo -MD -MP -MF $(DEPDIR)/zexy_la-blockshuffle~.Tpo -c -o zexy_la-blockshuffle~.lo `test -f 'blockshuffle~.c' || echo '$(srcdir)/'`blockshuffle~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-blockshuffle~.Tpo $(DEPDIR)/zexy_la-blockshuffle~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='blockshuffle~.c' object='zexy_la-blockshuffle~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-blockshuffle~.lo `test -f 'blockshuffle~.c' || echo '$(srcdir)/'`blockshuffle~.c - -zexy_la-blockswap~.lo: blockswap~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-blockswap~.lo -MD -MP -MF $(DEPDIR)/zexy_la-blockswap~.Tpo -c -o zexy_la-blockswap~.lo `test -f 'blockswap~.c' || echo '$(srcdir)/'`blockswap~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-blockswap~.Tpo $(DEPDIR)/zexy_la-blockswap~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='blockswap~.c' object='zexy_la-blockswap~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-blockswap~.lo `test -f 'blockswap~.c' || echo '$(srcdir)/'`blockswap~.c - -zexy_la-date.lo: date.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-date.lo -MD -MP -MF $(DEPDIR)/zexy_la-date.Tpo -c -o zexy_la-date.lo `test -f 'date.c' || echo '$(srcdir)/'`date.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-date.Tpo $(DEPDIR)/zexy_la-date.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='date.c' object='zexy_la-date.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-date.lo `test -f 'date.c' || echo '$(srcdir)/'`date.c - -zexy_la-demultiplex~.lo: demultiplex~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-demultiplex~.lo -MD -MP -MF $(DEPDIR)/zexy_la-demultiplex~.Tpo -c -o zexy_la-demultiplex~.lo `test -f 'demultiplex~.c' || echo '$(srcdir)/'`demultiplex~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-demultiplex~.Tpo $(DEPDIR)/zexy_la-demultiplex~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='demultiplex~.c' object='zexy_la-demultiplex~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-demultiplex~.lo `test -f 'demultiplex~.c' || echo '$(srcdir)/'`demultiplex~.c - -zexy_la-demultiplex.lo: demultiplex.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-demultiplex.lo -MD -MP -MF $(DEPDIR)/zexy_la-demultiplex.Tpo -c -o zexy_la-demultiplex.lo `test -f 'demultiplex.c' || echo '$(srcdir)/'`demultiplex.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-demultiplex.Tpo $(DEPDIR)/zexy_la-demultiplex.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='demultiplex.c' object='zexy_la-demultiplex.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-demultiplex.lo `test -f 'demultiplex.c' || echo '$(srcdir)/'`demultiplex.c - -zexy_la-dfreq~.lo: dfreq~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-dfreq~.lo -MD -MP -MF $(DEPDIR)/zexy_la-dfreq~.Tpo -c -o zexy_la-dfreq~.lo `test -f 'dfreq~.c' || echo '$(srcdir)/'`dfreq~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-dfreq~.Tpo $(DEPDIR)/zexy_la-dfreq~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dfreq~.c' object='zexy_la-dfreq~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-dfreq~.lo `test -f 'dfreq~.c' || echo '$(srcdir)/'`dfreq~.c - -zexy_la-dirac~.lo: dirac~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-dirac~.lo -MD -MP -MF $(DEPDIR)/zexy_la-dirac~.Tpo -c -o zexy_la-dirac~.lo `test -f 'dirac~.c' || echo '$(srcdir)/'`dirac~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-dirac~.Tpo $(DEPDIR)/zexy_la-dirac~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dirac~.c' object='zexy_la-dirac~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-dirac~.lo `test -f 'dirac~.c' || echo '$(srcdir)/'`dirac~.c - -zexy_la-drip.lo: drip.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-drip.lo -MD -MP -MF $(DEPDIR)/zexy_la-drip.Tpo -c -o zexy_la-drip.lo `test -f 'drip.c' || echo '$(srcdir)/'`drip.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-drip.Tpo $(DEPDIR)/zexy_la-drip.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='drip.c' object='zexy_la-drip.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-drip.lo `test -f 'drip.c' || echo '$(srcdir)/'`drip.c - -zexy_la-envrms~.lo: envrms~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-envrms~.lo -MD -MP -MF $(DEPDIR)/zexy_la-envrms~.Tpo -c -o zexy_la-envrms~.lo `test -f 'envrms~.c' || echo '$(srcdir)/'`envrms~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-envrms~.Tpo $(DEPDIR)/zexy_la-envrms~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='envrms~.c' object='zexy_la-envrms~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-envrms~.lo `test -f 'envrms~.c' || echo '$(srcdir)/'`envrms~.c - -zexy_la-fifop.lo: fifop.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-fifop.lo -MD -MP -MF $(DEPDIR)/zexy_la-fifop.Tpo -c -o zexy_la-fifop.lo `test -f 'fifop.c' || echo '$(srcdir)/'`fifop.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-fifop.Tpo $(DEPDIR)/zexy_la-fifop.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fifop.c' object='zexy_la-fifop.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-fifop.lo `test -f 'fifop.c' || echo '$(srcdir)/'`fifop.c - -zexy_la-freadln.lo: freadln.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-freadln.lo -MD -MP -MF $(DEPDIR)/zexy_la-freadln.Tpo -c -o zexy_la-freadln.lo `test -f 'freadln.c' || echo '$(srcdir)/'`freadln.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-freadln.Tpo $(DEPDIR)/zexy_la-freadln.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='freadln.c' object='zexy_la-freadln.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-freadln.lo `test -f 'freadln.c' || echo '$(srcdir)/'`freadln.c - -zexy_la-fwriteln.lo: fwriteln.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-fwriteln.lo -MD -MP -MF $(DEPDIR)/zexy_la-fwriteln.Tpo -c -o zexy_la-fwriteln.lo `test -f 'fwriteln.c' || echo '$(srcdir)/'`fwriteln.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-fwriteln.Tpo $(DEPDIR)/zexy_la-fwriteln.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fwriteln.c' object='zexy_la-fwriteln.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-fwriteln.lo `test -f 'fwriteln.c' || echo '$(srcdir)/'`fwriteln.c - -zexy_la-glue.lo: glue.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-glue.lo -MD -MP -MF $(DEPDIR)/zexy_la-glue.Tpo -c -o zexy_la-glue.lo `test -f 'glue.c' || echo '$(srcdir)/'`glue.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-glue.Tpo $(DEPDIR)/zexy_la-glue.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='glue.c' object='zexy_la-glue.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-glue.lo `test -f 'glue.c' || echo '$(srcdir)/'`glue.c - -zexy_la-index.lo: index.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-index.lo -MD -MP -MF $(DEPDIR)/zexy_la-index.Tpo -c -o zexy_la-index.lo `test -f 'index.c' || echo '$(srcdir)/'`index.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-index.Tpo $(DEPDIR)/zexy_la-index.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='index.c' object='zexy_la-index.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-index.lo `test -f 'index.c' || echo '$(srcdir)/'`index.c - -zexy_la-length.lo: length.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-length.lo -MD -MP -MF $(DEPDIR)/zexy_la-length.Tpo -c -o zexy_la-length.lo `test -f 'length.c' || echo '$(srcdir)/'`length.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-length.Tpo $(DEPDIR)/zexy_la-length.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='length.c' object='zexy_la-length.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-length.lo `test -f 'length.c' || echo '$(srcdir)/'`length.c - -zexy_la-lifop.lo: lifop.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-lifop.lo -MD -MP -MF $(DEPDIR)/zexy_la-lifop.Tpo -c -o zexy_la-lifop.lo `test -f 'lifop.c' || echo '$(srcdir)/'`lifop.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-lifop.Tpo $(DEPDIR)/zexy_la-lifop.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lifop.c' object='zexy_la-lifop.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-lifop.lo `test -f 'lifop.c' || echo '$(srcdir)/'`lifop.c - -zexy_la-limiter~.lo: limiter~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-limiter~.lo -MD -MP -MF $(DEPDIR)/zexy_la-limiter~.Tpo -c -o zexy_la-limiter~.lo `test -f 'limiter~.c' || echo '$(srcdir)/'`limiter~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-limiter~.Tpo $(DEPDIR)/zexy_la-limiter~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='limiter~.c' object='zexy_la-limiter~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-limiter~.lo `test -f 'limiter~.c' || echo '$(srcdir)/'`limiter~.c - -zexy_la-list2int.lo: list2int.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-list2int.lo -MD -MP -MF $(DEPDIR)/zexy_la-list2int.Tpo -c -o zexy_la-list2int.lo `test -f 'list2int.c' || echo '$(srcdir)/'`list2int.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-list2int.Tpo $(DEPDIR)/zexy_la-list2int.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='list2int.c' object='zexy_la-list2int.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-list2int.lo `test -f 'list2int.c' || echo '$(srcdir)/'`list2int.c - -zexy_la-list2lists.lo: list2lists.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-list2lists.lo -MD -MP -MF $(DEPDIR)/zexy_la-list2lists.Tpo -c -o zexy_la-list2lists.lo `test -f 'list2lists.c' || echo '$(srcdir)/'`list2lists.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-list2lists.Tpo $(DEPDIR)/zexy_la-list2lists.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='list2lists.c' object='zexy_la-list2lists.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-list2lists.lo `test -f 'list2lists.c' || echo '$(srcdir)/'`list2lists.c - -zexy_la-list2symbol.lo: list2symbol.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-list2symbol.lo -MD -MP -MF $(DEPDIR)/zexy_la-list2symbol.Tpo -c -o zexy_la-list2symbol.lo `test -f 'list2symbol.c' || echo '$(srcdir)/'`list2symbol.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-list2symbol.Tpo $(DEPDIR)/zexy_la-list2symbol.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='list2symbol.c' object='zexy_la-list2symbol.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-list2symbol.lo `test -f 'list2symbol.c' || echo '$(srcdir)/'`list2symbol.c - -zexy_la-lister.lo: lister.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-lister.lo -MD -MP -MF $(DEPDIR)/zexy_la-lister.Tpo -c -o zexy_la-lister.lo `test -f 'lister.c' || echo '$(srcdir)/'`lister.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-lister.Tpo $(DEPDIR)/zexy_la-lister.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lister.c' object='zexy_la-lister.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-lister.lo `test -f 'lister.c' || echo '$(srcdir)/'`lister.c - -zexy_la-listfind.lo: listfind.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-listfind.lo -MD -MP -MF $(DEPDIR)/zexy_la-listfind.Tpo -c -o zexy_la-listfind.lo `test -f 'listfind.c' || echo '$(srcdir)/'`listfind.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-listfind.Tpo $(DEPDIR)/zexy_la-listfind.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='listfind.c' object='zexy_la-listfind.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-listfind.lo `test -f 'listfind.c' || echo '$(srcdir)/'`listfind.c - -zexy_la-liststorage.lo: liststorage.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-liststorage.lo -MD -MP -MF $(DEPDIR)/zexy_la-liststorage.Tpo -c -o zexy_la-liststorage.lo `test -f 'liststorage.c' || echo '$(srcdir)/'`liststorage.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-liststorage.Tpo $(DEPDIR)/zexy_la-liststorage.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='liststorage.c' object='zexy_la-liststorage.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-liststorage.lo `test -f 'liststorage.c' || echo '$(srcdir)/'`liststorage.c - -zexy_la-longload.lo: longload.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-longload.lo -MD -MP -MF $(DEPDIR)/zexy_la-longload.Tpo -c -o zexy_la-longload.lo `test -f 'longload.c' || echo '$(srcdir)/'`longload.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-longload.Tpo $(DEPDIR)/zexy_la-longload.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='longload.c' object='zexy_la-longload.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-longload.lo `test -f 'longload.c' || echo '$(srcdir)/'`longload.c - -zexy_la-lpt.lo: lpt.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-lpt.lo -MD -MP -MF $(DEPDIR)/zexy_la-lpt.Tpo -c -o zexy_la-lpt.lo `test -f 'lpt.c' || echo '$(srcdir)/'`lpt.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-lpt.Tpo $(DEPDIR)/zexy_la-lpt.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lpt.c' object='zexy_la-lpt.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-lpt.lo `test -f 'lpt.c' || echo '$(srcdir)/'`lpt.c - -zexy_la-makesymbol.lo: makesymbol.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-makesymbol.lo -MD -MP -MF $(DEPDIR)/zexy_la-makesymbol.Tpo -c -o zexy_la-makesymbol.lo `test -f 'makesymbol.c' || echo '$(srcdir)/'`makesymbol.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-makesymbol.Tpo $(DEPDIR)/zexy_la-makesymbol.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='makesymbol.c' object='zexy_la-makesymbol.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-makesymbol.lo `test -f 'makesymbol.c' || echo '$(srcdir)/'`makesymbol.c - -zexy_la-matchbox.lo: matchbox.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-matchbox.lo -MD -MP -MF $(DEPDIR)/zexy_la-matchbox.Tpo -c -o zexy_la-matchbox.lo `test -f 'matchbox.c' || echo '$(srcdir)/'`matchbox.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-matchbox.Tpo $(DEPDIR)/zexy_la-matchbox.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='matchbox.c' object='zexy_la-matchbox.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-matchbox.lo `test -f 'matchbox.c' || echo '$(srcdir)/'`matchbox.c - -zexy_la-mavg.lo: mavg.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-mavg.lo -MD -MP -MF $(DEPDIR)/zexy_la-mavg.Tpo -c -o zexy_la-mavg.lo `test -f 'mavg.c' || echo '$(srcdir)/'`mavg.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-mavg.Tpo $(DEPDIR)/zexy_la-mavg.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mavg.c' object='zexy_la-mavg.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-mavg.lo `test -f 'mavg.c' || echo '$(srcdir)/'`mavg.c - -zexy_la-minmax.lo: minmax.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-minmax.lo -MD -MP -MF $(DEPDIR)/zexy_la-minmax.Tpo -c -o zexy_la-minmax.lo `test -f 'minmax.c' || echo '$(srcdir)/'`minmax.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-minmax.Tpo $(DEPDIR)/zexy_la-minmax.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='minmax.c' object='zexy_la-minmax.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-minmax.lo `test -f 'minmax.c' || echo '$(srcdir)/'`minmax.c - -zexy_la-msgfile.lo: msgfile.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-msgfile.lo -MD -MP -MF $(DEPDIR)/zexy_la-msgfile.Tpo -c -o zexy_la-msgfile.lo `test -f 'msgfile.c' || echo '$(srcdir)/'`msgfile.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-msgfile.Tpo $(DEPDIR)/zexy_la-msgfile.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='msgfile.c' object='zexy_la-msgfile.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-msgfile.lo `test -f 'msgfile.c' || echo '$(srcdir)/'`msgfile.c - -zexy_la-multiline~.lo: multiline~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-multiline~.lo -MD -MP -MF $(DEPDIR)/zexy_la-multiline~.Tpo -c -o zexy_la-multiline~.lo `test -f 'multiline~.c' || echo '$(srcdir)/'`multiline~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-multiline~.Tpo $(DEPDIR)/zexy_la-multiline~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='multiline~.c' object='zexy_la-multiline~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-multiline~.lo `test -f 'multiline~.c' || echo '$(srcdir)/'`multiline~.c - -zexy_la-multiplex~.lo: multiplex~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-multiplex~.lo -MD -MP -MF $(DEPDIR)/zexy_la-multiplex~.Tpo -c -o zexy_la-multiplex~.lo `test -f 'multiplex~.c' || echo '$(srcdir)/'`multiplex~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-multiplex~.Tpo $(DEPDIR)/zexy_la-multiplex~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='multiplex~.c' object='zexy_la-multiplex~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-multiplex~.lo `test -f 'multiplex~.c' || echo '$(srcdir)/'`multiplex~.c - -zexy_la-multiplex.lo: multiplex.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-multiplex.lo -MD -MP -MF $(DEPDIR)/zexy_la-multiplex.Tpo -c -o zexy_la-multiplex.lo `test -f 'multiplex.c' || echo '$(srcdir)/'`multiplex.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-multiplex.Tpo $(DEPDIR)/zexy_la-multiplex.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='multiplex.c' object='zexy_la-multiplex.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-multiplex.lo `test -f 'multiplex.c' || echo '$(srcdir)/'`multiplex.c - -zexy_la-multireceive.lo: multireceive.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-multireceive.lo -MD -MP -MF $(DEPDIR)/zexy_la-multireceive.Tpo -c -o zexy_la-multireceive.lo `test -f 'multireceive.c' || echo '$(srcdir)/'`multireceive.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-multireceive.Tpo $(DEPDIR)/zexy_la-multireceive.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='multireceive.c' object='zexy_la-multireceive.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-multireceive.lo `test -f 'multireceive.c' || echo '$(srcdir)/'`multireceive.c - -zexy_la-niagara.lo: niagara.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-niagara.lo -MD -MP -MF $(DEPDIR)/zexy_la-niagara.Tpo -c -o zexy_la-niagara.lo `test -f 'niagara.c' || echo '$(srcdir)/'`niagara.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-niagara.Tpo $(DEPDIR)/zexy_la-niagara.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='niagara.c' object='zexy_la-niagara.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-niagara.lo `test -f 'niagara.c' || echo '$(srcdir)/'`niagara.c - -zexy_la-noish~.lo: noish~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-noish~.lo -MD -MP -MF $(DEPDIR)/zexy_la-noish~.Tpo -c -o zexy_la-noish~.lo `test -f 'noish~.c' || echo '$(srcdir)/'`noish~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-noish~.Tpo $(DEPDIR)/zexy_la-noish~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='noish~.c' object='zexy_la-noish~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-noish~.lo `test -f 'noish~.c' || echo '$(srcdir)/'`noish~.c - -zexy_la-noisi~.lo: noisi~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-noisi~.lo -MD -MP -MF $(DEPDIR)/zexy_la-noisi~.Tpo -c -o zexy_la-noisi~.lo `test -f 'noisi~.c' || echo '$(srcdir)/'`noisi~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-noisi~.Tpo $(DEPDIR)/zexy_la-noisi~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='noisi~.c' object='zexy_la-noisi~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-noisi~.lo `test -f 'noisi~.c' || echo '$(srcdir)/'`noisi~.c - -zexy_la-operating_system.lo: operating_system.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-operating_system.lo -MD -MP -MF $(DEPDIR)/zexy_la-operating_system.Tpo -c -o zexy_la-operating_system.lo `test -f 'operating_system.c' || echo '$(srcdir)/'`operating_system.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-operating_system.Tpo $(DEPDIR)/zexy_la-operating_system.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='operating_system.c' object='zexy_la-operating_system.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-operating_system.lo `test -f 'operating_system.c' || echo '$(srcdir)/'`operating_system.c - -zexy_la-pack~.lo: pack~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-pack~.lo -MD -MP -MF $(DEPDIR)/zexy_la-pack~.Tpo -c -o zexy_la-pack~.lo `test -f 'pack~.c' || echo '$(srcdir)/'`pack~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-pack~.Tpo $(DEPDIR)/zexy_la-pack~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pack~.c' object='zexy_la-pack~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-pack~.lo `test -f 'pack~.c' || echo '$(srcdir)/'`pack~.c - -zexy_la-pack.lo: pack.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-pack.lo -MD -MP -MF $(DEPDIR)/zexy_la-pack.Tpo -c -o zexy_la-pack.lo `test -f 'pack.c' || echo '$(srcdir)/'`pack.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-pack.Tpo $(DEPDIR)/zexy_la-pack.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pack.c' object='zexy_la-pack.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-pack.lo `test -f 'pack.c' || echo '$(srcdir)/'`pack.c - -zexy_la-packel.lo: packel.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-packel.lo -MD -MP -MF $(DEPDIR)/zexy_la-packel.Tpo -c -o zexy_la-packel.lo `test -f 'packel.c' || echo '$(srcdir)/'`packel.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-packel.Tpo $(DEPDIR)/zexy_la-packel.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='packel.c' object='zexy_la-packel.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-packel.lo `test -f 'packel.c' || echo '$(srcdir)/'`packel.c - -zexy_la-pdf~.lo: pdf~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-pdf~.lo -MD -MP -MF $(DEPDIR)/zexy_la-pdf~.Tpo -c -o zexy_la-pdf~.lo `test -f 'pdf~.c' || echo '$(srcdir)/'`pdf~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-pdf~.Tpo $(DEPDIR)/zexy_la-pdf~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pdf~.c' object='zexy_la-pdf~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-pdf~.lo `test -f 'pdf~.c' || echo '$(srcdir)/'`pdf~.c - -zexy_la-prime.lo: prime.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-prime.lo -MD -MP -MF $(DEPDIR)/zexy_la-prime.Tpo -c -o zexy_la-prime.lo `test -f 'prime.c' || echo '$(srcdir)/'`prime.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-prime.Tpo $(DEPDIR)/zexy_la-prime.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='prime.c' object='zexy_la-prime.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-prime.lo `test -f 'prime.c' || echo '$(srcdir)/'`prime.c - -zexy_la-quantize~.lo: quantize~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-quantize~.lo -MD -MP -MF $(DEPDIR)/zexy_la-quantize~.Tpo -c -o zexy_la-quantize~.lo `test -f 'quantize~.c' || echo '$(srcdir)/'`quantize~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-quantize~.Tpo $(DEPDIR)/zexy_la-quantize~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='quantize~.c' object='zexy_la-quantize~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-quantize~.lo `test -f 'quantize~.c' || echo '$(srcdir)/'`quantize~.c - -zexy_la-rawprint.lo: rawprint.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-rawprint.lo -MD -MP -MF $(DEPDIR)/zexy_la-rawprint.Tpo -c -o zexy_la-rawprint.lo `test -f 'rawprint.c' || echo '$(srcdir)/'`rawprint.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-rawprint.Tpo $(DEPDIR)/zexy_la-rawprint.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='rawprint.c' object='zexy_la-rawprint.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-rawprint.lo `test -f 'rawprint.c' || echo '$(srcdir)/'`rawprint.c - -zexy_la-regex.lo: regex.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-regex.lo -MD -MP -MF $(DEPDIR)/zexy_la-regex.Tpo -c -o zexy_la-regex.lo `test -f 'regex.c' || echo '$(srcdir)/'`regex.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-regex.Tpo $(DEPDIR)/zexy_la-regex.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regex.c' object='zexy_la-regex.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-regex.lo `test -f 'regex.c' || echo '$(srcdir)/'`regex.c - -zexy_la-relay.lo: relay.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-relay.lo -MD -MP -MF $(DEPDIR)/zexy_la-relay.Tpo -c -o zexy_la-relay.lo `test -f 'relay.c' || echo '$(srcdir)/'`relay.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-relay.Tpo $(DEPDIR)/zexy_la-relay.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='relay.c' object='zexy_la-relay.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-relay.lo `test -f 'relay.c' || echo '$(srcdir)/'`relay.c - -zexy_la-repack.lo: repack.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-repack.lo -MD -MP -MF $(DEPDIR)/zexy_la-repack.Tpo -c -o zexy_la-repack.lo `test -f 'repack.c' || echo '$(srcdir)/'`repack.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-repack.Tpo $(DEPDIR)/zexy_la-repack.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='repack.c' object='zexy_la-repack.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-repack.lo `test -f 'repack.c' || echo '$(srcdir)/'`repack.c - -zexy_la-repeat.lo: repeat.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-repeat.lo -MD -MP -MF $(DEPDIR)/zexy_la-repeat.Tpo -c -o zexy_la-repeat.lo `test -f 'repeat.c' || echo '$(srcdir)/'`repeat.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-repeat.Tpo $(DEPDIR)/zexy_la-repeat.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='repeat.c' object='zexy_la-repeat.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-repeat.lo `test -f 'repeat.c' || echo '$(srcdir)/'`repeat.c - -zexy_la-route~.lo: route~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-route~.lo -MD -MP -MF $(DEPDIR)/zexy_la-route~.Tpo -c -o zexy_la-route~.lo `test -f 'route~.c' || echo '$(srcdir)/'`route~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-route~.Tpo $(DEPDIR)/zexy_la-route~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='route~.c' object='zexy_la-route~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-route~.lo `test -f 'route~.c' || echo '$(srcdir)/'`route~.c - -zexy_la-sfplay.lo: sfplay.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-sfplay.lo -MD -MP -MF $(DEPDIR)/zexy_la-sfplay.Tpo -c -o zexy_la-sfplay.lo `test -f 'sfplay.c' || echo '$(srcdir)/'`sfplay.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-sfplay.Tpo $(DEPDIR)/zexy_la-sfplay.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sfplay.c' object='zexy_la-sfplay.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-sfplay.lo `test -f 'sfplay.c' || echo '$(srcdir)/'`sfplay.c - -zexy_la-sfrecord.lo: sfrecord.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-sfrecord.lo -MD -MP -MF $(DEPDIR)/zexy_la-sfrecord.Tpo -c -o zexy_la-sfrecord.lo `test -f 'sfrecord.c' || echo '$(srcdir)/'`sfrecord.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-sfrecord.Tpo $(DEPDIR)/zexy_la-sfrecord.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sfrecord.c' object='zexy_la-sfrecord.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-sfrecord.lo `test -f 'sfrecord.c' || echo '$(srcdir)/'`sfrecord.c - -zexy_la-sgn~.lo: sgn~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-sgn~.lo -MD -MP -MF $(DEPDIR)/zexy_la-sgn~.Tpo -c -o zexy_la-sgn~.lo `test -f 'sgn~.c' || echo '$(srcdir)/'`sgn~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-sgn~.Tpo $(DEPDIR)/zexy_la-sgn~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sgn~.c' object='zexy_la-sgn~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-sgn~.lo `test -f 'sgn~.c' || echo '$(srcdir)/'`sgn~.c - -zexy_la-sigzero~.lo: sigzero~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-sigzero~.lo -MD -MP -MF $(DEPDIR)/zexy_la-sigzero~.Tpo -c -o zexy_la-sigzero~.lo `test -f 'sigzero~.c' || echo '$(srcdir)/'`sigzero~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-sigzero~.Tpo $(DEPDIR)/zexy_la-sigzero~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sigzero~.c' object='zexy_la-sigzero~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-sigzero~.lo `test -f 'sigzero~.c' || echo '$(srcdir)/'`sigzero~.c - -zexy_la-sleepgrain.lo: sleepgrain.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-sleepgrain.lo -MD -MP -MF $(DEPDIR)/zexy_la-sleepgrain.Tpo -c -o zexy_la-sleepgrain.lo `test -f 'sleepgrain.c' || echo '$(srcdir)/'`sleepgrain.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-sleepgrain.Tpo $(DEPDIR)/zexy_la-sleepgrain.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sleepgrain.c' object='zexy_la-sleepgrain.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-sleepgrain.lo `test -f 'sleepgrain.c' || echo '$(srcdir)/'`sleepgrain.c - -zexy_la-sort.lo: sort.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-sort.lo -MD -MP -MF $(DEPDIR)/zexy_la-sort.Tpo -c -o zexy_la-sort.lo `test -f 'sort.c' || echo '$(srcdir)/'`sort.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-sort.Tpo $(DEPDIR)/zexy_la-sort.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sort.c' object='zexy_la-sort.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-sort.lo `test -f 'sort.c' || echo '$(srcdir)/'`sort.c - -zexy_la-step~.lo: step~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-step~.lo -MD -MP -MF $(DEPDIR)/zexy_la-step~.Tpo -c -o zexy_la-step~.lo `test -f 'step~.c' || echo '$(srcdir)/'`step~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-step~.Tpo $(DEPDIR)/zexy_la-step~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='step~.c' object='zexy_la-step~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-step~.lo `test -f 'step~.c' || echo '$(srcdir)/'`step~.c - -zexy_la-strcmp.lo: strcmp.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-strcmp.lo -MD -MP -MF $(DEPDIR)/zexy_la-strcmp.Tpo -c -o zexy_la-strcmp.lo `test -f 'strcmp.c' || echo '$(srcdir)/'`strcmp.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-strcmp.Tpo $(DEPDIR)/zexy_la-strcmp.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='strcmp.c' object='zexy_la-strcmp.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-strcmp.lo `test -f 'strcmp.c' || echo '$(srcdir)/'`strcmp.c - -zexy_la-sum.lo: sum.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-sum.lo -MD -MP -MF $(DEPDIR)/zexy_la-sum.Tpo -c -o zexy_la-sum.lo `test -f 'sum.c' || echo '$(srcdir)/'`sum.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-sum.Tpo $(DEPDIR)/zexy_la-sum.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sum.c' object='zexy_la-sum.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-sum.lo `test -f 'sum.c' || echo '$(srcdir)/'`sum.c - -zexy_la-swap~.lo: swap~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-swap~.lo -MD -MP -MF $(DEPDIR)/zexy_la-swap~.Tpo -c -o zexy_la-swap~.lo `test -f 'swap~.c' || echo '$(srcdir)/'`swap~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-swap~.Tpo $(DEPDIR)/zexy_la-swap~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='swap~.c' object='zexy_la-swap~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-swap~.lo `test -f 'swap~.c' || echo '$(srcdir)/'`swap~.c - -zexy_la-symbol2list.lo: symbol2list.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-symbol2list.lo -MD -MP -MF $(DEPDIR)/zexy_la-symbol2list.Tpo -c -o zexy_la-symbol2list.lo `test -f 'symbol2list.c' || echo '$(srcdir)/'`symbol2list.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-symbol2list.Tpo $(DEPDIR)/zexy_la-symbol2list.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='symbol2list.c' object='zexy_la-symbol2list.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-symbol2list.lo `test -f 'symbol2list.c' || echo '$(srcdir)/'`symbol2list.c - -zexy_la-tabdump.lo: tabdump.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-tabdump.lo -MD -MP -MF $(DEPDIR)/zexy_la-tabdump.Tpo -c -o zexy_la-tabdump.lo `test -f 'tabdump.c' || echo '$(srcdir)/'`tabdump.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-tabdump.Tpo $(DEPDIR)/zexy_la-tabdump.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tabdump.c' object='zexy_la-tabdump.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-tabdump.lo `test -f 'tabdump.c' || echo '$(srcdir)/'`tabdump.c - -zexy_la-tabminmax.lo: tabminmax.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-tabminmax.lo -MD -MP -MF $(DEPDIR)/zexy_la-tabminmax.Tpo -c -o zexy_la-tabminmax.lo `test -f 'tabminmax.c' || echo '$(srcdir)/'`tabminmax.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-tabminmax.Tpo $(DEPDIR)/zexy_la-tabminmax.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tabminmax.c' object='zexy_la-tabminmax.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-tabminmax.lo `test -f 'tabminmax.c' || echo '$(srcdir)/'`tabminmax.c - -zexy_la-tabread4~~.lo: tabread4~~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-tabread4~~.lo -MD -MP -MF $(DEPDIR)/zexy_la-tabread4~~.Tpo -c -o zexy_la-tabread4~~.lo `test -f 'tabread4~~.c' || echo '$(srcdir)/'`tabread4~~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-tabread4~~.Tpo $(DEPDIR)/zexy_la-tabread4~~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tabread4~~.c' object='zexy_la-tabread4~~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-tabread4~~.lo `test -f 'tabread4~~.c' || echo '$(srcdir)/'`tabread4~~.c - -zexy_la-tabset.lo: tabset.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-tabset.lo -MD -MP -MF $(DEPDIR)/zexy_la-tabset.Tpo -c -o zexy_la-tabset.lo `test -f 'tabset.c' || echo '$(srcdir)/'`tabset.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-tabset.Tpo $(DEPDIR)/zexy_la-tabset.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tabset.c' object='zexy_la-tabset.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-tabset.lo `test -f 'tabset.c' || echo '$(srcdir)/'`tabset.c - -zexy_la-tavg~.lo: tavg~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-tavg~.lo -MD -MP -MF $(DEPDIR)/zexy_la-tavg~.Tpo -c -o zexy_la-tavg~.lo `test -f 'tavg~.c' || echo '$(srcdir)/'`tavg~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-tavg~.Tpo $(DEPDIR)/zexy_la-tavg~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tavg~.c' object='zexy_la-tavg~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-tavg~.lo `test -f 'tavg~.c' || echo '$(srcdir)/'`tavg~.c - -zexy_la-time.lo: time.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-time.lo -MD -MP -MF $(DEPDIR)/zexy_la-time.Tpo -c -o zexy_la-time.lo `test -f 'time.c' || echo '$(srcdir)/'`time.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-time.Tpo $(DEPDIR)/zexy_la-time.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='time.c' object='zexy_la-time.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-time.lo `test -f 'time.c' || echo '$(srcdir)/'`time.c - -zexy_la-unpack~.lo: unpack~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-unpack~.lo -MD -MP -MF $(DEPDIR)/zexy_la-unpack~.Tpo -c -o zexy_la-unpack~.lo `test -f 'unpack~.c' || echo '$(srcdir)/'`unpack~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-unpack~.Tpo $(DEPDIR)/zexy_la-unpack~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='unpack~.c' object='zexy_la-unpack~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-unpack~.lo `test -f 'unpack~.c' || echo '$(srcdir)/'`unpack~.c - -zexy_la-unpack.lo: unpack.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-unpack.lo -MD -MP -MF $(DEPDIR)/zexy_la-unpack.Tpo -c -o zexy_la-unpack.lo `test -f 'unpack.c' || echo '$(srcdir)/'`unpack.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-unpack.Tpo $(DEPDIR)/zexy_la-unpack.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='unpack.c' object='zexy_la-unpack.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-unpack.lo `test -f 'unpack.c' || echo '$(srcdir)/'`unpack.c - -zexy_la-urn.lo: urn.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-urn.lo -MD -MP -MF $(DEPDIR)/zexy_la-urn.Tpo -c -o zexy_la-urn.lo `test -f 'urn.c' || echo '$(srcdir)/'`urn.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-urn.Tpo $(DEPDIR)/zexy_la-urn.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='urn.c' object='zexy_la-urn.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-urn.lo `test -f 'urn.c' || echo '$(srcdir)/'`urn.c - -zexy_la-wrap.lo: wrap.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-wrap.lo -MD -MP -MF $(DEPDIR)/zexy_la-wrap.Tpo -c -o zexy_la-wrap.lo `test -f 'wrap.c' || echo '$(srcdir)/'`wrap.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-wrap.Tpo $(DEPDIR)/zexy_la-wrap.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='wrap.c' object='zexy_la-wrap.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-wrap.lo `test -f 'wrap.c' || echo '$(srcdir)/'`wrap.c - -zexy_la-z~.lo: z~.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-z~.lo -MD -MP -MF $(DEPDIR)/zexy_la-z~.Tpo -c -o zexy_la-z~.lo `test -f 'z~.c' || echo '$(srcdir)/'`z~.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-z~.Tpo $(DEPDIR)/zexy_la-z~.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='z~.c' object='zexy_la-z~.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-z~.lo `test -f 'z~.c' || echo '$(srcdir)/'`z~.c - -zexy_la-winNT_portio.lo: winNT_portio.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT zexy_la-winNT_portio.lo -MD -MP -MF $(DEPDIR)/zexy_la-winNT_portio.Tpo -c -o zexy_la-winNT_portio.lo `test -f 'winNT_portio.c' || echo '$(srcdir)/'`winNT_portio.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/zexy_la-winNT_portio.Tpo $(DEPDIR)/zexy_la-winNT_portio.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='winNT_portio.c' object='zexy_la-winNT_portio.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zexy_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o zexy_la-winNT_portio.lo `test -f 'winNT_portio.c' || echo '$(srcdir)/'`winNT_portio.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: - for dir in "$(DESTDIR)$(pkglibdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pkglibLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-pkglibLTLIBRARIES - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pkglibLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pkglibLTLIBRARIES ctags distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-pkglibLTLIBRARIES \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-pkglibLTLIBRARIES - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/externals/zexy/src/a2l.c b/externals/zexy/src/a2l.c index 2621b73ed5893e738934be4e44ced56764c45f6d..0f9b9044032c827cb9f88a17170d96423ecb998a 100644 --- a/externals/zexy/src/a2l.c +++ b/externals/zexy/src/a2l.c @@ -1,4 +1,4 @@ -/* +/* * a2l: convert anythings to lists (use [list] instead) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -22,8 +22,7 @@ static t_class *a2l_class; -typedef struct _a2l -{ +typedef struct _a2l { t_object x_obj; } t_a2l; @@ -45,19 +44,29 @@ static void a2l_anything(t_a2l *x, t_symbol *s, int argc, t_atom *argv) } static void a2l_list(t_a2l *x, t_symbol *s, int argc, t_atom *argv) -{ outlet_list(x->x_obj.ob_outlet, s, argc, argv);} +{ + outlet_list(x->x_obj.ob_outlet, s, argc, argv); +} static void a2l_float(t_a2l *x, t_floatarg f) -{ outlet_float(x->x_obj.ob_outlet, f);} +{ + outlet_float(x->x_obj.ob_outlet, f); +} static void a2l_symbol(t_a2l *x, t_symbol *s) -{ outlet_symbol(x->x_obj.ob_outlet, s);} +{ + outlet_symbol(x->x_obj.ob_outlet, s); +} static void a2l_pointer(t_a2l *x, t_gpointer *gp) -{ outlet_pointer(x->x_obj.ob_outlet, gp);} +{ + outlet_pointer(x->x_obj.ob_outlet, gp); +} static void a2l_bang(t_a2l *x) -{ outlet_bang(x->x_obj.ob_outlet);} +{ + outlet_bang(x->x_obj.ob_outlet); +} static void *a2l_new(void) { @@ -68,9 +77,9 @@ static void *a2l_new(void) void a2l_setup(void) { - - a2l_class = class_new(gensym("a2l"), (t_newmethod)a2l_new, - 0, sizeof(t_a2l), 0, 0); + + a2l_class = class_new(gensym("a2l"), (t_newmethod)a2l_new, + 0, sizeof(t_a2l), 0, 0); class_addcreator((t_newmethod)a2l_new, gensym("any2list"), 0); diff --git a/externals/zexy/src/absgn~.c b/externals/zexy/src/absgn~.c index 1c7ec9a62f17f4ce6b47aad2b4d1eff2cf82a194..94eb3ecc6cb862a29c9c2d70e8b05959f1639da1 100644 --- a/externals/zexy/src/absgn~.c +++ b/externals/zexy/src/absgn~.c @@ -1,4 +1,4 @@ -/* +/* * absgn~: combined absolute value and sign of a signal * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,20 +7,19 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "zexySIMD.h" -typedef struct _absgn -{ +typedef struct _absgn { t_object x_obj; t_float x_f; } t_absgn; @@ -36,38 +35,41 @@ static t_int *sigABSGN_perform(t_int *w) t_sample *out = (t_sample *)(w[2]); t_sample *out2 = (t_sample *)(w[3]); int n = (int)(w[4]); - - while (n--) - { - t_sample val = *in++; - *out++ = fabsf(val); - - if (val>0.) *out2++=1.; - else if (val<0.) *out2++=-1.; - else *out2++=0.; + + while (n--) { + t_sample val = *in++; + *out++ = fabsf(val); + + if (val>0.) { + *out2++=1.; + } else if (val<0.) { + *out2++=-1.; + } else { + *out2++=0.; } + } + - return (w+5); } #ifdef __SSE__ -static int l_bitmask[] ={0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff}; -static int l_sgnbitmask[]={0x80000000, 0x80000000, 0x80000000, 0x80000000}; +static int l_bitmask[] = {0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff}; +static int l_sgnbitmask[]= {0x80000000, 0x80000000, 0x80000000, 0x80000000}; static t_int *sigABSGN_performSSE(t_int *w) { __m128 *in = (__m128 *)(w[1]); __m128 *out1 = (__m128 *)(w[2]); __m128 *out2 = (__m128 *)(w[3]); int n = (int)(w[4])>>3; - + const __m128 bitmask= _mm_loadu_ps((float*)l_bitmask); const __m128 sgnmask= _mm_loadu_ps((float*)l_sgnbitmask); const __m128 zero = _mm_setzero_ps(); const __m128 one = _mm_set1_ps(1.f); - + do { - __m128 val, val2, xmm0, xmm1, xmm2, xmm3; + __m128 val, val2, xmm0, xmm1, xmm2, xmm3; val=in[0]; xmm0 = _mm_cmpneq_ps(val, zero); /* mask for non-zeros */ xmm1 = _mm_and_ps (val, sgnmask);/* sign (without value) */ @@ -85,8 +87,7 @@ static t_int *sigABSGN_performSSE(t_int *w) in +=2; out1+=2; out2+=2; - } - while (--n); + } while (--n); return (w+5); } @@ -96,25 +97,27 @@ static void sigABSGN_dsp(t_absgn* UNUSED(x), t_signal **sp) { #ifdef __SSE__ if( - ZEXY_TYPE_EQUAL(t_sample, float) && /* currently SSE2 code is only for float (not for double) */ - Z_SIMD_CHKBLOCKSIZE(sp[0]->s_n) && - Z_SIMD_CHKALIGN(sp[0]->s_vec) && - Z_SIMD_CHKALIGN(sp[1]->s_vec) && - Z_SIMD_CHKALIGN(sp[2]->s_vec) && - zexy_testSSE(sigABSGN_perform, sigABSGN_performSSE, 1, 2) - ) - { - dsp_add(sigABSGN_performSSE, 4, sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n); - } else + ZEXY_TYPE_EQUAL(t_sample, float) + && /* currently SSE2 code is only for float (not for double) */ + Z_SIMD_CHKBLOCKSIZE(sp[0]->s_n) && + Z_SIMD_CHKALIGN(sp[0]->s_vec) && + Z_SIMD_CHKALIGN(sp[1]->s_vec) && + Z_SIMD_CHKALIGN(sp[2]->s_vec) && + zexy_testSSE(sigABSGN_perform, sigABSGN_performSSE, 1, 2) + ) { + dsp_add(sigABSGN_performSSE, 4, sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, + sp[0]->s_n); + } else #endif - { - dsp_add(sigABSGN_perform, 4, sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n); - } + { + dsp_add(sigABSGN_perform, 4, sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, + sp[0]->s_n); + } } static void sigABSGN_helper(void) { - post("\n"HEARTSYMBOL" absgn~ \t\t:: absolute value and sign of a signal"); + post("\n"HEARTSYMBOL " absgn~ \t\t:: absolute value and sign of a signal"); post(" \t\t copyright (c) Tim Blechmann 2006"); } @@ -134,9 +137,10 @@ void absgn_tilde_setup(void) sigABSGN_class = class_new(gensym("absgn~"), (t_newmethod)sigABSGN_new, 0, sizeof(t_absgn), 0, A_DEFFLOAT, 0); CLASS_MAINSIGNALIN(sigABSGN_class, t_absgn, x_f); - class_addmethod(sigABSGN_class, (t_method)sigABSGN_dsp, gensym("dsp"), A_CANT, 0); - - class_addmethod(sigABSGN_class, (t_method)sigABSGN_helper, gensym("help"), 0); + class_addmethod(sigABSGN_class, (t_method)sigABSGN_dsp, gensym("dsp"), 0); + + class_addmethod(sigABSGN_class, (t_method)sigABSGN_helper, gensym("help"), + 0); class_sethelpsymbol(sigABSGN_class, gensym("zigbinops")); zexy_register("absgn~"); diff --git a/externals/zexy/src/abs~.c b/externals/zexy/src/abs~.c index 1e59bd0b764df4038c5df131fabf52d3cb493f58..69122a928ee71b4075f020b631afd20e00b87ed2 100644 --- a/externals/zexy/src/abs~.c +++ b/externals/zexy/src/abs~.c @@ -1,4 +1,4 @@ -/* +/* * abs~: absolute value for signals * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -20,8 +20,7 @@ #include "zexySIMD.h" -typedef struct _abs -{ +typedef struct _abs { t_object x_obj; t_float x_f; } t_abs; @@ -36,14 +35,16 @@ static t_int *sigABS_perform(t_int *w) t_sample *in = (t_sample *)(w[1]); t_sample *out = (t_sample *)(w[2]); int n = (int)(w[3]); - - while (n--) *out++ = fabsf(*in++); - + + while (n--) { + *out++ = fabsf(*in++); + } + return (w+4); } #ifdef __SSE__ -static int l_bitmask[]={0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff}; +static int l_bitmask[]= {0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff}; static t_int *sigABS_performSSE(t_int *w) { __m128 *in = (__m128 *)(w[1]); @@ -72,43 +73,43 @@ static t_int *sigABS_performSSE(t_int *w) * assembler */ asm( - ".section .rodata \n" - ".align 16 \n" - "2: \n" - ".long 2147483647 \n" /* bitmask */ - ".long 2147483647 \n" /* 0x7fffffff */ - ".long 2147483647 \n" - ".long 2147483647 \n" - - ".text \n" - - "movaps (2b), %%xmm0 \n" /* xmm0 = bitmask */ - "shrl $4, %2 \n" - - /* loop: *dest = abs(*src) */ - "1: \n" - "movaps (%0,%3), %%xmm1 \n" - "andps %%xmm0, %%xmm1 \n" - "movaps %%xmm1, (%1,%3) \n" - - "movaps 16(%0,%3), %%xmm2 \n" - "andps %%xmm0, %%xmm2 \n" - "movaps %%xmm2, 16(%1,%3) \n" - - "movaps 32(%0,%3), %%xmm3 \n" - "andps %%xmm0, %%xmm3 \n" - "movaps %%xmm3, 32(%1,%3) \n" - - "movaps 48(%0,%3), %%xmm4 \n" - "andps %%xmm0, %%xmm4 \n" - "movaps %%xmm4, 48(%1,%3) \n" - - "addl $64, %3 \n" - "loop 1b \n" - : - :"r"(in), "r"(out), "c"(n), "r"(0) - :"%xmm0", "%xmm1", "%xmm2", "%xmm3", "%xmm4" - ); + ".section .rodata \n" + ".align 16 \n" + "2: \n" + ".long 2147483647 \n" /* bitmask */ + ".long 2147483647 \n" /* 0x7fffffff */ + ".long 2147483647 \n" + ".long 2147483647 \n" + + ".text \n" + + "movaps (2b), %%xmm0 \n" /* xmm0 = bitmask */ + "shrl $4, %2 \n" + + /* loop: *dest = abs(*src) */ + "1: \n" + "movaps (%0,%3), %%xmm1 \n" + "andps %%xmm0, %%xmm1 \n" + "movaps %%xmm1, (%1,%3) \n" + + "movaps 16(%0,%3), %%xmm2 \n" + "andps %%xmm0, %%xmm2 \n" + "movaps %%xmm2, 16(%1,%3) \n" + + "movaps 32(%0,%3), %%xmm3 \n" + "andps %%xmm0, %%xmm3 \n" + "movaps %%xmm3, 32(%1,%3) \n" + + "movaps 48(%0,%3), %%xmm4 \n" + "andps %%xmm0, %%xmm4 \n" + "movaps %%xmm4, 48(%1,%3) \n" + + "addl $64, %3 \n" + "loop 1b \n" + : + :"r"(in), "r"(out), "c"(n), "r"(0) + :"%xmm0", "%xmm1", "%xmm2", "%xmm3", "%xmm4" + ); #endif /*0*/ return (w+4); @@ -119,23 +120,25 @@ static void sigABS_dsp(t_abs *x, t_signal **sp) { #ifdef __SSE__ if( - ZEXY_TYPE_EQUAL(t_sample, float) && - zexy_testSSE(sigABS_perform, - sigABS_performSSE, - 1, 1) - ) - { - dsp_add(sigABS_performSSE, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); - } else + Z_SIMD_CHKBLOCKSIZE(sp[0]->s_n) && + Z_SIMD_CHKALIGN(sp[0]->s_vec) && + Z_SIMD_CHKALIGN(sp[1]->s_vec) && + ZEXY_TYPE_EQUAL(t_sample, float) && + zexy_testSSE(sigABS_perform, + sigABS_performSSE, + 1, 1) + ) { + dsp_add(sigABS_performSSE, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); + } else #endif - { - dsp_add(sigABS_perform, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); - } + { + dsp_add(sigABS_perform, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); + } } static void sigABS_helper(void) { - post("\n"HEARTSYMBOL" abs~ \t\t:: absolute value of a signal"); + post("\n"HEARTSYMBOL " abs~ \t\t:: absolute value of a signal"); } static void *sigABS_new(void) @@ -150,10 +153,10 @@ static void *sigABS_new(void) void abs_tilde_setup(void) { sigABS_class = class_new(gensym("abs~"), (t_newmethod)sigABS_new, 0, - sizeof(t_abs), 0, A_DEFFLOAT, 0); + sizeof(t_abs), 0, A_DEFFLOAT, 0); CLASS_MAINSIGNALIN(sigABS_class, t_abs, x_f); - class_addmethod(sigABS_class, (t_method)sigABS_dsp, gensym("dsp"), A_CANT, 0); - + class_addmethod(sigABS_class, (t_method)sigABS_dsp, gensym("dsp"), 0); + class_addmethod(sigABS_class, (t_method)sigABS_helper, gensym("help"), 0); class_sethelpsymbol(sigABS_class, gensym("zigbinops")); diff --git a/externals/zexy/src/acinclude.m4 b/externals/zexy/src/acinclude.m4 index 7922bc8d56f84a396fe8d74883b8882471c9361e..14b472d0c21b58fe36f484c8cab03a471616a714 100644 --- a/externals/zexy/src/acinclude.m4 +++ b/externals/zexy/src/acinclude.m4 @@ -1,5 +1,5 @@ -dnl Copyright (C) 2005-2006 IOhannes m zmölnig -dnl This file is free software; IOhannes m zmölnig +dnl Copyright (C) 2005-2006 IOhannes m zmölnig +dnl This file is free software; IOhannes m zmölnig dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/externals/zexy/src/astyle.rc b/externals/zexy/src/astyle.rc new file mode 100644 index 0000000000000000000000000000000000000000..0c0c1bc38203b445d70a78c789f5c3dd4157ce0a --- /dev/null +++ b/externals/zexy/src/astyle.rc @@ -0,0 +1,16 @@ +## asytyle configuration for zexy +# usage: astyle --options=astyle.conf *.c *.h + +## CRLF line-ending +lineend=linux + +## make sure that code fits on an old-school terminal +max-code-length=75 +# maximum indentation on continuation lines +max-instatement-indent=40 + +## "One True Brace Style" +style=1tbs + +## hardly an indentation +indent=spaces=2 diff --git a/externals/zexy/src/atof.c b/externals/zexy/src/atof.c index 1f95c35c4449536663e3df2dee5e10fb768b8c0b..8311d8333640870a8671370ce276df51207ab58a 100644 --- a/externals/zexy/src/atof.c +++ b/externals/zexy/src/atof.c @@ -1,4 +1,4 @@ -/* +/* * atof: ascii to A_FLOAT converter * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -23,8 +23,7 @@ static t_class *atof_class; -typedef struct _atof -{ +typedef struct _atof { t_object x_obj; t_float x_f; t_outlet*x_reject; @@ -50,20 +49,22 @@ static void atof_symbol(t_atof *x, t_symbol *sym) outlet_symbol(x->x_reject, sym); } } -static void atof_list(t_atof *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void atof_list(t_atof *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { - if(!argc){ + if(!argc) { atof_bang(x); return; } - if (argv->a_type==A_FLOAT){ + if (argv->a_type==A_FLOAT) { atof_float(x, atom_getfloat(argv)); return; } atof_symbol(x, atom_getsymbol(argv)); } -static void atof_free(t_atof*x) { +static void atof_free(t_atof*x) +{ outlet_free(x->x_reject); x->x_reject=NULL; } @@ -78,8 +79,9 @@ static void *atof_new(void) void atof_setup(void) { - atof_class = class_new(gensym("atof"), (t_newmethod)atof_new, (t_method)atof_free, - sizeof(t_atof), 0, A_DEFFLOAT, 0); + atof_class = class_new(gensym("atof"), (t_newmethod)atof_new, + (t_method)atof_free, + sizeof(t_atof), 0, A_DEFFLOAT, 0); class_addbang(atof_class, (t_method)atof_bang); class_addfloat(atof_class, (t_method)atof_float); diff --git a/externals/zexy/src/atoi.c b/externals/zexy/src/atoi.c index 153b303b5ee2770d877ab8b35d605ed125933814..17e6b99fa1039d01039756f6f833ebec7a750bbf 100644 --- a/externals/zexy/src/atoi.c +++ b/externals/zexy/src/atoi.c @@ -1,4 +1,4 @@ -/* +/* * atoi: ascii to integer converter * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -23,8 +23,7 @@ static t_class *atoi_class; -typedef struct _atoi -{ +typedef struct _atoi { t_object x_obj; int x_i; t_outlet*x_reject; @@ -39,36 +38,40 @@ static void atoi_float(t_atoi *x, t_float f) x->x_i = f; atoi_bang(x); } -static void atoi_atoi(t_atoi *x, t_symbol*s, int base) { +static void atoi_atoi(t_atoi *x, t_symbol*s, int base) +{ char*endptr=NULL; const char*str=s->s_name; long l=strtol(str, &endptr, base); size_t len=strlen(str); - if(str+len == endptr) + if(str+len == endptr) { atoi_float(x, l); - else + } else { outlet_symbol(x->x_reject, s); + } } static void atoi_symbol(t_atoi *x, t_symbol *sym) { int base=10; const char* s = sym->s_name; - if(s[0]=='0'){ + if(s[0]=='0') { base=8; - if (s[1]=='x')base=16; + if (s[1]=='x') { + base=16; + } } atoi_atoi(x, sym, base); } static void atoi_list(t_atoi *x, t_symbol* s, int argc, t_atom *argv) { int base=10; - if (argv->a_type==A_FLOAT){ + if (argv->a_type==A_FLOAT) { atoi_float(x, atom_getfloat(argv)); return; } - - if (argc>1){ + + if (argc>1) { base=atom_getfloat(argv+1); if (base<2) { error("atoi: setting base to 10"); @@ -78,7 +81,8 @@ static void atoi_list(t_atoi *x, t_symbol* s, int argc, t_atom *argv) atoi_atoi(x, s, base); } -static void atoi_free(t_atoi *x){ +static void atoi_free(t_atoi *x) +{ outlet_free(x->x_reject); x->x_reject=NULL; } @@ -93,8 +97,9 @@ static void *atoi_new(void) void atoi_setup(void) { - atoi_class = class_new(gensym("atoi"), (t_newmethod)atoi_new, (t_method)atoi_free, - sizeof(t_atoi), 0, A_DEFFLOAT, 0); + atoi_class = class_new(gensym("atoi"), (t_newmethod)atoi_new, + (t_method)atoi_free, + sizeof(t_atoi), 0, A_DEFFLOAT, 0); class_addbang(atoi_class, (t_method)atoi_bang); class_addfloat(atoi_class, (t_method)atoi_float); diff --git a/externals/zexy/src/avg~.c b/externals/zexy/src/avg~.c index 9ecdc20373568be1d6e2e547a9873f38a613c025..3e68c4c4b8605a134be4e5a7b5776ab7af49de03 100644 --- a/externals/zexy/src/avg~.c +++ b/externals/zexy/src/avg~.c @@ -1,4 +1,4 @@ -/* +/* * avg~: calculate the average of a signal block * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -25,8 +25,7 @@ static t_class *avg_class; -typedef struct _avg -{ +typedef struct _avg { t_object x_obj; t_float n_inv; @@ -45,10 +44,9 @@ static t_int *avg_perform(t_int *w) t_sample buf = 0.; - while (n--) - { - buf += *in++; - } + while (n--) { + buf += *in++; + } outlet_float(x->x_obj.ob_outlet, buf*x->n_inv); return (w+4); @@ -78,7 +76,7 @@ void avg_tilde_setup(void) avg_class = class_new(gensym("avg~"), (t_newmethod)avg_new, 0, sizeof(t_avg), 0, A_DEFFLOAT, 0); class_addmethod(avg_class, nullfn, gensym("signal"), 0); - class_addmethod(avg_class, (t_method)avg_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(avg_class, (t_method)avg_dsp, gensym("dsp"), 0); class_addmethod(avg_class, (t_method)avg_help, gensym("help"), 0); zexy_register("avg~"); diff --git a/externals/zexy/src/blockmirror~.c b/externals/zexy/src/blockmirror~.c index 0d89baada2bc04c886d10b81f7a3d00daf72bb38..c62c4365d7b73c4752a2c722a694f87cc73ac40f 100644 --- a/externals/zexy/src/blockmirror~.c +++ b/externals/zexy/src/blockmirror~.c @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -28,8 +28,7 @@ static t_class *blockmirror_class; -typedef struct _blockmirror -{ +typedef struct _blockmirror { t_object x_obj; int doit; int blocksize; @@ -48,24 +47,34 @@ static t_int *blockmirror_perform(t_int *w) t_sample *out = (t_sample *)(w[3]); int n = (int)(w[4]); if (x->doit) { - if (in==out){ + if (in==out) { int N=n; t_sample *dummy=x->blockbuffer; - while(n--)*dummy++=*in++; + while(n--) { + *dummy++=*in++; + } dummy--; - while(N--)*out++=*dummy--; + while(N--) { + *out++=*dummy--; + } } else { in+=n-1; - while(n--)*out++=*in--; + while(n--) { + *out++=*in--; + } + } + } else while (n--) { + *out++ = *in++; } - } else while (n--) *out++ = *in++; return (w+5); } static void blockmirror_dsp(t_blockmirror *x, t_signal **sp) { - if (x->blocksize<sp[0]->s_n){ - if(x->blockbuffer)freebytes(x->blockbuffer, sizeof(*x->blockbuffer)*x->blocksize); + if (x->blocksize<sp[0]->s_n) { + if(x->blockbuffer) { + freebytes(x->blockbuffer, sizeof(*x->blockbuffer)*x->blocksize); + } x->blocksize = sp[0]->s_n; x->blockbuffer = getbytes(sizeof(*x->blockbuffer)*x->blocksize); } @@ -74,15 +83,16 @@ static void blockmirror_dsp(t_blockmirror *x, t_signal **sp) static void blockmirror_helper(t_blockmirror*x) { - post("\n"HEARTSYMBOL" blockmirror~-object for reverting a signal"); + post("\n"HEARTSYMBOL " blockmirror~-object for reverting a signal"); post("'help' : view this\n" "signal~"); post("outlet : signal~"); } static void blockmirror_free(t_blockmirror*x) { - if(x->blockbuffer) + if(x->blockbuffer) { freebytes(x->blockbuffer, sizeof(*x->blockbuffer)*x->blocksize); + } x->blockbuffer=0; } static void *blockmirror_new(void) @@ -96,14 +106,17 @@ static void *blockmirror_new(void) void blockmirror_tilde_setup(void) { - blockmirror_class = class_new(gensym("blockmirror~"), (t_newmethod)blockmirror_new, + blockmirror_class = class_new(gensym("blockmirror~"), + (t_newmethod)blockmirror_new, (t_method)blockmirror_free, sizeof(t_blockmirror), 0, A_NULL); class_addmethod(blockmirror_class, nullfn, gensym("signal"), 0); - class_addmethod(blockmirror_class, (t_method)blockmirror_dsp, gensym("dsp"), A_CANT, 0); - + class_addmethod(blockmirror_class, (t_method)blockmirror_dsp, + gensym("dsp"), 0); + class_addfloat(blockmirror_class, blockmirror_float); - - class_addmethod(blockmirror_class, (t_method)blockmirror_helper, gensym("help"), 0); + + class_addmethod(blockmirror_class, (t_method)blockmirror_helper, + gensym("help"), 0); zexy_register("blockmirror~"); } diff --git a/externals/zexy/src/blockshuffle~.c b/externals/zexy/src/blockshuffle~.c index 273ab7f5abd8eefe4add22ea17808fe08ba4bfb6..36dbff73874cebb8f663f6af91aa2c1ecaec299c 100644 --- a/externals/zexy/src/blockshuffle~.c +++ b/externals/zexy/src/blockshuffle~.c @@ -1,4 +1,4 @@ -/* +/* * blockshuffle~: shuffle a signal block * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -28,8 +28,8 @@ static t_class *blockshuffle_class; -typedef struct _blockshuffle -{ t_object x_obj; +typedef struct _blockshuffle { + t_object x_obj; t_sample*blockbuf; t_int* indices; @@ -39,37 +39,47 @@ typedef struct _blockshuffle int shufflesize; } t_blockshuffle; -static void blockshuffle_buildindex(t_blockshuffle *x, int blocksize){ +static void blockshuffle_buildindex(t_blockshuffle *x, int blocksize) +{ int i=0; - if(blocksize!=x->size){ - if(x->indices)freebytes(x->indices, x->size); - if(x->blockbuf)freebytes(x->blockbuf, x->size); + if(blocksize!=x->size) { + if(x->indices) { + freebytes(x->indices, x->size); + } + if(x->blockbuf) { + freebytes(x->blockbuf, x->size); + } x->indices=getbytes (sizeof(t_int)*blocksize); x->blockbuf=getbytes(sizeof(t_sample)*blocksize); x->size=blocksize; } - for(i=0;i<x->shufflesize&&i<blocksize; i++){ + for(i=0; i<x->shufflesize&&i<blocksize; i++) { int idx=x->shuffle[i]; - if(idx>=blocksize)idx=blocksize-1; - if(idx<0)idx=0; + if(idx>=blocksize) { + idx=blocksize-1; + } + if(idx<0) { + idx=0; + } x->indices[i]=idx; } - for(;i<blocksize; i++){ + for(; i<blocksize; i++) { x->indices[i]=i; } } -static void blockshuffle_list(t_blockshuffle *x, t_symbol*s, int argc, t_atom*argv) +static void blockshuffle_list(t_blockshuffle *x, t_symbol*s, int argc, + t_atom*argv) { int i; - if(x->shuffle){ + if(x->shuffle) { freebytes(x->shuffle, x->shufflesize); x->shuffle=0; } x->shufflesize=argc; x->shuffle=getbytes(sizeof(*x->shuffle)*argc); - for(i=0; i<argc; i++){ + for(i=0; i<argc; i++) { x->shuffle[i]=atom_getfloat(argv++); } blockshuffle_buildindex(x, x->size); @@ -85,16 +95,18 @@ static t_int *blockshuffle_perform(t_int *w) t_sample *temp=x->blockbuf; t_int *idx =x->indices; - if(idx){ - for(i=0; i<n; i++){ + if(idx) { + for(i=0; i<n; i++) { temp[i]=in[idx[i]]; } temp=x->blockbuf; - for(i=0; i<n; i++){ + for(i=0; i<n; i++) { *out++=*temp++; } } else - while(n--)*out++=*in++; + while(n--) { + *out++=*in++; + } return (w+5); } @@ -103,20 +115,28 @@ static void blockshuffle_dsp(t_blockshuffle *x, t_signal **sp) { blockshuffle_buildindex(x, sp[0]->s_n); - dsp_add(blockshuffle_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); + dsp_add(blockshuffle_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, + sp[0]->s_n); } static void blockshuffle_helper(void) { - post("\n"HEARTSYMBOL" blockshuffle~-object for shuffling the samples within a signal-block"); + post("\n"HEARTSYMBOL " blockshuffle~-object for shuffling the samples within a signal-block"); post("'help' : view this\n" "signal~"); post("outlet : signal~"); } -static void blockshuffle_free(t_blockshuffle *x){ - if(x->indices) freebytes(x->indices, sizeof(*x->indices) *x->size); - if(x->blockbuf)freebytes(x->blockbuf, sizeof(*x->blockbuf)*x->size); - if(x->shuffle) freebytes(x->shuffle, sizeof(*x->shuffle) *x->shufflesize); +static void blockshuffle_free(t_blockshuffle *x) +{ + if(x->indices) { + freebytes(x->indices, sizeof(*x->indices) *x->size); + } + if(x->blockbuf) { + freebytes(x->blockbuf, sizeof(*x->blockbuf)*x->size); + } + if(x->shuffle) { + freebytes(x->shuffle, sizeof(*x->shuffle) *x->shufflesize); + } } static void *blockshuffle_new(void) @@ -133,14 +153,17 @@ static void *blockshuffle_new(void) void blockshuffle_tilde_setup(void) { - blockshuffle_class = class_new(gensym("blockshuffle~"), (t_newmethod)blockshuffle_new, + blockshuffle_class = class_new(gensym("blockshuffle~"), + (t_newmethod)blockshuffle_new, (t_method)blockshuffle_free, sizeof(t_blockshuffle), 0, A_NULL); class_addmethod(blockshuffle_class, nullfn, gensym("signal"), 0); - class_addmethod(blockshuffle_class, (t_method)blockshuffle_dsp, gensym("dsp"), A_CANT, 0); - + class_addmethod(blockshuffle_class, (t_method)blockshuffle_dsp, + gensym("dsp"), 0); + class_addlist(blockshuffle_class, blockshuffle_list); - - class_addmethod(blockshuffle_class, (t_method)blockshuffle_helper, gensym("help"), 0); + + class_addmethod(blockshuffle_class, (t_method)blockshuffle_helper, + gensym("help"), 0); zexy_register("blockshuffle~"); } diff --git a/externals/zexy/src/blockswap~.c b/externals/zexy/src/blockswap~.c index 95ee08fbbaf146e7c7af1286d71d9b2f9a93292c..9363858ab78179c88cd205d7a29290956467afaa 100644 --- a/externals/zexy/src/blockswap~.c +++ b/externals/zexy/src/blockswap~.c @@ -1,4 +1,4 @@ -/* +/* * blockswap~: swaps a signalblock around it's center * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -27,8 +27,7 @@ static t_class *blockswap_class; -typedef struct _blockswap -{ +typedef struct _blockswap { t_object x_obj; int doit; int blocksize; @@ -50,20 +49,30 @@ static t_int *blockswap_perform(t_int *w) if (x->doit) { int n=N2; t_sample *dummy=x->blockbuffer; - while(n--)*dummy++=*in++; + while(n--) { + *dummy++=*in++; + } n=N-N2; - while(n--)*out++=*in++; + while(n--) { + *out++=*in++; + } dummy=x->blockbuffer; - n=N2; - while(n--)*out++=*dummy++; - } else while (N--) *out++=*in++; + n=N2; + while(n--) { + *out++=*dummy++; + } + } else while (N--) { + *out++=*in++; + } return (w+5); } static void blockswap_dsp(t_blockswap *x, t_signal **sp) { - if (x->blocksize*2<sp[0]->s_n){ - if(x->blockbuffer)freebytes(x->blockbuffer, sizeof(*x->blockbuffer)*x->blocksize); + if (x->blocksize*2<sp[0]->s_n) { + if(x->blockbuffer) { + freebytes(x->blockbuffer, sizeof(*x->blockbuffer)*x->blocksize); + } x->blocksize = sp[0]->s_n/2; x->blockbuffer = getbytes(sizeof(*x->blockbuffer)*x->blocksize); } @@ -72,7 +81,7 @@ static void blockswap_dsp(t_blockswap *x, t_signal **sp) static void blockswap_helper(t_blockswap *x) { - post("\n"HEARTSYMBOL" blockswap~-object for blockwise-swapping of a signal "); + post("\n"HEARTSYMBOL " blockswap~-object for blockwise-swapping of a signal "); post("'help' : view this\n" "signal~"); post("outlet : signal~"); @@ -80,7 +89,7 @@ static void blockswap_helper(t_blockswap *x) static void blockswap_free(t_blockswap *x) { - if(x->blockbuffer){ + if(x->blockbuffer) { freebytes(x->blockbuffer, sizeof(*x->blockbuffer)*x->blocksize); } x->blockbuffer=0; @@ -97,13 +106,16 @@ static void *blockswap_new(void) void blockswap_tilde_setup(void) { - blockswap_class = class_new(gensym("blockswap~"), (t_newmethod)blockswap_new, (t_method)blockswap_free, + blockswap_class = class_new(gensym("blockswap~"), + (t_newmethod)blockswap_new, (t_method)blockswap_free, sizeof(t_blockswap), 0, A_NULL); class_addmethod(blockswap_class, nullfn, gensym("signal"), 0); - class_addmethod(blockswap_class, (t_method)blockswap_dsp, gensym("dsp"), A_CANT, 0); - + class_addmethod(blockswap_class, (t_method)blockswap_dsp, gensym("dsp"), + 0); + class_addfloat(blockswap_class, blockswap_float); - - class_addmethod(blockswap_class, (t_method)blockswap_helper, gensym("help"), 0); + + class_addmethod(blockswap_class, (t_method)blockswap_helper, + gensym("help"), 0); zexy_register("blockswap~"); } diff --git a/externals/zexy/src/date.c b/externals/zexy/src/date.c index 3e2a5f54a952cd6b528b0e86adc459d9e400065f..a749d57176247ddd6bdfe7e6c8e3891ffd94726f 100644 --- a/externals/zexy/src/date.c +++ b/externals/zexy/src/date.c @@ -1,4 +1,4 @@ -/* +/* * date: gets the current date from the system * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -33,9 +33,9 @@ * ******************************************************/ -/* +/* (c) 1202:forum::für::umläute:2000 - 1506:forum::für::umläute:2003: use timeb only if needed (like on windoze) + 1506:forum::für::umläute:2003: use timeb only if needed (like on windoze) */ #include "zexy.h" @@ -63,12 +63,11 @@ static t_class *date_class; -typedef struct _date -{ +typedef struct _date { t_object x_obj; - + int GMT; - + t_outlet *x_outlet1; t_outlet *x_outlet2; t_outlet *x_outlet3; @@ -81,21 +80,22 @@ static void *date_new(t_symbol* UNUSED(s), int argc, t_atom *argv) { t_date *x = (t_date *)pd_new(date_class); char buf[5]; - + x->GMT=0; if (argc) { atom_string(argv, buf, 5); - if (buf[0]=='G' && buf[1]=='M' && buf[2]=='T') + if (buf[0]=='G' && buf[1]=='M' && buf[2]=='T') { x->GMT = 1; + } } - + x->x_outlet1 = outlet_new(&x->x_obj, gensym("float")); x->x_outlet2 = outlet_new(&x->x_obj, gensym("float")); x->x_outlet3 = outlet_new(&x->x_obj, gensym("float")); x->x_outlet4 = outlet_new(&x->x_obj, gensym("float")); x->x_outlet5 = outlet_new(&x->x_obj, gensym("float")); x->x_outlet6 = outlet_new(&x->x_obj, gensym("float")); - + return (x); } @@ -121,7 +121,7 @@ static void date_bang(t_date *x) static void help_date(t_date* UNUSED(x)) { - post("\n"HEARTSYMBOL" date\t\t:: get the current system date"); + post("\n"HEARTSYMBOL " date\t\t:: get the current system date"); post("\noutputs are\t: year / month / day / day of week /day of year / daylightsaving (1/0)"); post("\ncreation\t::'date [GMT]': show local date or GMT"); } @@ -129,11 +129,11 @@ static void help_date(t_date* UNUSED(x)) void date_setup(void) { date_class = class_new(gensym("date"), - (t_newmethod)date_new, 0, - sizeof(t_date), 0, A_GIMME, 0); - + (t_newmethod)date_new, 0, + sizeof(t_date), 0, A_GIMME, 0); + class_addbang(date_class, date_bang); - + class_addmethod(date_class, (t_method)help_date, gensym("help"), 0); zexy_register("date"); } diff --git a/externals/zexy/src/demultiplex.c b/externals/zexy/src/demultiplex.c index 20886f5af145930e31755e5e5a65210a34aed04e..ea6cd4a81bdb516fab38b489a7da2ed74b0692ce 100644 --- a/externals/zexy/src/demultiplex.c +++ b/externals/zexy/src/demultiplex.c @@ -1,5 +1,5 @@ -/* - * demux : demultiplex the input to a specified output +/* + * demux : demultiplex the input to a specified output * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) * @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -28,8 +28,7 @@ static t_class *demux_class; -typedef struct _demux -{ +typedef struct _demux { t_object x_obj; int n_out; @@ -59,8 +58,8 @@ static void demux_list(t_demux *x, t_symbol *s, int argc, t_atom *argv) outlet_symbol(x->selected, atom_getsymbol(argv)); break; case A_POINTER: - outlet_pointer(x->selected, argv->a_w.w_gpointer); - break; + outlet_pointer(x->selected, argv->a_w.w_gpointer); + break; default: outlet_list(x->selected, s, argc, argv); } @@ -80,7 +79,7 @@ static void *demux_new(t_symbol* UNUSED(s), int argc, t_atom* UNUSED(argv)) int n = (argc < 2)?2:argc; x->n_out = n - 1; - + inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("select")); x->out = (t_outlet **)getbytes(n * sizeof(t_outlet *)); @@ -96,13 +95,14 @@ static void *demux_new(t_symbol* UNUSED(s), int argc, t_atom* UNUSED(argv)) void demultiplex_setup(void) { demux_class = class_new(gensym("demultiplex"), (t_newmethod)demux_new, - 0, sizeof(t_demux), 0, A_GIMME, 0); + 0, sizeof(t_demux), 0, A_GIMME, 0); class_addcreator((t_newmethod)demux_new, gensym("demux"), A_GIMME, 0); - + class_addanything (demux_class, demux_any); class_addlist (demux_class, demux_list); - class_addmethod (demux_class, (t_method)demux_select, gensym("select"), A_DEFFLOAT, 0); + class_addmethod (demux_class, (t_method)demux_select, gensym("select"), + A_DEFFLOAT, 0); zexy_register("demultiplex"); } diff --git a/externals/zexy/src/demultiplex~.c b/externals/zexy/src/demultiplex~.c index ba1d36743b6466fa15dcfabb80dbcc6b0c0c7f54..fbc58e259610589ba214cf8186fe16f1e3dd6156 100644 --- a/externals/zexy/src/demultiplex~.c +++ b/externals/zexy/src/demultiplex~.c @@ -1,4 +1,4 @@ -/* +/* * demux~ : demultiplex a signal to a specified output * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -33,10 +33,12 @@ typedef struct _demux { static void demux_output(t_demux *x, t_floatarg f) { - if ((f>=0)&&(f<x->n_out)){ + if ((f>=0)&&(f<x->n_out)) { x->output=f; - } else - error("demultiplex: %d is channel out of range (0..%d)", (int)f, x->n_out); + } else { + error("demultiplex: %d is channel out of range (0..%d)", (int)f, + x->n_out); + } } @@ -49,13 +51,17 @@ static t_int *demux_perform(t_int *w) int channel=x->n_out; - while(channel--){ + while(channel--) { t_sample*out=x->out[channel]; n=N; - if(x->output==channel){ - while(n--)*out++=*in++; + if(x->output==channel) { + while(n--) { + *out++=*in++; + } } else - while(n--)*out++=0.f; + while(n--) { + *out++=0.f; + } } return (w+4); } @@ -64,14 +70,16 @@ static void demux_dsp(t_demux *x, t_signal **sp) { int n = x->n_out; t_sample **dummy=x->out; - while(n--)*dummy++=sp[x->n_out-n]->s_vec; + while(n--) { + *dummy++=sp[x->n_out-n]->s_vec; + } dsp_add(demux_perform, 3, x, sp[0]->s_vec, sp[0]->s_n); } static void demux_helper(void) { - post("\n"HEARTSYMBOL" demux~\t:: demultiplex a signal to one of various outlets"); + post("\n"HEARTSYMBOL " demux~\t:: demultiplex a signal to one of various outlets"); post("<#out>\t : the outlet-number (counting from 0) to witch the inlet is routed" "'help'\t : view this"); post("creation : \"demux~ [arg1 [arg2...]]\"\t: the number of arguments equals the number of outlets\n"); @@ -87,26 +95,33 @@ static void *demux_new(t_symbol* UNUSED(s), int argc, t_atom* UNUSED(argv)) t_demux *x = (t_demux *)pd_new(demux_class); int i; - if (!argc)argc=2; + if (!argc) { + argc=2; + } x->n_out=argc; x->output=0; - while(argc--)outlet_new(&x->x_obj, gensym("signal")); + while(argc--) { + outlet_new(&x->x_obj, gensym("signal")); + } x->out = (t_sample **)getbytes(x->n_out * sizeof(t_sample *)); i=x->n_out; - while(i--)x->out[i]=0; + while(i--) { + x->out[i]=0; + } return (x); } void demultiplex_tilde_setup(void) { - demux_class = class_new(gensym("demultiplex~"), (t_newmethod)demux_new, (t_method)demux_free, sizeof(t_demux), 0, A_GIMME, 0); + demux_class = class_new(gensym("demultiplex~"), (t_newmethod)demux_new, + (t_method)demux_free, sizeof(t_demux), 0, A_GIMME, 0); class_addcreator((t_newmethod)demux_new, gensym("demux~"), A_GIMME, 0); class_addfloat(demux_class, demux_output); - class_addmethod(demux_class, (t_method)demux_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(demux_class, (t_method)demux_dsp, gensym("dsp"), 0); class_addmethod(demux_class, nullfn, gensym("signal"), 0); class_addmethod(demux_class, (t_method)demux_helper, gensym("help"), 0); diff --git a/externals/zexy/src/dfreq~.c b/externals/zexy/src/dfreq~.c index 4afe3d0dc08458c08d10268bfbb9bc9ac3b9808a..ee2adf8f34fd8ec5ac74c2f00231147f29d773a5 100644 --- a/externals/zexy/src/dfreq~.c +++ b/externals/zexy/src/dfreq~.c @@ -1,4 +1,4 @@ -/* +/* * dfreq~: cound zero-crossings as a simple fequency estimation * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -28,8 +28,7 @@ static t_class *dfreq_class; -typedef struct _dfreq -{ +typedef struct _dfreq { t_object x_obj; t_sample freq; /*frequenz variable */ @@ -55,14 +54,15 @@ static t_int *dfreq_perform(t_int *w) while (n--) { - if( (a * *in) < 0 && (a < *in)){ + if( (a **in) < 0 && (a < *in)) { /* interpolate for real zerocross */ delta_inv = 1./(*in-a); - if(c > 0.0) + if(c > 0.0) { freq = sr / ((t_sample) c + a*delta_inv); - else + } else { freq = sr; + } c = *in*delta_inv; /*rest of time */ }; @@ -73,7 +73,7 @@ static t_int *dfreq_perform(t_int *w) *out++ = freq; } - x->alt = a; + x->alt = a; x->sampcount = c; x->freq=freq; @@ -99,7 +99,7 @@ static void *dfreq_new(void) static void dfreq_tilde_helper(void) { - post("\n"HEARTSYMBOL" dfreq~\t :: pitch-detector that counts zero-crossings"); + post("\n"HEARTSYMBOL " dfreq~\t :: pitch-detector that counts zero-crossings"); post("\noutputs a frequency estimate as a stream~ that will be updated every zero-X"); post("\ncreation::\t'dfreq~': that's all"); } @@ -110,8 +110,9 @@ void dfreq_tilde_setup(void) dfreq_class = class_new(gensym("dfreq~"), (t_newmethod)dfreq_new, 0, sizeof(t_dfreq), 0, A_NULL); class_addmethod(dfreq_class, nullfn, gensym("signal"), 0); - class_addmethod(dfreq_class, (t_method)dfreq_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(dfreq_class, (t_method)dfreq_dsp, gensym("dsp"), 0); - class_addmethod(dfreq_class, (t_method)dfreq_tilde_helper, gensym("help"), 0); + class_addmethod(dfreq_class, (t_method)dfreq_tilde_helper, gensym("help"), + 0); zexy_register("dfreq~"); } diff --git a/externals/zexy/src/dirac~.c b/externals/zexy/src/dirac~.c index 3665ed53e1eb90b02dabb97d8cf3863e36a3de26..c00ab9d1efda2eee52e72395bc933557eb308469 100644 --- a/externals/zexy/src/dirac~.c +++ b/externals/zexy/src/dirac~.c @@ -1,21 +1,21 @@ -/* +/* * dirac~: unity sample * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) * * optimizations: - * (c) 2005 tim blechmann + * (c) 2005 tim blechmann * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -34,13 +34,12 @@ #include "zexy.h" -/* ------------------------ dirac~ ----------------------------- */ +/* ------------------------ dirac~ ----------------------------- */ static t_class *dirac_class; -typedef struct _dirac -{ +typedef struct _dirac { t_object x_obj; t_int position; t_int do_it; @@ -61,29 +60,28 @@ static t_int *dirac_perform(t_int *w) t_dirac *x = (t_dirac *)(w[1]); t_sample *out = (t_sample *)(w[2]); int n = (int)(w[3]); - + t_int do_it = x->do_it; zero_perform(w+1); - if (do_it >= n) + if (do_it >= n) { x->do_it -= n; - else if(do_it >= 0) - { - out[do_it] = 1.f; - x->do_it = -1; - } + } else if(do_it >= 0) { + out[do_it] = 1.f; + x->do_it = -1; + } return (w+4); } #ifndef __WIN32__ - /* LATER: investigate the occurence of zero_perf8() */ - /* it seems, like pd has the symbol zero_perf8(), - * but it is not exported by m_pd.h: - * so linux can use it, but w32 not - * have to tell miller about that - */ +/* LATER: investigate the occurence of zero_perf8() */ +/* it seems, like pd has the symbol zero_perf8(), + * but it is not exported by m_pd.h: + * so linux can use it, but w32 not + * have to tell miller about that + */ t_int *zero_perf8(t_int *w); #else /* on w32 we have no access to this hidden function anyhow... */ @@ -95,32 +93,32 @@ static t_int *dirac_perf8(t_int *w) t_dirac *x = (t_dirac *)(w[1]); t_sample *out = (t_sample *)(w[2]); int n = (int)(w[3]); - + t_int do_it = x->do_it; zero_perf8(w+1); - if (do_it >= n) + if (do_it >= n) { x->do_it -= n; - else if(do_it >= 0) - { - out[do_it] = 1.f; - x->do_it = -1; - } + } else if(do_it >= 0) { + out[do_it] = 1.f; + x->do_it = -1; + } return (w+4); } static void dirac_dsp(t_dirac *x, t_signal **sp) { - if (sp[0]->s_n & 7) + if (sp[0]->s_n & 7) { dsp_add(dirac_perform, 3, x, sp[0]->s_vec, sp[0]->s_n); - else + } else { dsp_add(dirac_perf8, 3, x, sp[0]->s_vec, sp[0]->s_n); + } } static void dirac_helper(void) { - post(""HEARTSYMBOL" dirac~-object :: generates a dirac (unity-pulse)"); + post(""HEARTSYMBOL " dirac~-object :: generates a dirac (unity-pulse)"); post("creation : \"dirac~ [<position>]\" : create a dirac at specified position (in samples)\n" "inlet\t: <position>\t: create a dirac at new position\n" "\t 'bang'\t: create a dirac at specified position\n" @@ -139,20 +137,21 @@ static void *dirac_new(t_floatarg where) // x->do_it = where; x->do_it = -1; - if (where > 0) + if (where > 0) { x->position = where; - else + } else { x->position = -where; + } return (x); } - + void dirac_tilde_setup(void) { dirac_class = class_new(gensym("dirac~"), (t_newmethod)dirac_new, 0, sizeof(t_dirac), 0, A_DEFFLOAT, 0); - class_addfloat(dirac_class, dirac_float); - class_addbang(dirac_class, dirac_bang); - class_addmethod(dirac_class, (t_method)dirac_dsp, gensym("dsp"), A_CANT, 0); + class_addfloat(dirac_class, dirac_float); + class_addbang(dirac_class, dirac_bang); + class_addmethod(dirac_class, (t_method)dirac_dsp, gensym("dsp"), 0); class_addmethod(dirac_class, (t_method)dirac_helper, gensym("help"), 0); zexy_register("dirac~"); diff --git a/externals/zexy/src/doublepole~.c b/externals/zexy/src/doublepole~.c new file mode 100644 index 0000000000000000000000000000000000000000..a06e861c6d0698771668d2e09bef1e2879410147 --- /dev/null +++ b/externals/zexy/src/doublepole~.c @@ -0,0 +1,127 @@ +/* Copyright (c) 1997-1999 Miller Puckette. +* For information on usage and redistribution, and for a DISCLAIMER OF ALL +* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ + +/* "filters", both linear and nonlinear. +*/ +#include "m_pd.h" +#include <math.h> + +//* ---------------- doublepole~ - raw doublepole filter ----------------- */ + +typedef struct doublepolectl { + t_sample c_x1; + t_sample c_x2; + t_sample c_fb1; + t_sample c_fb2; +} t_doublepolectl; + +typedef struct sigdoublepole { + t_object x_obj; + t_float x_f; + t_doublepolectl x_cspace; + t_doublepolectl *x_ctl; +} t_sigdoublepole; + +static t_class *sigdoublepole_class = NULL; + +static void sigdoublepole_list(t_sigdoublepole *x, t_symbol *s, int argc, + t_atom *argv); + +static void *sigdoublepole_new(t_symbol *s, int argc, t_atom *argv) +{ + t_sigdoublepole *x = (t_sigdoublepole *)pd_new(sigdoublepole_class); + outlet_new(&x->x_obj, &s_signal); + x->x_ctl = &x->x_cspace; + x->x_cspace.c_x1 = x->x_cspace.c_x2 = 0; + sigdoublepole_list(x, s, argc, argv); + x->x_f = 0; + return (x); +} + +static t_int *sigdoublepole_perform(t_int *w) +{ + t_sample *in = (t_sample *)(w[1]); + t_sample *out = (t_sample *)(w[2]); + t_doublepolectl *c = (t_doublepolectl *)(w[3]); + int n = (t_int)(w[4]); + int i; + t_sample last = c->c_x1; + t_sample prev = c->c_x2; + t_sample fb1 = c->c_fb1; + t_sample fb2 = c->c_fb2; + for (i = 0; i < n; i++) { + t_sample output = *in++ + fb1 * last + fb2 * prev; + if (PD_BIGORSMALL(output)) { + output = 0; + } + *out++ = output; + prev = last; + last = output; + } + c->c_x1 = last; + c->c_x2 = prev; + return (w+5); +} + +static void sigdoublepole_list(t_sigdoublepole *x, t_symbol *s, int argc, + t_atom *argv) +{ + t_float fb1 = atom_getfloatarg(0, argc, argv); + t_float fb2 = atom_getfloatarg(1, argc, argv); + t_float discriminant = fb1 * fb1 + 4 * fb2; + t_doublepolectl *c = x->x_ctl; + if (discriminant < 0) { /* imaginary roots -- resonant filter */ + /* they're conjugates so we just check that the product + is less than one */ + if (fb2 >= -1.0f) { + goto stable; + } + } else { /* real roots */ + /* check that the parabola 1 - fb1 x - fb2 x^2 has a + vertex between -1 and 1, and that it's nonnegative + at both ends, which implies both roots are in [1-,1]. */ + if (fb1 <= 2.0f && fb1 >= -2.0f && + 1.0f - fb1 -fb2 >= 0 && 1.0f + fb1 - fb2 >= 0) { + goto stable; + } + } + /* if unstable, just bash to zero */ + fb1 = fb2 = 0; +stable: + c->c_fb1 = fb1; + c->c_fb2 = fb2; +} + +static void sigdoublepole_set(t_sigdoublepole *x, t_symbol *s, int argc, + t_atom *argv) +{ + t_doublepolectl *c = x->x_ctl; + c->c_x1 = atom_getfloatarg(0, argc, argv); + c->c_x2 = atom_getfloatarg(1, argc, argv); +} + +static void sigdoublepole_dsp(t_sigdoublepole *x, t_signal **sp) +{ + dsp_add(sigdoublepole_perform, 4, + sp[0]->s_vec, sp[1]->s_vec, + x->x_ctl, sp[0]->s_n); + +} + +void doublepole_tilde_setup(void) +{ + sigdoublepole_class = class_new(gensym("doublepole~"), + (t_newmethod)sigdoublepole_new, + 0, sizeof(t_sigdoublepole), 0, A_GIMME, 0); + CLASS_MAINSIGNALIN(sigdoublepole_class, t_sigdoublepole, x_f); + class_addmethod(sigdoublepole_class, (t_method)sigdoublepole_dsp, + gensym("dsp"), 0); + class_addlist(sigdoublepole_class, sigdoublepole_list); + class_addmethod(sigdoublepole_class, (t_method)sigdoublepole_set, + gensym("set"), + A_GIMME, 0); + class_addmethod(sigdoublepole_class, (t_method)sigdoublepole_set, + gensym("clear"), + A_GIMME, 0); +} diff --git a/externals/zexy/src/drip.c b/externals/zexy/src/drip.c index 855f9d80cd0e2caec2d15f2c33724d0da9fb5897..59e504cb6361f3f291491c33ecfbfb1af7b4e58d 100644 --- a/externals/zexy/src/drip.c +++ b/externals/zexy/src/drip.c @@ -1,4 +1,4 @@ -/* +/* * drip: unfold a parallel data-structure (*pack*age) into a sequence * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -30,8 +30,7 @@ you can adjust the drop-speed in [ms] static t_class *drip_class; -typedef struct _drip -{ +typedef struct _drip { t_object x_obj; t_atom *buffer, *current; @@ -58,7 +57,9 @@ static void drip_makebuffer(t_drip *x, int n, t_atom *list) } static void drip_bang(t_drip *x) -{ outlet_bang(x->x_obj.ob_outlet);} +{ + outlet_bang(x->x_obj.ob_outlet); +} static void drip_all(t_drip *x, int argc, t_atom *argv) @@ -66,16 +67,16 @@ static void drip_all(t_drip *x, int argc, t_atom *argv) while (argc--) { switch (argv->a_type) { case A_FLOAT: - outlet_float(x->x_obj.ob_outlet, atom_getfloat(argv)); + outlet_float(x->x_obj.ob_outlet, atom_getfloat(argv)); break; case A_SYMBOL: - outlet_symbol(x->x_obj.ob_outlet, atom_getsymbol(argv)); + outlet_symbol(x->x_obj.ob_outlet, atom_getsymbol(argv)); break; case A_POINTER: - outlet_pointer(x->x_obj.ob_outlet, argv->a_w.w_gpointer); + outlet_pointer(x->x_obj.ob_outlet, argv->a_w.w_gpointer); break; default: - outlet_bang(x->x_obj.ob_outlet); + outlet_bang(x->x_obj.ob_outlet); } argv++; } @@ -98,7 +99,7 @@ static void drip_tick(t_drip *x) default: break; } - + if (x->current + 1 >= x->buffer + x->bufsize) { /* ok, we're done */ clock_unset(x->x_clock); x->current = 0; @@ -108,7 +109,8 @@ static void drip_tick(t_drip *x) } } -static void drip_list(t_drip *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void drip_list(t_drip *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { if (x->flush && x->current) { /* do we want to flush */ drip_all(x, x->bufsize - (x->current - x->buffer), x->current); @@ -173,12 +175,20 @@ static void *drip_new(t_symbol* UNUSED(s), int argc, t_atom *argv) { t_drip *x = (t_drip *)pd_new(drip_class); - if (argc>1) x->flush = 1; - else x->flush = 0; + if (argc>1) { + x->flush = 1; + } else { + x->flush = 0; + } - if (argc) x->deltime = atom_getfloat(argv); - else x->deltime = -1.f; - if (x->deltime < 0.f) x->deltime = -1.0; + if (argc) { + x->deltime = atom_getfloat(argv); + } else { + x->deltime = -1.f; + } + if (x->deltime < 0.f) { + x->deltime = -1.0; + } x->x_clock = clock_new(x, (t_method)drip_tick); floatinlet_new(&x->x_obj, &x->deltime); @@ -189,12 +199,12 @@ static void *drip_new(t_symbol* UNUSED(s), int argc, t_atom *argv) void drip_setup(void) { - drip_class = class_new(gensym("drip"), (t_newmethod)drip_new, - (t_method)drip_free, sizeof(t_drip), 0 ,A_GIMME, 0); + drip_class = class_new(gensym("drip"), (t_newmethod)drip_new, + (t_method)drip_free, sizeof(t_drip), 0 ,A_GIMME, 0); class_addcreator((t_newmethod)drip_new, gensym("unfold"), A_GIMME, 0); /* for historical reasons */ - + class_addbang (drip_class, drip_bang); class_addlist (drip_class, drip_list); class_addanything(drip_class, drip_anything); diff --git a/externals/zexy/src/envrms~.c b/externals/zexy/src/envrms~.c index cae3d8cefccc7a4cd840f6d148bd3882bce36aed..1c1db80e7683700b7acae977ea20a8510b529da7 100644 --- a/externals/zexy/src/envrms~.c +++ b/externals/zexy/src/envrms~.c @@ -1,4 +1,4 @@ -/* +/* * envrms~: simple envelope follower * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -28,8 +28,7 @@ t_class *sigenvrms_class; -typedef struct sigenvrms -{ +typedef struct sigenvrms { t_object x_obj; /* header */ void *x_outlet; /* a "float" outlet */ void *x_clock; /* a "clock" object */ @@ -52,24 +51,33 @@ static void *sigenvrms_new(t_floatarg fnpoints, t_floatarg fperiod) t_sample *buf; int i; - if (npoints < 1) npoints = 1024; - if (period < 1) period = npoints/2; - if (period < npoints / MAXOVERLAP + 1) + if (npoints < 1) { + npoints = 1024; + } + if (period < 1) { + period = npoints/2; + } + if (period < npoints / MAXOVERLAP + 1) { period = npoints / MAXOVERLAP + 1; - if (!(buf = getbytes(sizeof(*buf) * (npoints + MAXVSTAKEN)))) - { - error("env: couldn't allocate buffer"); - return (0); - } + } + if (!(buf = getbytes(sizeof(*buf) * (npoints + MAXVSTAKEN)))) { + error("env: couldn't allocate buffer"); + return (0); + } x = (t_sigenvrms *)pd_new(sigenvrms_class); x->x_buf = buf; x->x_npoints = npoints; x->x_phase = 0; x->x_period = period; - for (i = 0; i < MAXOVERLAP; i++) x->x_sumbuf[i] = 0; - for (i = 0; i < npoints; i++) + for (i = 0; i < MAXOVERLAP; i++) { + x->x_sumbuf[i] = 0; + } + for (i = 0; i < npoints; i++) { buf[i] = (1. - cos((2 * 3.141592654 * i) / npoints))/npoints; - for (; i < npoints+MAXVSTAKEN; i++) buf[i] = 0; + } + for (; i < npoints+MAXVSTAKEN; i++) { + buf[i] = 0; + } x->x_clock = clock_new(x, (t_method)sigenvrms_tick); x->x_outlet = outlet_new(&x->x_obj, gensym("float")); return (x); @@ -81,48 +89,51 @@ static t_int *sigenvrms_perform(t_int *w) t_sample *in = (t_sample *)(w[2]); int n = (int)(w[3]); int count; - t_sample *sump; + t_sample *sump; in += n; for (count = x->x_phase, sump = x->x_sumbuf; - count < x->x_npoints; count += x->x_realperiod, sump++) - { - t_sample *hp = x->x_buf + count; - t_sample *fp = in; - t_sample sum = *sump; - int i; - - for (i = 0; i < n; i++) - { - fp--; - sum += *hp++ * (*fp * *fp); - } - *sump = sum; + count < x->x_npoints; count += x->x_realperiod, sump++) { + t_sample *hp = x->x_buf + count; + t_sample *fp = in; + t_sample sum = *sump; + int i; + + for (i = 0; i < n; i++) { + fp--; + sum += *hp++ * (*fp **fp); } + *sump = sum; + } sump[0] = 0; x->x_phase -= n; - if (x->x_phase < 0) - { - x->x_result = x->x_sumbuf[0]; - for (count = x->x_realperiod, sump = x->x_sumbuf; - count < x->x_npoints; count += x->x_realperiod, sump++) - sump[0] = sump[1]; - sump[0] = 0; - x->x_phase = x->x_realperiod - n; - clock_delay(x->x_clock, 0L); + if (x->x_phase < 0) { + x->x_result = x->x_sumbuf[0]; + for (count = x->x_realperiod, sump = x->x_sumbuf; + count < x->x_npoints; count += x->x_realperiod, sump++) { + sump[0] = sump[1]; } + sump[0] = 0; + x->x_phase = x->x_realperiod - n; + clock_delay(x->x_clock, 0L); + } return (w+4); } static void sigenvrms_dsp(t_sigenvrms *x, t_signal **sp) { if (x->x_period % sp[0]->s_n) x->x_realperiod = - x->x_period + sp[0]->s_n - (x->x_period % sp[0]->s_n); - else x->x_realperiod = x->x_period; + x->x_period + sp[0]->s_n - (x->x_period % sp[0]->s_n); + else { + x->x_realperiod = x->x_period; + } dsp_add(sigenvrms_perform, 3, x, sp[0]->s_vec, sp[0]->s_n); - if (sp[0]->s_n > MAXVSTAKEN) bug("sigenvrms_dsp"); + if (sp[0]->s_n > MAXVSTAKEN) { + bug("sigenvrms_dsp"); + } } -static void sigenvrms_tick(t_sigenvrms *x) /* callback function for the clock */ +static void sigenvrms_tick(t_sigenvrms + *x) /* callback function for the clock */ { outlet_float(x->x_outlet, sqrtf(x->x_result)); } @@ -144,8 +155,10 @@ void envrms_tilde_setup(void) sigenvrms_class = class_new(gensym("envrms~"), (t_newmethod)sigenvrms_new, (t_method)sigenvrms_ff, sizeof(t_sigenvrms), 0, A_DEFFLOAT, A_DEFFLOAT, 0); class_addmethod(sigenvrms_class, nullfn, gensym("signal"), 0); - class_addmethod(sigenvrms_class, (t_method)sigenvrms_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(sigenvrms_class, (t_method)sigenvrms_dsp, gensym("dsp"), + 0); - class_addmethod(sigenvrms_class, (t_method)sigenvrms_help, gensym("help"), 0); + class_addmethod(sigenvrms_class, (t_method)sigenvrms_help, gensym("help"), + 0); zexy_register("envrms~"); } diff --git a/externals/zexy/src/fifop.c b/externals/zexy/src/fifop.c index fe94ffdf1ebb3b03f8f7b395db9c015778d90a47..36b9b760d3a1706d2e1c01536a88f0033a4fef76 100644 --- a/externals/zexy/src/fifop.c +++ b/externals/zexy/src/fifop.c @@ -1,4 +1,4 @@ -/* +/* * fifop: a FIFO (first-in first-out) with priorities * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -46,8 +46,7 @@ typedef struct _fifop_prioritylist { struct _fifop_prioritylist *next; } t_fifop_prioritylist; -typedef struct _fifop -{ +typedef struct _fifop { t_object x_obj; t_fifop_prioritylist *fifo_list; t_float priority; /* current priority */ @@ -55,27 +54,31 @@ typedef struct _fifop t_outlet *x_out, *x_infout; } t_fifop; -static t_fifop_prioritylist*fifop_genprioritylist(t_fifop*x, t_float priority) +static t_fifop_prioritylist*fifop_genprioritylist(t_fifop*x, + t_float priority) { t_fifop_prioritylist*result=0, *dummy=0; - if(x->fifo_list!=0) - { - /* - * do we already have this priority ? - * if so, just return a pointer to that fifo - * else set the dummy-pointer to the fifo BEFORE the new one - */ - dummy=x->fifo_list; - while(dummy!=0){ - t_float prio=dummy->priority; - if(prio==priority)return dummy; - if(prio>priority)break; - result=dummy; - dummy=dummy->next; + if(x->fifo_list!=0) { + /* + * do we already have this priority ? + * if so, just return a pointer to that fifo + * else set the dummy-pointer to the fifo BEFORE the new one + */ + dummy=x->fifo_list; + while(dummy!=0) { + t_float prio=dummy->priority; + if(prio==priority) { + return dummy; + } + if(prio>priority) { + break; } - dummy=result; /* dummy points to the FIFO-before the one we want to insert */ + result=dummy; + dummy=dummy->next; } + dummy=result; /* dummy points to the FIFO-before the one we want to insert */ + } /* create a new priority list */ result = (t_fifop_prioritylist*)getbytes(sizeof( t_fifop_prioritylist)); result->priority=priority; @@ -84,7 +87,7 @@ static t_fifop_prioritylist*fifop_genprioritylist(t_fifop*x, t_float priority) result->next=0; /* insert it into the list of priority lists */ - if(dummy==0){ + if(dummy==0) { /* insert at the beginning */ result->next=x->fifo_list; x->fifo_list=result; @@ -103,18 +106,17 @@ static int add2fifo(t_fifop_prioritylist*fifoprio, int argc, t_atom *argv) t_fifop_list*fifo=0; t_fifop_list*entry=0; - if(fifoprio==0){ - error("pfifo: no fifos available"); + if(fifoprio==0) { + error("pfifo: no fifos available"); return -1; } /* create an entry for the fifo */ - if(!(entry = (t_fifop_list*)getbytes(sizeof(t_fifop_list)))) - { - error("pfifo: couldn't add entry to end of fifo"); - return -1; - } - if(!(entry->argv=(t_atom*)getbytes(argc*sizeof(t_atom)))){ + if(!(entry = (t_fifop_list*)getbytes(sizeof(t_fifop_list)))) { + error("pfifo: couldn't add entry to end of fifo"); + return -1; + } + if(!(entry->argv=(t_atom*)getbytes(argc*sizeof(t_atom)))) { error("pfifo: couldn't add list to fifo!"); return -1; } @@ -123,13 +125,13 @@ static int add2fifo(t_fifop_prioritylist*fifoprio, int argc, t_atom *argv) entry->next=0; /* insert entry into fifo */ - if(fifoprio->fifo_end){ + if(fifoprio->fifo_end) { /* append to the end of the fifo */ fifo=fifoprio->fifo_end; /* add new entry to end of fifo */ fifo->next=entry; - fifoprio->fifo_end=entry; + fifoprio->fifo_end=entry; } else { /* the new entry is the 1st entry of the fifo */ fifoprio->fifo_start=entry; @@ -140,23 +142,27 @@ static int add2fifo(t_fifop_prioritylist*fifoprio, int argc, t_atom *argv) } static t_fifop_prioritylist*getFifo(t_fifop_prioritylist*pfifo) { - if(pfifo==0)return 0; + if(pfifo==0) { + return 0; + } /* get the highest non-empty fifo */ - while(pfifo->fifo_start==0 && pfifo->next!=0)pfifo=pfifo->next; + while(pfifo->fifo_start==0 && pfifo->next!=0) { + pfifo=pfifo->next; + } return pfifo; } -static void fifop_list(t_fifop *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void fifop_list(t_fifop *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { t_fifop_prioritylist*pfifo=0; if(!(pfifo=fifop_genprioritylist(x, x->priority))) { error("[fifop]: couldn't get priority fifo"); return; } - if(!add2fifo(pfifo, argc, argv)) - { - x->counter++; - } + if(!add2fifo(pfifo, argc, argv)) { + x->counter++; + } } static void fifop_bang(t_fifop *x) { @@ -165,11 +171,11 @@ static void fifop_bang(t_fifop *x) t_atom*argv=0; int argc=0; - if(!(pfifo=getFifo(x->fifo_list))){ + if(!(pfifo=getFifo(x->fifo_list))) { outlet_bang(x->x_infout); return; } - if(!(fifo=pfifo->fifo_start)){ + if(!(fifo=pfifo->fifo_start)) { outlet_bang(x->x_infout); return; } @@ -177,7 +183,7 @@ static void fifop_bang(t_fifop *x) x->counter--; pfifo->fifo_start=fifo->next; - if(0==pfifo->fifo_start){ + if(0==pfifo->fifo_start) { pfifo->fifo_end=0; } /* get the list from the entry */ @@ -200,24 +206,26 @@ static void fifop_bang(t_fifop *x) static void fifop_query(t_fifop*x) { z_verbose(1, "%d elements in fifo", (int)x->counter); - + outlet_float(x->x_infout, (t_float)x->counter); } static void fifop_clear(t_fifop*x) { t_fifop_prioritylist *fifo_list=x->fifo_list; - while(fifo_list){ + while(fifo_list) { t_fifop_prioritylist *fifo_list2=fifo_list; t_fifop_list*fifo=fifo_list2->fifo_start; fifo_list=fifo_list->next; - while(fifo){ + while(fifo) { t_fifop_list*fifo2=fifo; fifo=fifo->next; - if(fifo2->argv)freebytes(fifo2->argv, fifo2->argc*sizeof(t_atom)); + if(fifo2->argv) { + freebytes(fifo2->argv, fifo2->argc*sizeof(t_atom)); + } fifo2->argv=0; fifo2->argc=0; fifo2->next=0; @@ -234,7 +242,7 @@ static void fifop_clear(t_fifop*x) } /* this is NOT re-entrant! */ static void fifop_dump(t_fifop*x) -{ +{ t_fifop_prioritylist*pfifo=getFifo(x->fifo_list); if(!pfifo||!pfifo->fifo_start) { @@ -259,7 +267,7 @@ static void fifop_dump(t_fifop*x) static void fifop_help(t_fifop*x) { - post("\n"HEARTSYMBOL" fifop\t\t:: a First-In-First-Out queue with priorities"); + post("\n"HEARTSYMBOL " fifop\t\t:: a First-In-First-Out queue with priorities"); } @@ -288,16 +296,20 @@ static void *fifop_new(void) void fifop_setup(void) { fifop_class = class_new(gensym("fifop"), (t_newmethod)fifop_new, - (t_method)fifop_free, sizeof(t_fifop), 0, A_NULL); + (t_method)fifop_free, sizeof(t_fifop), 0, A_NULL); class_addbang (fifop_class, fifop_bang); class_addlist (fifop_class, fifop_list); - class_addmethod (fifop_class, (t_method)fifop_clear, gensym("clear"), A_NULL); - class_addmethod (fifop_class, (t_method)fifop_dump, gensym("dump"), A_NULL); + class_addmethod (fifop_class, (t_method)fifop_clear, gensym("clear"), + A_NULL); + class_addmethod (fifop_class, (t_method)fifop_dump, gensym("dump"), + A_NULL); - class_addmethod (fifop_class, (t_method)fifop_query, gensym("info"), A_NULL); - class_addmethod (fifop_class, (t_method)fifop_help, gensym("help"), A_NULL); + class_addmethod (fifop_class, (t_method)fifop_query, gensym("info"), + A_NULL); + class_addmethod (fifop_class, (t_method)fifop_help, gensym("help"), + A_NULL); zexy_register("fifop"); } diff --git a/externals/zexy/src/freadln.c b/externals/zexy/src/freadln.c index c78a0bd2c8d7b6aff8968ba80136c6bbacaf497f..af911142a18fb9098e62dcf85e1c27384c304b36 100644 --- a/externals/zexy/src/freadln.c +++ b/externals/zexy/src/freadln.c @@ -1,4 +1,4 @@ -/* +/* * freadln: reads messages continuously from the lines of a file * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -8,12 +8,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -37,125 +37,133 @@ #define MIN_FREADLN_LENGTH 10 -/* freadln: reads messages continuously from the lines of - * a file that doesn't necessarily need to fit +/* freadln: reads messages continuously from the lines of + * a file that doesn't necessarily need to fit * into the RAM of your system */ static t_class *freadln_class; -typedef struct freadln -{ - t_object x_ob; - FILE *x_file; - char *x_filename; - char *x_textbuf; - int x_textbuf_length; - t_outlet *x_message_outlet; - t_outlet *x_readybang_outlet; +typedef struct freadln { + t_object x_ob; + FILE *x_file; + char *x_filename; + char *x_textbuf; + int x_textbuf_length; + t_outlet *x_message_outlet; + t_outlet *x_readybang_outlet; - char linebreak_chr[3]; + char linebreak_chr[3]; - t_canvas *x_canvas; + t_canvas *x_canvas; } t_freadln; static void freadln_close (t_freadln *x) { - if(x->x_file) - fclose(x->x_file); - x->x_file=0; - if(x->x_filename) - freebytes(x->x_filename, sizeof(char)*MAXPDSTRING); - x->x_filename=0; - if(x->x_textbuf) - freebytes(x->x_textbuf, sizeof(char)*x->x_textbuf_length); - x->x_textbuf=0; - x->x_textbuf_length=0; + if(x->x_file) { + z_fclose(x->x_file); + } + x->x_file=0; + if(x->x_filename) { + freebytes(x->x_filename, sizeof(char)*MAXPDSTRING); + } + x->x_filename=0; + if(x->x_textbuf) { + freebytes(x->x_textbuf, sizeof(char)*x->x_textbuf_length); + } + x->x_textbuf=0; + x->x_textbuf_length=0; } static void freadln_open (t_freadln *x, t_symbol *s, t_symbol*type) { - char filenamebuf[MAXPDSTRING], *filenamebufptr; - char*dirname=canvas_getdir(x->x_canvas)->s_name; - int fd, len; - post("open: %s", s->s_name); + char filenamebuf[MAXPDSTRING], *filenamebufptr; + char*dirname=canvas_getdir(x->x_canvas)->s_name; + int fd, len; + post("open: %s", s->s_name); - freadln_close(x); + freadln_close(x); -/* - if(type!=gensym("cr")) { - pd_error(x, "currently only 'cr' type files are implemented!"); - return; - } -*/ - if (type==gensym("cr")) - strcpy(x->linebreak_chr,"\n"); - else - strcpy(x->linebreak_chr,";\n"); - + /* + if(type!=gensym("cr")) { + pd_error(x, "currently only 'cr' type files are implemented!"); + return; + } + */ + if (type==gensym("cr")) { + strcpy(x->linebreak_chr,"\n"); + } else { + strcpy(x->linebreak_chr,";\n"); + } - /* directory, filename, extension, dirresult, nameresult, unsigned int size, int bin */ - if ((fd=open_via_path( - dirname, - s->s_name, "", - filenamebuf, - &filenamebufptr, - MAXPDSTRING, - 0)) < 0 ) { - pd_error(x, "%s: failed to open %s", s->s_name, filenamebuf); - return; - } - close(fd); - len=strlen(filenamebuf); - if (!(x->x_filename=(char*)getbytes(sizeof(char)*(len+strlen(s->s_name)+2)))) { - pd_error(x, "out of memory"); - freadln_close(x); - return; - } - strcpy(x->x_filename,filenamebuf); - strcpy(x->x_filename+len,"/"); - strcpy(x->x_filename+len+1,filenamebufptr); - if (!(x->x_file=fopen(x->x_filename, "r"))) { - pd_error(x, "freadln: failed to fopen %s",x->x_filename); - return; - } - if (!(x->x_textbuf = (char *) getbytes (MIN_FREADLN_LENGTH * sizeof(char)))) { - pd_error(x, "out of memory!"); - freadln_close(x); - return; - } - x->x_textbuf_length=MIN_FREADLN_LENGTH; + + /* directory, filename, extension, dirresult, nameresult, unsigned int size, int bin */ + if ((fd=open_via_path( + dirname, + s->s_name, "", + filenamebuf, + &filenamebufptr, + MAXPDSTRING, + 0)) < 0 ) { + pd_error(x, "%s: failed to open %s", s->s_name, filenamebuf); + return; + } + z_close(fd); + len=strlen(filenamebuf); + if (!(x->x_filename=(char*)getbytes(sizeof(char)*(len+strlen( + s->s_name)+2)))) { + pd_error(x, "out of memory"); + freadln_close(x); + return; + } + strcpy(x->x_filename,filenamebuf); + strcpy(x->x_filename+len,"/"); + strcpy(x->x_filename+len+1,filenamebufptr); + if (!(x->x_file=z_fopen(x->x_filename, "r"))) { + pd_error(x, "freadln: failed to fopen %s",x->x_filename); + return; + } + if (!(x->x_textbuf = (char *) getbytes (MIN_FREADLN_LENGTH * sizeof( + char)))) { + pd_error(x, "out of memory!"); + freadln_close(x); + return; + } + x->x_textbuf_length=MIN_FREADLN_LENGTH; } -static int enlarge_cstr_if_required(const char **c_str, int *len, const int desired_min_length) +static int enlarge_cstr_if_required(const char **c_str, int *len, + const int desired_min_length) { - if ((!(*c_str))||*len==0) { - *c_str = (char*) calloc (1,sizeof(char)); - return 1; - } - if (len[0]<desired_min_length) { - do { - len[0]<<=1; - } while ((len[0]<desired_min_length)&&(len[0]!=0)); - freebytes((char*)*c_str, sizeof(char)*len[0]); - if (!(*c_str=(char*)calloc(len[0],sizeof(char)))) - len[0]=0; - } - return len[0]; + if ((!(*c_str))||*len==0) { + *c_str = (char*) calloc (1,sizeof(char)); + return 1; + } + if (len[0]<desired_min_length) { + do { + len[0]<<=1; + } while ((len[0]<desired_min_length)&&(len[0]!=0)); + freebytes((char*)*c_str, sizeof(char)*len[0]); + if (!(*c_str=(char*)calloc(len[0],sizeof(char)))) { + len[0]=0; + } + } + return len[0]; } -static int cstr_char_pos(const char *c_str, const char c) +static int cstr_char_pos(const char *c_str, const char c) { - int cnt=1; - if (c_str) { - do { - if (*c_str==c) - return cnt; - cnt++; - } while (*c_str++!='\0'); - } - return -1; + int cnt=1; + if (c_str) { + do { + if (*c_str==c) { + return cnt; + } + cnt++; + } while (*c_str++!='\0'); + } + return -1; } static void freadln_done(t_freadln*x) @@ -165,101 +173,106 @@ static void freadln_done(t_freadln*x) static void freadln_readline (t_freadln *x) { - int min_length=(x->x_textbuf_length < 1)?1:x->x_textbuf_length; - int linebreak_pos=0; - int items_read; - t_binbuf *bbuf; - t_atom *abuf; - int abuf_length; - int rewind_after; + int min_length=(x->x_textbuf_length < 1)?1:x->x_textbuf_length; + int linebreak_pos=0; + int items_read; + t_binbuf *bbuf; + t_atom *abuf; + int abuf_length; + int rewind_after; - if (!x->x_file) { - pd_error(x, "no file opened for reading"); - freadln_done(x); - return; - } - - do { - if (linebreak_pos==-1) { - min_length<<=1; - fseek(x->x_file,-(long)(x->x_textbuf_length),SEEK_CUR); - } - if (!enlarge_cstr_if_required((const char**) &x->x_textbuf, &x->x_textbuf_length, min_length)) { - pd_error(x, "out of memory"); - x->x_textbuf_length=0; - freadln_close(x); - freadln_done(x); - return; - } - if (!(items_read=fread(x->x_textbuf,sizeof(char),x->x_textbuf_length,x->x_file))) { - freadln_close(x); - freadln_done(x); - return; - } - x->x_textbuf[x->x_textbuf_length-1]=0; - } while (((linebreak_pos=cstr_char_pos(x->x_textbuf,x->linebreak_chr[0]))==-1) && - !(items_read < x->x_textbuf_length)); - - if (linebreak_pos-1 < items_read - strlen(x->linebreak_chr)) { - rewind_after=items_read-linebreak_pos; - fseek(x->x_file,-(long)(rewind_after),SEEK_CUR); - } - if (linebreak_pos==-1) - linebreak_pos=items_read; - x->x_textbuf[linebreak_pos-1]='\0'; - if (!(bbuf=binbuf_new())) { - pd_error(x, "out of memory"); - freadln_close(x); - freadln_done(x); - return; - } - binbuf_text(bbuf, x->x_textbuf, linebreak_pos-1); - abuf = binbuf_getvec(bbuf); - abuf_length = binbuf_getnatom(bbuf); - if (abuf_length>0) { - if (abuf->a_type==A_SYMBOL) { - outlet_anything(x->x_message_outlet, atom_getsymbol(abuf), abuf_length-1, abuf+1); - } - else { - outlet_list(x->x_message_outlet, gensym("list"), abuf_length, abuf); - } - } - else { - outlet_list(x->x_message_outlet, atom_getsymbol(abuf), 0, abuf); - } - /* NOTE: the following line might be a problem in recursions - * and could be performed before to outlet_* as well, - * but(!) atom buffer abuf must be copied if doing so. - */ - binbuf_free(bbuf); + if (!x->x_file) { + pd_error(x, "no file opened for reading"); + freadln_done(x); + return; + } + + do { + if (linebreak_pos==-1) { + min_length<<=1; + fseek(x->x_file,-(long)(x->x_textbuf_length),SEEK_CUR); + } + if (!enlarge_cstr_if_required((const char**) &x->x_textbuf, + &x->x_textbuf_length, min_length)) { + pd_error(x, "out of memory"); + x->x_textbuf_length=0; + freadln_close(x); + freadln_done(x); + return; + } + if (!(items_read=fread(x->x_textbuf,sizeof(char),x->x_textbuf_length, + x->x_file))) { + freadln_close(x); + freadln_done(x); + return; + } + x->x_textbuf[x->x_textbuf_length-1]=0; + } while (((linebreak_pos=cstr_char_pos(x->x_textbuf, + x->linebreak_chr[0]))==-1) && + !(items_read < x->x_textbuf_length)); + + if (linebreak_pos-1 < items_read - strlen(x->linebreak_chr)) { + rewind_after=items_read-linebreak_pos; + fseek(x->x_file,-(long)(rewind_after),SEEK_CUR); + } + if (linebreak_pos==-1) { + linebreak_pos=items_read; + } + x->x_textbuf[linebreak_pos-1]='\0'; + if (!(bbuf=binbuf_new())) { + pd_error(x, "out of memory"); + freadln_close(x); + freadln_done(x); + return; + } + binbuf_text(bbuf, x->x_textbuf, linebreak_pos-1); + abuf = binbuf_getvec(bbuf); + abuf_length = binbuf_getnatom(bbuf); + if (abuf_length>0) { + if (abuf->a_type==A_SYMBOL) { + outlet_anything(x->x_message_outlet, atom_getsymbol(abuf), abuf_length-1, + abuf+1); + } else { + outlet_list(x->x_message_outlet, gensym("list"), abuf_length, abuf); + } + } else { + outlet_list(x->x_message_outlet, atom_getsymbol(abuf), 0, abuf); + } + /* NOTE: the following line might be a problem in recursions + * and could be performed before to outlet_* as well, + * but(!) atom buffer abuf must be copied if doing so. + */ + binbuf_free(bbuf); } static void freadln_free (t_freadln *x) { - freadln_close(x); - outlet_free (x->x_message_outlet); - outlet_free (x->x_readybang_outlet); + freadln_close(x); + outlet_free (x->x_message_outlet); + outlet_free (x->x_readybang_outlet); } static void *freadln_new(void) { - t_freadln *x = (t_freadln *)pd_new(freadln_class); - x->x_message_outlet = outlet_new(&x->x_ob, gensym("list")); - x->x_readybang_outlet = outlet_new(&x->x_ob, gensym("bang")); - x->x_filename=0; - x->x_file=0; - x->x_textbuf=0; - x->x_canvas = canvas_getcurrent(); - return (void *)x; + t_freadln *x = (t_freadln *)pd_new(freadln_class); + x->x_message_outlet = outlet_new(&x->x_ob, gensym("list")); + x->x_readybang_outlet = outlet_new(&x->x_ob, gensym("bang")); + x->x_filename=0; + x->x_file=0; + x->x_textbuf=0; + x->x_canvas = canvas_getcurrent(); + return (void *)x; } void freadln_setup(void) { - freadln_class = class_new(gensym("freadln"), (t_newmethod)freadln_new, - (t_method) freadln_free, sizeof(t_freadln), 0, 0); - class_addmethod(freadln_class, (t_method)freadln_open, gensym("open"), A_SYMBOL, A_DEFSYM, 0); - class_addmethod(freadln_class, (t_method)freadln_close, gensym("close"), A_NULL, 0); - class_addbang(freadln_class, (t_method)freadln_readline); + freadln_class = class_new(gensym("freadln"), (t_newmethod)freadln_new, + (t_method) freadln_free, sizeof(t_freadln), 0, 0); + class_addmethod(freadln_class, (t_method)freadln_open, gensym("open"), + A_SYMBOL, A_DEFSYM, 0); + class_addmethod(freadln_class, (t_method)freadln_close, gensym("close"), + A_NULL, 0); + class_addbang(freadln_class, (t_method)freadln_readline); - zexy_register("freadln"); + zexy_register("freadln"); } diff --git a/externals/zexy/src/fwriteln.c b/externals/zexy/src/fwriteln.c index a53360f866eaac9fc8d69fd2add701437fadd493..e6309297398c562cbf4a1665d4ab034c9bb59ea5 100644 --- a/externals/zexy/src/fwriteln.c +++ b/externals/zexy/src/fwriteln.c @@ -1,4 +1,4 @@ -/* +/* * fwriteln: writes messages continuously into a file * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -8,12 +8,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -34,227 +34,223 @@ * Franz Zotter zotter@iem.at, 2007 * Institute of Electronic Music and Acoustics * - * parts of this externals were copied from Iohannes zmoelnig's + * parts of this externals were copied from Iohannes zmoelnig's * iemmatrix */ static t_class *fwriteln_class; -typedef struct fwriteln -{ - t_object x_ob; - FILE *x_file; - char *x_filename; - char *x_textbuf; - char linebreak_chr[3]; - char format_string_afloats[10]; +typedef struct fwriteln { + t_object x_ob; + FILE *x_file; + char *x_filename; + char *x_textbuf; + char linebreak_chr[3]; + char format_string_afloats[10]; } t_fwriteln; static void fwriteln_close (t_fwriteln *x) { - if(x->x_file) - fclose(x->x_file); - x->x_file=0; - if(x->x_filename) - free(x->x_filename); - x->x_filename=0; - if(x->x_textbuf) - freebytes(x->x_textbuf, MAXPDSTRING + 1); - x->x_textbuf=0; + if(x->x_file) { + z_fclose(x->x_file); + } + x->x_file=0; + if(x->x_filename) { + free(x->x_filename); + } + x->x_filename=0; + if(x->x_textbuf) { + freebytes(x->x_textbuf, MAXPDSTRING + 1); + } + x->x_textbuf=0; } static void string_copy(const char* const from, char** to) { if ((*to = malloc(strlen(from) + 1))) { - strcpy(*to, from); - } + strcpy(*to, from); + } } static void fwriteln_open (t_fwriteln *x, t_symbol *s, t_symbol*type) { - char* filename; + char* filename; - string_copy(s->s_name, &filename); + string_copy(s->s_name, &filename); - sys_bashfilename (filename, filename); + sys_bashfilename (filename, filename); - fwriteln_close (x); + fwriteln_close (x); -/* if(0==type || type!=gensym("cr")) { - pd_error(x, "unknown type '%s'", (type)?type->s_name:""); - return; - }*/ + /* if(0==type || type!=gensym("cr")) { + pd_error(x, "unknown type '%s'", (type)?type->s_name:""); + return; + }*/ - if (type==gensym("cr")) - strcpy(x->linebreak_chr,"\n"); - else - strcpy(x->linebreak_chr,";\n"); + if (type==gensym("cr")) { + strcpy(x->linebreak_chr,"\n"); + } else { + strcpy(x->linebreak_chr,";\n"); + } - if (!(x->x_file=fopen(filename, "w"))) { - pd_error(x, "failed to open %128s",filename); - free(filename); - return; - } - string_copy(filename, &x->x_filename); - free(filename); - x->x_textbuf = (char *) getbytes (MAXPDSTRING + 1); + if (!(x->x_file=z_fopen(filename, "w"))) { + pd_error(x, "failed to open %128s",filename); + free(filename); + return; + } + string_copy(filename, &x->x_filename); + free(filename); + x->x_textbuf = (char *) getbytes (MAXPDSTRING + 1); } -static void fwriteln_write (t_fwriteln *x, t_symbol *s, int argc, t_atom *argv) +static void fwriteln_write (t_fwriteln *x, t_symbol *s, int argc, + t_atom *argv) { - int length=0; - char *text=x->x_textbuf; - if (x->x_file) { - if ((s!=gensym("list"))||(argv->a_type==A_SYMBOL)) { - snprintf(text,MAXPDSTRING,"%s ", s->s_name); - text[MAXPDSTRING-1]=0; - length=strlen(text); - if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) { - pd_error(x, "failed to write %128s",x->x_filename); - freebytes (text, MAXPDSTRING * sizeof(char)); - fwriteln_close(x); - return; - } - } - while (argc--) - { - switch (argv->a_type) { - case A_FLOAT: - snprintf(text,MAXPDSTRING,x->format_string_afloats, - atom_getfloat(argv)); - text[MAXPDSTRING-1]=0; - length=strlen(text); - if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) { - pd_error(x, "failed to write %128s",x->x_filename); - freebytes (text, MAXPDSTRING * sizeof(char)); - fwriteln_close(x); - return; - } - break; - case A_SYMBOL: - snprintf(text,MAXPDSTRING,"%s ", atom_getsymbol(argv)->s_name); - text[MAXPDSTRING-1]=0; - length=strlen(text); - if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) { - pd_error(x, "failed to write %128s",x->x_filename); - freebytes (text, MAXPDSTRING * sizeof(char)); - fwriteln_close(x); - return; - } - break; - case A_COMMA: - snprintf(text,MAXPDSTRING,", "); - length=strlen(text); - if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) { - pd_error(x, "failed to write %128s",x->x_filename); - freebytes (text, MAXPDSTRING * sizeof(char)); - fwriteln_close(x); - return; - } - break; - case A_SEMI: - snprintf(text,MAXPDSTRING,"; "); - length=strlen(text); - if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) { - pd_error(x, "failed to write %128s",x->x_filename); - freebytes (text, MAXPDSTRING * sizeof(char)); - fwriteln_close(x); - return; - } - break; - default: - break; - } - argv++; - } - - snprintf(text,MAXPDSTRING,"%s", x->linebreak_chr); + int length=0; + char *text=x->x_textbuf; + if (x->x_file) { + if ((s!=gensym("list"))||(argv->a_type==A_SYMBOL)) { + snprintf(text,MAXPDSTRING,"%s ", s->s_name); + text[MAXPDSTRING-1]=0; length=strlen(text); if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) { - pd_error(x, "failed to write %128s",x->x_filename); - freebytes (text, MAXPDSTRING * sizeof(char)); - fwriteln_close(x); - return; + pd_error(x, "failed to write %128s",x->x_filename); + freebytes (text, MAXPDSTRING * sizeof(char)); + fwriteln_close(x); + return; + } + } + while (argc--) { + switch (argv->a_type) { + case A_FLOAT: + snprintf(text,MAXPDSTRING,x->format_string_afloats, + atom_getfloat(argv)); + text[MAXPDSTRING-1]=0; + length=strlen(text); + if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) { + pd_error(x, "failed to write %128s",x->x_filename); + freebytes (text, MAXPDSTRING * sizeof(char)); + fwriteln_close(x); + return; + } + break; + case A_SYMBOL: + snprintf(text,MAXPDSTRING,"%s ", atom_getsymbol(argv)->s_name); + text[MAXPDSTRING-1]=0; + length=strlen(text); + if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) { + pd_error(x, "failed to write %128s",x->x_filename); + freebytes (text, MAXPDSTRING * sizeof(char)); + fwriteln_close(x); + return; + } + break; + case A_COMMA: + snprintf(text,MAXPDSTRING,", "); + length=strlen(text); + if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) { + pd_error(x, "failed to write %128s",x->x_filename); + freebytes (text, MAXPDSTRING * sizeof(char)); + fwriteln_close(x); + return; + } + break; + case A_SEMI: + snprintf(text,MAXPDSTRING,"; "); + length=strlen(text); + if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) { + pd_error(x, "failed to write %128s",x->x_filename); + freebytes (text, MAXPDSTRING * sizeof(char)); + fwriteln_close(x); + return; + } + break; + default: + break; } - } - else { - pd_error(x, "no file opened for writing"); - } + argv++; + } + + snprintf(text,MAXPDSTRING,"%s", x->linebreak_chr); + length=strlen(text); + if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) { + pd_error(x, "failed to write %128s",x->x_filename); + freebytes (text, MAXPDSTRING * sizeof(char)); + fwriteln_close(x); + return; + } + } else { + pd_error(x, "no file opened for writing"); + } } static void fwriteln_free (t_fwriteln *x) { - fwriteln_close(x); + fwriteln_close(x); } static void *fwriteln_new(t_symbol *s, int argc, t_atom *argv) { - int k; - int width; - int precision; - char float_format[3]="g "; - char width_str[3]=""; - char precision_str[4]=""; - char prefix[3]="%"; - t_fwriteln *x = (t_fwriteln *)pd_new(fwriteln_class); - x->x_filename=0; - x->x_file=0; - x->x_textbuf=0; - for (k=0; k<argc; k++) { - if (atom_getsymbol(&argv[k])==gensym("p")) { - if ((k+1>=argc)||(argv[k+1].a_type!=A_FLOAT)) { - post("fwriteln: no value given for precision!"); - } - else { - precision=atom_getint(&argv[++k]); - precision=(precision<0)?0:precision; - precision=(precision>30)?30:precision; - snprintf(precision_str,4,".%d",precision); - } - } - else if (atom_getsymbol(&argv[k])==gensym("w")) { - if ((k+1>=argc)||(argv[k+1].a_type!=A_FLOAT)) { - post("fwriteln: no value given for width!"); - } - else { - width=atom_getint(&argv[++k]); - width=(width<1)?1:width; - width=(width>40)?40:width; - snprintf(width_str,3,"%d",width); - } - } - else if (atom_getsymbol(&argv[k])==gensym("g")) { - float_format[0]='g'; - } - else if (atom_getsymbol(&argv[k])==gensym("f")) { - float_format[0]='f'; - } - else if (atom_getsymbol(&argv[k])==gensym("e")) { - float_format[0]='e'; - } - else if (atom_getsymbol(&argv[k])==gensym("-")) { - strcpy(prefix,"%-"); + int k; + int width; + int precision; + char float_format[3]="g "; + char width_str[3]=""; + char precision_str[4]=""; + char prefix[3]="%"; + t_fwriteln *x = (t_fwriteln *)pd_new(fwriteln_class); + x->x_filename=0; + x->x_file=0; + x->x_textbuf=0; + for (k=0; k<argc; k++) { + if (atom_getsymbol(&argv[k])==gensym("p")) { + if ((k+1>=argc)||(argv[k+1].a_type!=A_FLOAT)) { + post("fwriteln: no value given for precision!"); + } else { + precision=atom_getint(&argv[++k]); + precision=(precision<0)?0:precision; + precision=(precision>30)?30:precision; + snprintf(precision_str,4,".%d",precision); } - else if (atom_getsymbol(&argv[k])==gensym("+")) { - strcpy(prefix,"%+"); + } else if (atom_getsymbol(&argv[k])==gensym("w")) { + if ((k+1>=argc)||(argv[k+1].a_type!=A_FLOAT)) { + post("fwriteln: no value given for width!"); + } else { + width=atom_getint(&argv[++k]); + width=(width<1)?1:width; + width=(width>40)?40:width; + snprintf(width_str,3,"%d",width); } - } - x->format_string_afloats[0]='\0'; - strncat(x->format_string_afloats,prefix,2); - strncat(x->format_string_afloats,width_str,2); - strncat(x->format_string_afloats,precision_str,3); - strncat(x->format_string_afloats,float_format,2); - return (void *)x; + } else if (atom_getsymbol(&argv[k])==gensym("g")) { + float_format[0]='g'; + } else if (atom_getsymbol(&argv[k])==gensym("f")) { + float_format[0]='f'; + } else if (atom_getsymbol(&argv[k])==gensym("e")) { + float_format[0]='e'; + } else if (atom_getsymbol(&argv[k])==gensym("-")) { + strcpy(prefix,"%-"); + } else if (atom_getsymbol(&argv[k])==gensym("+")) { + strcpy(prefix,"%+"); + } + } + x->format_string_afloats[0]='\0'; + strncat(x->format_string_afloats,prefix,2); + strncat(x->format_string_afloats,width_str,2); + strncat(x->format_string_afloats,precision_str,3); + strncat(x->format_string_afloats,float_format,2); + return (void *)x; } void fwriteln_setup(void) { - fwriteln_class = class_new(gensym("fwriteln"), (t_newmethod)fwriteln_new, - (t_method) fwriteln_free, sizeof(t_fwriteln), CLASS_DEFAULT, A_GIMME, 0); - class_addmethod(fwriteln_class, (t_method)fwriteln_open, gensym("open"), A_SYMBOL, A_DEFSYM, 0); - class_addmethod(fwriteln_class, (t_method)fwriteln_close, gensym("close"), A_NULL, 0); - class_addanything(fwriteln_class, (t_method)fwriteln_write); + fwriteln_class = class_new(gensym("fwriteln"), (t_newmethod)fwriteln_new, + (t_method) fwriteln_free, sizeof(t_fwriteln), CLASS_DEFAULT, A_GIMME, 0); + class_addmethod(fwriteln_class, (t_method)fwriteln_open, gensym("open"), + A_SYMBOL, A_DEFSYM, 0); + class_addmethod(fwriteln_class, (t_method)fwriteln_close, gensym("close"), + A_NULL, 0); + class_addanything(fwriteln_class, (t_method)fwriteln_write); - zexy_register("fwriteln"); + zexy_register("fwriteln"); } diff --git a/externals/zexy/src/glue.c b/externals/zexy/src/glue.c index 6821d3ea6ec0b546d9747a0268151326b8e6b75f..e3a2ee7b7a3c974b54e06861598ed2fc51441de1 100644 --- a/externals/zexy/src/glue.c +++ b/externals/zexy/src/glue.c @@ -1,4 +1,4 @@ -/* +/* * glue: glue two lists together (use [list append] instead) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -22,8 +22,7 @@ static t_class *glue_class; -typedef struct _zglue -{ +typedef struct _zglue { t_object x_obj; t_atom *ap2, *ap; @@ -32,17 +31,21 @@ typedef struct _zglue t_int changed; } t_glue; -static void glue_lst2(t_glue *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void glue_lst2(t_glue *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { x->changed = 1; if (x->n2 != argc) { freebytes(x->ap2, x->n2 * sizeof(t_atom)); x->n2 = argc; x->ap2 = copybytes(argv, argc * sizeof(t_atom)); - } else memcpy(x->ap2, argv, argc * sizeof(t_atom)); + } else { + memcpy(x->ap2, argv, argc * sizeof(t_atom)); + } } -static void glue_lst(t_glue *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void glue_lst(t_glue *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { if (x->n != x->n2+argc) { freebytes(x->ap, x->n * sizeof(t_atom)); @@ -50,7 +53,9 @@ static void glue_lst(t_glue *x, t_symbol* UNUSED(s), int argc, t_atom *argv) x->n = x->n1+x->n2; x->ap = (t_atom *)getbytes(sizeof(t_atom)*x->n); memcpy(x->ap+argc, x->ap2, x->n2*sizeof(t_atom)); - } else if ((x->n1 != argc)||x->changed)memcpy(x->ap+argc, x->ap2, x->n2*sizeof(t_atom)); + } else if ((x->n1 != argc)||x->changed) { + memcpy(x->ap+argc, x->ap2, x->n2*sizeof(t_atom)); + } x->n1 = argc; memcpy(x->ap, argv, x->n1*sizeof(t_atom)); @@ -63,7 +68,7 @@ static void glue_lst(t_glue *x, t_symbol* UNUSED(s), int argc, t_atom *argv) static void glue_bang(t_glue *x) { if (x->changed) { - if (x->n1+x->n2 != x->n){ + if (x->n1+x->n2 != x->n) { t_atom *ap = (t_atom*)getbytes(sizeof(t_atom)*(x->n1+x->n2)); memcpy(ap, x->ap, x->n1*sizeof(t_atom)); freebytes(x->ap, sizeof(t_atom)*x->n); @@ -93,20 +98,22 @@ static void *glue_new(t_symbol* UNUSED(s), int argc, t_atom *argv) x->ap=x->ap2 = 0; x->changed = 0; - if (argc)glue_lst2(x, gensym("list"), argc, argv); + if (argc) { + glue_lst2(x, gensym("list"), argc, argv); + } return (x); } static void glue_help(t_glue*x) { - post("\n"HEARTSYMBOL" glue\t\t:: glue together 2 lists (like [list append])"); + post("\n"HEARTSYMBOL " glue\t\t:: glue together 2 lists (like [list append])"); } void glue_setup(void) { - glue_class = class_new(gensym("glue"), (t_newmethod)glue_new, - (t_method)glue_free, sizeof(t_glue), 0, A_GIMME, 0); + glue_class = class_new(gensym("glue"), (t_newmethod)glue_new, + (t_method)glue_free, sizeof(t_glue), 0, A_GIMME, 0); class_addlist(glue_class, glue_lst); class_addmethod (glue_class, (t_method)glue_lst2, gensym(""), A_GIMME, 0); class_addbang(glue_class, glue_bang); diff --git a/externals/zexy/src/index.c b/externals/zexy/src/index.c index 405bc19979ade1b99d0195e7895075c9e967718d..9848945ddf0e27e182d57960dadaf92f38d7c76c 100644 --- a/externals/zexy/src/index.c +++ b/externals/zexy/src/index.c @@ -1,4 +1,4 @@ -/* +/* * index: associative dictionary * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,18 +7,18 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ -/* +/* (c) 2005:forum::für::umläute:2000 "index" simulates an associative index :: that is : convert a symbol to an index @@ -32,7 +32,7 @@ TODO: "add" at a specific position (like "add 10 hallo" of "add hallo 10") (??) FIXED TODO: "delete" from a specific position (like "delete 4" deletes the 4th element) FIXED TODO: get the number of stored entries ("bang") FIXED - + TODO: resize the array if it gets to small */ @@ -44,8 +44,7 @@ static t_class *index_class; -typedef struct _index -{ +typedef struct _index { t_object x_obj; int entries, maxentries; @@ -64,34 +63,42 @@ typedef struct _index * LATER: shouldn't this return "-1" on failure ? */ static int find_last(t_symbol **names, int maxentries) -{ /* returns the index of the last entry (0..(maxentries-1)) */ - while (maxentries--) if (names[maxentries]) return maxentries; +{ + /* returns the index of the last entry (0..(maxentries-1)) */ + while (maxentries--) if (names[maxentries]) { + return maxentries; + } return 0; } -/* search the array for "key" - * if it is not there, return "-1" +/* search the array for "key" + * if it is not there, return "-1" */ static int find_item(const t_symbol *key, t_symbol **names, int maxentries) -{ /* returns index (0..[maxentries-1?]) on success; -1 if the item could not be found */ +{ + /* returns index (0..[maxentries-1?]) on success; -1 if the item could not be found */ int i=-1; int max = find_last(names, maxentries); - + while (++i<=max) - if (names[i] && key==names[i]) return i; - + if (names[i] && key==names[i]) { + return i; + } + return -1; } /* find the first NULL entry in the array - * return "-1" if none can be found + * return "-1" if none can be found */ static int find_free(t_symbol **names, int maxentries) { int i=0; while (i<maxentries) { - if (!names[i]) return i; + if (!names[i]) { + return i; + } i++; } return -1; @@ -106,21 +113,22 @@ static void index_add(t_index *x, t_symbol *s, t_float f); static void index_symbol(t_index *x, t_symbol *s) { int element; - if ( (element = find_item(s, x->names, x->maxentries)+1) ) + if ( (element = find_item(s, x->names, x->maxentries)+1) ) { outlet_float(x->x_obj.ob_outlet, (t_float)element); - else if (x->auto_mode) /* not yet stored: add automatically */ + } else if (x->auto_mode) { /* not yet stored: add automatically */ index_add(x, s, 0); - else outlet_float(x->x_obj.ob_outlet, 0.f); /* not yet stored but do not add */ + } else { + outlet_float(x->x_obj.ob_outlet, 0.f); /* not yet stored but do not add */ + } } /* output the entry at a given index */ static void index_float(t_index *x, t_float findex) { int iindex = (int)findex; - if ((iindex > 0) && (iindex <= x->maxentries) && (x->names[iindex-1])) - { - /* TB: output symbol to outlet */ - outlet_symbol (x->x_obj.ob_outlet,x->names[iindex-1]); + if ((iindex > 0) && (iindex <= x->maxentries) && (x->names[iindex-1])) { + /* TB: output symbol to outlet */ + outlet_symbol (x->x_obj.ob_outlet,x->names[iindex-1]); } } @@ -131,14 +139,17 @@ static void index_add(t_index *x, t_symbol *s, t_float f) int newentry=(int)f; if (! (find_item(s, x->names, x->maxentries)+1) ) { - if (x->auto_resize && (x->entries==x->maxentries || newentry>=x->maxentries)){ + if (x->auto_resize && (x->entries==x->maxentries + || newentry>=x->maxentries)) { /* do some resizing */ int maxentries=(newentry>x->maxentries)?newentry:(x->maxentries*2); int i; t_symbol**buf=(t_symbol **)getbytes(sizeof(t_symbol *) * maxentries); - if(buf!=0){ + if(buf!=0) { memcpy(buf, x->names, sizeof(t_symbol *) * x->maxentries); - for(i=x->maxentries; i<maxentries; i++)buf[i]=0; + for(i=x->maxentries; i<maxentries; i++) { + buf[i]=0; + } freebytes(x->names, sizeof(t_symbol *) * x->maxentries); @@ -148,10 +159,12 @@ static void index_add(t_index *x, t_symbol *s, t_float f) } if ( x->entries < x->maxentries ) { - if(newentry>0){ + if(newentry>0) { newentry--; - if(x->names[newentry]){ /* it is already taken! */ - z_verbose(1, "index :: couldn't add element '%s' at position %d (already taken)", s->s_name, newentry+1); + if(x->names[newentry]) { /* it is already taken! */ + z_verbose(1, + "index :: couldn't add element '%s' at position %d (already taken)", + s->s_name, newentry+1); outlet_float(x->x_obj.ob_outlet, -1.f); return; } @@ -159,32 +172,39 @@ static void index_add(t_index *x, t_symbol *s, t_float f) newentry=find_free(x->names, x->maxentries); } if (newentry + 1) { - x->entries++; - x->names[newentry]=s; - outlet_float(x->x_obj.ob_outlet, (t_float)newentry+1); + x->entries++; + x->names[newentry]=s; + outlet_float(x->x_obj.ob_outlet, (t_float)newentry+1); return; - } else error("index :: couldn't find any place for new entry"); - } else error("index :: max number of elements (%d) reached !", x->maxentries); - } else z_verbose(1, "index :: element '%s' already exists", s->s_name); + } else { + error("index :: couldn't find any place for new entry"); + } + } else { + error("index :: max number of elements (%d) reached !", x->maxentries); + } + } else { + z_verbose(1, "index :: element '%s' already exists", s->s_name); + } /* couldn't add the symbol to our index table */ outlet_float(x->x_obj.ob_outlet, -1.f); } /* delete a symbol from the map (if it is in there) */ -static void index_delete(t_index *x, t_symbol* UNUSED(s), int argc, t_atom*argv) +static void index_delete(t_index *x, t_symbol* UNUSED(s), int argc, + t_atom*argv) { int idx=-1; - if(argc!=1){ + if(argc!=1) { error("index :: delete what ?"); return; } else { - if(argv->a_type==A_FLOAT){ + if(argv->a_type==A_FLOAT) { idx=atom_getint(argv)-1; - } else if (argv->a_type==A_SYMBOL){ + } else if (argv->a_type==A_SYMBOL) { idx=find_item(atom_getsymbol(argv),x->names, x->maxentries); } else { error("index :: delete what ?"); - return; + return; } } @@ -223,8 +243,8 @@ static void index_dump(t_index *x) { t_atom ap[2]; int i=0; - for(i=0; i<x->maxentries; i++){ - if(x->names[i]){ + for(i=0; i<x->maxentries; i++) { + if(x->names[i]) { SETSYMBOL(ap, x->names[i]); SETFLOAT(ap+1, i+1); outlet_list(x->x_obj.ob_outlet, 0, 2, ap); @@ -233,12 +253,13 @@ static void index_dump(t_index *x) } /* compact all entries, removing all holes in the map */ -static void index_compact(t_index *x){ +static void index_compact(t_index *x) +{ int i,j; - for(i=0; i<x->entries; i++){ - if(!x->names[i]){ - for(j=i+1; j<x->maxentries; j++){ - if(x->names[j]){ + for(i=0; i<x->entries; i++) { + if(!x->names[i]) { + for(j=i+1; j<x->maxentries; j++) { + if(x->names[j]) { x->names[i]=x->names[j]; x->names[j]=0; break; @@ -248,14 +269,16 @@ static void index_compact(t_index *x){ } } /* sort the map alphabetically */ -static void index_sort(t_index *x){ +static void index_sort(t_index *x) +{ int entries=x->entries; int step=entries; int loops=1, n; t_symbol**buf=x->names; - index_compact(x); /* couldn't we do it more "in-place", e.g. don't touch empty slots ? */ + index_compact( + x); /* couldn't we do it more "in-place", e.g. don't touch empty slots ? */ - while(step>1){ + while(step>1) { int i = loops; step+=step%2; step>>=1; @@ -296,10 +319,14 @@ static void *index_new(t_symbol* UNUSED(s), int argc, t_atom *argv) if (argc--) { maxentries = (int)atom_getfloat(argv++); - if (argc) automod = (int)atom_getfloat(argv++); + if (argc) { + automod = (int)atom_getfloat(argv++); + } } - if (maxentries<1) maxentries=128; + if (maxentries<1) { + maxentries=128; + } buf = (t_symbol **)getbytes(sizeof(t_symbol *) * maxentries); @@ -310,7 +337,9 @@ static void *index_new(t_symbol* UNUSED(s), int argc, t_atom *argv) x->auto_mode = !(!automod); x->auto_resize = 1; - while (maxentries--) buf[maxentries]=0; + while (maxentries--) { + buf[maxentries]=0; + } outlet_new(&x->x_obj, gensym("float")); @@ -326,7 +355,7 @@ static void index_free(t_index *x) static void index_helper(t_index *x) { endpost(); - post(""HEARTSYMBOL" index :: index symbols to indices"); + post(""HEARTSYMBOL " index :: index symbols to indices"); post("<symbol> : look up the <symbol> in the index and return it's index"); post("<int> : look up the element at index <int> in the index"); post("'add <symbol>' : add a new symbol to the index-map"); @@ -351,23 +380,28 @@ static void index_helper(t_index *x) void index_setup(void) { index_class = class_new(gensym("index"), - (t_newmethod)index_new, (t_method)index_free, - sizeof(t_index), 0, A_GIMME, 0); + (t_newmethod)index_new, (t_method)index_free, + sizeof(t_index), 0, A_GIMME, 0); class_addsymbol(index_class, index_symbol); class_addmethod(index_class, (t_method)index_reset, gensym("reset"), 0); - class_addmethod(index_class, (t_method)index_delete, gensym("delete"), A_GIMME, 0); + class_addmethod(index_class, (t_method)index_delete, gensym("delete"), + A_GIMME, 0); /* class_addmethod(index_class, (t_method)index_add, gensym("add"), A_SYMBOL, 0); */ - class_addmethod(index_class, (t_method)index_add, gensym("add"), A_SYMBOL, A_DEFFLOAT, 0); + class_addmethod(index_class, (t_method)index_add, gensym("add"), A_SYMBOL, + A_DEFFLOAT, 0); - class_addmethod(index_class, (t_method)index_auto, gensym("auto"), A_FLOAT, 0); - class_addmethod(index_class, (t_method)index_resize, gensym("resize"), A_FLOAT, 0); + class_addmethod(index_class, (t_method)index_auto, gensym("auto"), + A_FLOAT, 0); + class_addmethod(index_class, (t_method)index_resize, gensym("resize"), + A_FLOAT, 0); class_addfloat(index_class, (t_method)index_float); class_addbang(index_class, (t_method)index_bang); class_addmethod(index_class, (t_method)index_sort, gensym("sort"), 0); - class_addmethod(index_class, (t_method)index_compact, gensym("compact"), 0); + class_addmethod(index_class, (t_method)index_compact, gensym("compact"), + 0); class_addmethod(index_class, (t_method)index_dump, gensym("dump"), 0); class_addmethod(index_class, (t_method)index_helper, gensym("help"), 0); diff --git a/externals/zexy/src/length.c b/externals/zexy/src/length.c index 6863cff7842e11a287d55afc951f9fd3ed75af29..3a745d5b82af89d4776507dd6fa482279ce9c8fc 100644 --- a/externals/zexy/src/length.c +++ b/externals/zexy/src/length.c @@ -1,4 +1,4 @@ -/* +/* * length :: get the length of a list (use [list length] instead) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -20,16 +20,17 @@ #include "zexy.h" static t_class *length_class; -typedef struct _length -{ +typedef struct _length { t_object x_obj; } t_length; -static void length_list(t_length *x, t_symbol* UNUSED(s), int argc, t_atom* UNUSED(argv)) +static void length_list(t_length *x, t_symbol* UNUSED(s), int argc, + t_atom* UNUSED(argv)) { outlet_float(x->x_obj.ob_outlet, (t_float)argc); } -static void length_any(t_length *x, t_symbol* UNUSED(s), int argc, t_atom* UNUSED(argv)) +static void length_any(t_length *x, t_symbol* UNUSED(s), int argc, + t_atom* UNUSED(argv)) { outlet_float(x->x_obj.ob_outlet, (t_float)argc+1); } @@ -44,7 +45,7 @@ static void *length_new(void) void length_setup(void) { length_class = class_new(gensym("length"), (t_newmethod)length_new, 0, - sizeof(t_length), 0, A_DEFFLOAT, 0); + sizeof(t_length), 0, A_DEFFLOAT, 0); class_addlist(length_class, (t_method)length_list); class_addanything(length_class, (t_method)length_any); diff --git a/externals/zexy/src/lifop.c b/externals/zexy/src/lifop.c index 69e6c5b96f9ec45ba0ecd1a7757fed93c62dcf80..8dd0963da2df191a9a2db596724a2c8ca90bbe0f 100644 --- a/externals/zexy/src/lifop.c +++ b/externals/zexy/src/lifop.c @@ -1,4 +1,4 @@ -/* +/* * lifop: a LIFO (last-in first-out) with priorities * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -45,8 +45,7 @@ typedef struct _lifop_prioritylist { t_lifop_list *lifo_start; struct _lifop_prioritylist *next; } t_lifop_prioritylist; -typedef struct _lifop -{ +typedef struct _lifop { t_object x_obj; t_lifop_prioritylist *lifo_list; unsigned long counter; @@ -54,37 +53,41 @@ typedef struct _lifop t_outlet *x_out, *x_infout; } t_lifop; -static t_lifop_prioritylist*lifop_genprioritylist(t_lifop*x, t_float priority) +static t_lifop_prioritylist*lifop_genprioritylist(t_lifop*x, + t_float priority) { t_lifop_prioritylist*result=0, *dummy=0; - if(x->lifo_list!=0) - { - /* - * do we already have this priority ? - * if so, just return a pointer to that lifo - * else set the dummy-pointer to the lifo BEFORE the new one - */ - dummy=x->lifo_list; - while(dummy!=0){ - t_float prio=dummy->priority; - if(prio==priority)return dummy; - if(prio>priority)break; - result=dummy; - dummy=dummy->next; + if(x->lifo_list!=0) { + /* + * do we already have this priority ? + * if so, just return a pointer to that lifo + * else set the dummy-pointer to the lifo BEFORE the new one + */ + dummy=x->lifo_list; + while(dummy!=0) { + t_float prio=dummy->priority; + if(prio==priority) { + return dummy; + } + if(prio>priority) { + break; } - dummy=result; + result=dummy; + dummy=dummy->next; } + dummy=result; + } /* create a new priority list */ result = (t_lifop_prioritylist*)getbytes(sizeof( t_lifop_prioritylist)); result->priority=priority; result->lifo_start=0; /* insert it into the list of priority lists */ - if(dummy==0){ + if(dummy==0) { /* insert at the beginning */ result->next=x->lifo_list; - x->lifo_list=result; + x->lifo_list=result; } else { /* post insert into the list of LIFOs */ result->next=dummy->next; @@ -99,18 +102,17 @@ static int add2lifo(t_lifop_prioritylist*lifoprio, int argc, t_atom *argv) { t_lifop_list*entry=0; - if(lifoprio==0){ + if(lifoprio==0) { error("plifo: no lifos available"); return -1; } /* create an entry for the lifo */ - if(!(entry = (t_lifop_list*)getbytes(sizeof(t_lifop_list)))) - { - error("plifo: couldn't add entry to end of lifo"); - return -1; - } - if(!(entry->argv=(t_atom*)getbytes(argc*sizeof(t_atom)))){ + if(!(entry = (t_lifop_list*)getbytes(sizeof(t_lifop_list)))) { + error("plifo: couldn't add entry to end of lifo"); + return -1; + } + if(!(entry->argv=(t_atom*)getbytes(argc*sizeof(t_atom)))) { error("plifo: couldn't add list to lifo!"); return -1; } @@ -125,23 +127,27 @@ static int add2lifo(t_lifop_prioritylist*lifoprio, int argc, t_atom *argv) } static t_lifop_prioritylist*getLifo(t_lifop_prioritylist*plifo) { - if(plifo==0)return 0; + if(plifo==0) { + return 0; + } /* get the highest non-empty lifo */ - while(plifo->lifo_start==0 && plifo->next!=0)plifo=plifo->next; + while(plifo->lifo_start==0 && plifo->next!=0) { + plifo=plifo->next; + } return plifo; } -static void lifop_list(t_lifop *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void lifop_list(t_lifop *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { t_lifop_prioritylist*plifo=0; if(!(plifo=lifop_genprioritylist(x, x->priority))) { error("[lifop]: couldn't get priority lifo"); return; } - if(!add2lifo(plifo, argc, argv)) - { - x->counter++; - } + if(!add2lifo(plifo, argc, argv)) { + x->counter++; + } } static void lifop_bang(t_lifop *x) @@ -151,11 +157,11 @@ static void lifop_bang(t_lifop *x) t_atom*argv=0; int argc=0; - if(!(plifo=getLifo(x->lifo_list))){ + if(!(plifo=getLifo(x->lifo_list))) { outlet_bang(x->x_infout); return; } - if(!(lifo=plifo->lifo_start)){ + if(!(lifo=plifo->lifo_start)) { outlet_bang(x->x_infout); return; } @@ -182,25 +188,27 @@ static void lifop_bang(t_lifop *x) freebytes(argv, argc*sizeof(t_atom)); } static void lifop_query(t_lifop*x) -{ +{ z_verbose(1, "%d elements in lifo", (int)x->counter); - + outlet_float(x->x_infout, (t_float)x->counter); } static void lifop_clear(t_lifop *x) { t_lifop_prioritylist *lifo_list=x->lifo_list; - while(lifo_list){ + while(lifo_list) { t_lifop_prioritylist *lifo_list2=lifo_list; t_lifop_list*lifo=lifo_list2->lifo_start; lifo_list=lifo_list->next; - while(lifo){ + while(lifo) { t_lifop_list*lifo2=lifo; lifo=lifo->next; - if(lifo2->argv)freebytes(lifo2->argv, lifo2->argc*sizeof(t_atom)); + if(lifo2->argv) { + freebytes(lifo2->argv, lifo2->argc*sizeof(t_atom)); + } lifo2->argv=0; lifo2->argc=0; lifo2->next=0; @@ -217,7 +225,7 @@ static void lifop_clear(t_lifop *x) /* this is NOT re-entrant! */ static void lifop_dump(t_lifop*x) -{ +{ t_lifop_prioritylist*plifo=getLifo(x->lifo_list); if(!plifo||!plifo->lifo_start) { @@ -264,21 +272,25 @@ static void *lifop_new(void) } static void lifop_help(t_lifop*x) { - post("\n"HEARTSYMBOL" lifop\t\t:: a Last-In-First-Out queue with priorities"); + post("\n"HEARTSYMBOL " lifop\t\t:: a Last-In-First-Out queue with priorities"); } void lifop_setup(void) { lifop_class = class_new(gensym("lifop"), (t_newmethod)lifop_new, - (t_method)lifop_free, sizeof(t_lifop), 0, A_NULL); + (t_method)lifop_free, sizeof(t_lifop), 0, A_NULL); class_addbang (lifop_class, lifop_bang); class_addlist (lifop_class, lifop_list); - class_addmethod (lifop_class, (t_method)lifop_clear, gensym("clear"), A_NULL); - class_addmethod (lifop_class, (t_method)lifop_dump, gensym("dump"), A_NULL); + class_addmethod (lifop_class, (t_method)lifop_clear, gensym("clear"), + A_NULL); + class_addmethod (lifop_class, (t_method)lifop_dump, gensym("dump"), + A_NULL); - class_addmethod (lifop_class, (t_method)lifop_query, gensym("info"), A_NULL); - class_addmethod (lifop_class, (t_method)lifop_help, gensym("help"), A_NULL); + class_addmethod (lifop_class, (t_method)lifop_query, gensym("info"), + A_NULL); + class_addmethod (lifop_class, (t_method)lifop_help, gensym("help"), + A_NULL); zexy_register("lifop"); } diff --git a/externals/zexy/src/limiter~.c b/externals/zexy/src/limiter~.c index ca6cb113a33c725ffe4bb56bd5dd22c0d9661b3b..b6c8523693af9f8fbef8a81679f710484d7fba0d 100644 --- a/externals/zexy/src/limiter~.c +++ b/externals/zexy/src/limiter~.c @@ -1,4 +1,4 @@ -/* +/* * limiter~: limit/compress signals * * (c) 1999-2011 IOhannes m zmölnig, forum::fÃŒr::umlÀute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -21,16 +21,16 @@ /* --------------------------------- limiter/compressor --------------------------------- - + for details on how it works watch out for "http://iem.kug.ac.at/~zmoelnig/pd" ...and search for "limiter" mail2me4more!n4m8ion : zmoelnig@iem.kug.ac.at */ -/* - this is a limiter/compressor-object - the limiter is based on Falkner's thesis +/* + this is a limiter/compressor-object + the limiter is based on Falkner's thesis "Entwicklung eines digitalen Stereo-limiters mit Hilfe des Signalprozessors DSP56001" pp.14 2108:forum::fÃŒr::umlÀute:1999 all rights reserved and no warranties... @@ -75,7 +75,8 @@ static t_sample SINC[9]; #define PI 3.1415926535897932384626433832795029L /* pi */ -static void init_sinc(void) { +static void init_sinc(void) +{ /* calculate the sinc (windowed with a cosine) */ int i=0; for(i=0; i<9; i++) { @@ -90,32 +91,30 @@ static void init_sinc(void) { static t_class *limiter_class; -typedef struct _limctl -{ +typedef struct _limctl { /* variables changed by user */ t_float limit; t_float hold_samples; t_float change_of_amplification; } t_limctl; -typedef struct _cmpctl -{ - t_float treshold, ratio; /* uclimit is the very same is the limiter1-limit (decalculated relative to our treshold) */ - t_float uclimit, climit_inverse; /* climit == compressed limit (uclimit == uncompressed limit) */ +typedef struct _cmpctl { + t_float treshold, + ratio; /* uclimit is the very same is the limiter1-limit (decalculated relative to our treshold) */ + t_float uclimit, + climit_inverse; /* climit == compressed limit (uclimit == uncompressed limit) */ t_float limiter_limit; /* start limiting (stop compressing); == tresh/limit; */ t_float treshdB, oneminusratio; } t_cmpctl; -typedef struct _inbuf -{ +typedef struct _inbuf { t_sample* ringbuf; int buf_position; } t_inbuf; -typedef struct _limiter -{ +typedef struct _limiter { t_object x_obj; int number_of_inlets, s_n; @@ -146,10 +145,11 @@ typedef struct _limiter /* calcs */ static t_float calc_holdsamples(t_float htime, int buf) -{ +{ /* hold_time must be greater than buffer_time to make sure that any peak_sample is amplified with its own factor */ t_float min_hold = buf / sys_getsr(); - return (0.001 * sys_getsr() * ((htime > min_hold)?htime:((min_hold > 50)?min_hold:50))); + return (0.001 * sys_getsr() * ((htime > min_hold)?htime:(( + min_hold > 50)?min_hold:50))); } static t_float calc_coa(t_float hlife) @@ -160,7 +160,8 @@ static t_float calc_coa(t_float hlife) static void set_uclimit(t_limiter *x) { t_cmpctl *c = x->cmp; - t_float limit = x->val1->limit, limitdB = rmstodb(limit), ratio = c->ratio, tresh = c->treshold, treshdB = rmstodb(tresh); + t_float limit = x->val1->limit, limitdB = rmstodb(limit), ratio = c->ratio, + tresh = c->treshold, treshdB = rmstodb(tresh); c->climit_inverse = limit / tresh; c->uclimit = tresh / dbtorms(treshdB+(limitdB - treshdB)/ratio); @@ -175,7 +176,9 @@ static void set_treshold(t_limiter *x, t_float treshold) { t_cmpctl *c = x->cmp; t_float tresh = dbtorms (treshold); - if (tresh > x->val1->limit) tresh = x->val1->limit; + if (tresh > x->val1->limit) { + tresh = x->val1->limit; + } c->treshold = tresh; @@ -184,7 +187,9 @@ static void set_treshold(t_limiter *x, t_float treshold) static void set_ratio(t_limiter *x, t_float ratio) { - if (ratio < 0) ratio = 1; + if (ratio < 0) { + ratio = 1; + } x->cmp->ratio = ratio; set_uclimit(x); @@ -226,18 +231,24 @@ static void set_COMPRESS(t_limiter *x) } static void set_bufsize(t_limiter *x, int size) -{ +{ /* this is really unneeded...and for historical reasons only */ - if (size < BUFSIZE) size = BUFSIZE; + if (size < BUFSIZE) { + size = BUFSIZE; + } x->buf_size = size + XTRASAMPS; } static void set_limit(t_limiter *x, t_floatarg limit) { - if (limit < 0.00001) limit = 100; + if (limit < 0.00001) { + limit = 100; + } x->val1->limit = dbtorms(limit); - if (x->val1->limit < x->cmp->treshold) x->cmp->treshold = x->val1->limit; + if (x->val1->limit < x->cmp->treshold) { + x->cmp->treshold = x->val1->limit; + } set_uclimit(x); } @@ -245,25 +256,29 @@ static void set_limits(t_limiter *x, t_floatarg limit1, t_floatarg limit2) { t_float lim1, lim2; - if (limit1 < 0.00001) limit1 = 100; + if (limit1 < 0.00001) { + limit1 = 100; + } lim1 = dbtorms(limit1); lim2 = dbtorms(limit2); - if (lim2 < lim1) - { - lim2 = 2*lim1; /* this is to prevent lim2 (which should trigger the FAST regulation) */ - x->mode = 0; /* to underrun the SLOW regulation; this would cause distortion */ - } + if (lim2 < lim1) { + lim2 = 2*lim1; /* this is to prevent lim2 (which should trigger the FAST regulation) */ + x->mode = 0; /* to underrun the SLOW regulation; this would cause distortion */ + } x->val1->limit = lim1; x->val2->limit = lim1/lim2; - if (lim1 < x->cmp->treshold) x->cmp->treshold = lim1; + if (lim1 < x->cmp->treshold) { + x->cmp->treshold = lim1; + } set_uclimit(x); } -static void set1(t_limiter *x, t_floatarg limit, t_floatarg hold, t_floatarg release) +static void set1(t_limiter *x, t_floatarg limit, t_floatarg hold, + t_floatarg release) { t_float lim = dbtorms(limit); @@ -271,12 +286,15 @@ static void set1(t_limiter *x, t_floatarg limit, t_floatarg hold, t_floatarg rel x->val1->hold_samples = calc_holdsamples(hold, x->buf_size); x->val1->change_of_amplification = calc_coa(release); - if (lim < x->cmp->treshold) x->cmp->treshold = lim; + if (lim < x->cmp->treshold) { + x->cmp->treshold = lim; + } set_uclimit(x); } -static void set2(t_limiter *x, t_floatarg limit, t_floatarg hold, t_floatarg release) +static void set2(t_limiter *x, t_floatarg limit, t_floatarg hold, + t_floatarg release) { t_float lim = dbtorms(limit); x->val2->limit = (lim > x->val1->limit)?(x->val1->limit/lim):.5; @@ -286,16 +304,24 @@ static void set2(t_limiter *x, t_floatarg limit, t_floatarg hold, t_floatarg rel -static void set_compressor(t_limiter *x, t_floatarg limit, t_floatarg treshold, t_floatarg ratio) +static void set_compressor(t_limiter *x, t_floatarg limit, + t_floatarg treshold, t_floatarg ratio) { t_cmpctl *c = x->cmp; t_float lim = dbtorms(limit); t_float tresh = dbtorms(treshold); - if ((limit == 0) && (treshold == 0) && (ratio == 0)) {set_mode(x, COMPRESS); return;} + if ((limit == 0) && (treshold == 0) && (ratio == 0)) { + set_mode(x, COMPRESS); + return; + } - if (tresh > lim) tresh = lim; - if (ratio < 0.) ratio = 1.; + if (tresh > lim) { + tresh = lim; + } + if (ratio < 0.) { + ratio = 1.; + } c->ratio = ratio; x->val1->limit = lim; @@ -322,36 +348,41 @@ static void status(t_limiter *x) switch (x->mode) { case LIMIT1: post("%d-channel crack-limiter @ %fkHz\n" - "\noutput-limit\t= %fdB\nhold1\t\t= %fms\nrelease1\t= %fms\ncrack-limit\t= %fdB\nhold2\t\t= %fms\nrelease2\t= %fms\n" - "\namplify\t\t= %fdB\n", - x->number_of_inlets, sr, - rmstodb(v1->limit), (v1->hold_samples) / sr, LN2 / (log(v1->change_of_amplification) * sr), - rmstodb(v1->limit / v2->limit), (v2->hold_samples) / sr, LN2 / (log(v2->change_of_amplification) * sr), - x->amplification); + "\noutput-limit\t= %fdB\nhold1\t\t= %fms\nrelease1\t= %fms\ncrack-limit\t= %fdB\nhold2\t\t= %fms\nrelease2\t= %fms\n" + "\namplify\t\t= %fdB\n", + x->number_of_inlets, sr, + rmstodb(v1->limit), (v1->hold_samples) / sr, + LN2 / (log(v1->change_of_amplification) * sr), + rmstodb(v1->limit / v2->limit), (v2->hold_samples) / sr, + LN2 / (log(v2->change_of_amplification) * sr), + x->amplification); break; case LIMIT0: post("%d-channel limiter @ %fkHz\n" - "\noutput-limit\t= %fdB\nhold\t\t= %fms\nrelease\t\t= %fms\n" - "\namplify\t\t= %fdB\n", - x->number_of_inlets, sr, - rmstodb(v1->limit), (v1->hold_samples) / sr, LN2 / (log(v1->change_of_amplification) * sr), - rmstodb(x->amplification)); + "\noutput-limit\t= %fdB\nhold\t\t= %fms\nrelease\t\t= %fms\n" + "\namplify\t\t= %fdB\n", + x->number_of_inlets, sr, + rmstodb(v1->limit), (v1->hold_samples) / sr, + LN2 / (log(v1->change_of_amplification) * sr), + rmstodb(x->amplification)); break; case COMPRESS: post("%d-channel compressor @ %fkHz\n" - "\noutput-limit\t= %fdB\ntreshold\t= %fdB\ninput-limit\t= %f\nratio\t\t= 1:%f\n" - "\nhold\t\t= %fms\nrelease\t\t= %fms\n" - "\namplify\t\t= %fdB\n", - x->number_of_inlets, sr, - rmstodb(c->treshold * c->climit_inverse), rmstodb(c->treshold), rmstodb(c->treshold / c->uclimit), 1./c->ratio, - (v1->hold_samples) / sr, LN2 / (log(v1->change_of_amplification) * sr), - rmstodb(x->amplification)); + "\noutput-limit\t= %fdB\ntreshold\t= %fdB\ninput-limit\t= %f\nratio\t\t= 1:%f\n" + "\nhold\t\t= %fms\nrelease\t\t= %fms\n" + "\namplify\t\t= %fdB\n", + x->number_of_inlets, sr, + rmstodb(c->treshold * c->climit_inverse), rmstodb(c->treshold), + rmstodb(c->treshold / c->uclimit), 1./c->ratio, + (v1->hold_samples) / sr, LN2 / (log(v1->change_of_amplification) * sr), + rmstodb(x->amplification)); } } static void limiter_tilde_helper(t_limiter *x) { - post("\n\n"HEARTSYMBOL" %d-channel limiter-object: mode %d", x->number_of_inlets, x->mode); + post("\n\n"HEARTSYMBOL " %d-channel limiter-object: mode %d", + x->number_of_inlets, x->mode); poststring("\n'mode <mode>'\t\t\t: (0_limiter, 1_crack-limiter, 2_compressor)"); poststring("\n'LIMIT'\t\t\t\t: set to LIMITer"); poststring("\n'CRACK'\t\t\t\t: set to CRACK-limiter"); @@ -360,26 +391,26 @@ static void limiter_tilde_helper(t_limiter *x) switch (x->mode) { case LIMIT0: poststring("\n'limit <limit>'\t\t\t: set limit (in dB)" - "\n'set <limit><htime><rtime>'\t: set limiter"); + "\n'set <limit><htime><rtime>'\t: set limiter"); break; case LIMIT1: poststring("\n'limits <limit1><limit2>'\t: set limits (in dB)" - "\n'set <limit1><htime1><rtime1>'\t: set limiter 1" - "\n'set2 <limit2><htime2><rtime2>'\t: set crack-limiter"); + "\n'set <limit1><htime1><rtime1>'\t: set limiter 1" + "\n'set2 <limit2><htime2><rtime2>'\t: set crack-limiter"); break; case COMPRESS: poststring("\n'ratio <compressratio>'\t\t: set compressratio (Ã…Å“0.5Ã…Å“ instead of Ã…Å“1:2Ã…Å“)" - "\n'treshold <treshold>'\t\t: set treshold of the compressor" - "\n'compress <limit><treshold><ratio>'\t: set compressor" - "\n..........note that <limit> is the same for COMPRESSOR and LIMITER.........."); + "\n'treshold <treshold>'\t\t: set treshold of the compressor" + "\n'compress <limit><treshold><ratio>'\t: set compressor" + "\n..........note that <limit> is the same for COMPRESSOR and LIMITER.........."); break; default: break; } - poststring("\n'print'\t\t\t\t: view actual settings" - "\n'help'\t\t\t\t: view this\n"); + poststring("\n'print'\t\t\t\t: view actual settings" + "\n'help'\t\t\t\t: view this\n"); poststring("\ncreating arguments are :\n" - "\"limiter~ [<in1> [<in2> [<in3> [...]]]]\": <in*> may be anything\n"); + "\"limiter~ [<in1> [<in2> [<in3> [...]]]]\": <in*> may be anything\n"); endpost(); } @@ -404,88 +435,87 @@ static t_int *oversampling_maxima(t_int *w) i += n; - while (n--) - { - t_sample os1, os2, max; - t_sample last4, last3, last2, last1, sinccurrent, current, next1, next2, next3, next4; - - if (bp == ep) - { - vp[0] = bp[-9]; - vp[1] = bp[-8]; - vp[2] = bp[-7]; - vp[3] = bp[-6]; - vp[4] = bp[-5]; - vp[5] = bp[-4]; - vp[6] = bp[-3]; - vp[7] = bp[-2]; - vp[8] = bp[-1]; - - bp = vp + XTRASAMPS; - i -= bufsize - XTRASAMPS; - } + while (n--) { + t_sample os1, os2, max; + t_sample last4, last3, last2, last1, sinccurrent, current, next1, next2, + next3, next4; + + if (bp == ep) { + vp[0] = bp[-9]; + vp[1] = bp[-8]; + vp[2] = bp[-7]; + vp[3] = bp[-6]; + vp[4] = bp[-5]; + vp[5] = bp[-4]; + vp[6] = bp[-3]; + vp[7] = bp[-2]; + vp[8] = bp[-1]; + + bp = vp + XTRASAMPS; + i -= bufsize - XTRASAMPS; + } - last4 = bp[-8]; - last3 = bp[-7]; - last2 = bp[-6]; - last1 = bp[-5]; - current = bp[-4]; - next1 = bp[-3]; - next2 = bp[-2]; - next3 = bp[-1]; - next4 = bp[0]; - - sinccurrent = SINC[4] * current; - - os1= fabsf(SINC[0] * last4 + - SINC[1] * last3 + - SINC[2] * last2 + - SINC[3] * last1 + - sinccurrent + - SINC[5] * next1 + - SINC[6] * next2 + - SINC[7] * next3 + - SINC[8] * next4); - - os2= fabsf(SINC[0] * next4 + - SINC[1] * next3 + - SINC[2] * next2 + - SINC[3] * next1 + - sinccurrent + - SINC[5] * last1 + - SINC[6] * last2 + - SINC[7] * last3 + - SINC[8] * last4); - - max = fabsf(current); + last4 = bp[-8]; + last3 = bp[-7]; + last2 = bp[-6]; + last1 = bp[-5]; + current = bp[-4]; + next1 = bp[-3]; + next2 = bp[-2]; + next3 = bp[-1]; + next4 = bp[0]; + + sinccurrent = SINC[4] * current; + + os1= fabsf(SINC[0] * last4 + + SINC[1] * last3 + + SINC[2] * last2 + + SINC[3] * last1 + + sinccurrent + + SINC[5] * next1 + + SINC[6] * next2 + + SINC[7] * next3 + + SINC[8] * next4); + + os2= fabsf(SINC[0] * next4 + + SINC[1] * next3 + + SINC[2] * next2 + + SINC[3] * next1 + + sinccurrent + + SINC[5] * last1 + + SINC[6] * last2 + + SINC[7] * last3 + + SINC[8] * last4); + + max = fabsf(current); #if 0 - if(max>1. || os1>1. || os2>1.) - post("%f %f %f\t%f %f %f %f %f %f %f %f %f", max, os1, os2, - last4, - last3, - last2, - last1, - current, - next1, - next2, - next3, - next4 - ); + if(max>1. || os1>1. || os2>1.) + post("%f %f %f\t%f %f %f %f %f %f %f %f %f", max, os1, os2, + last4, + last3, + last2, + last1, + current, + next1, + next2, + next3, + next4 + ); #endif - if (max < os1) - { - max = os1; - } - if (max < os2) - { - max = os2; - } - - *bp++ = *in++; - if (*out++ < max) *(out-1) = max; + if (max < os1) { + max = os1; + } + if (max < os2) { + max = os2; } + + *bp++ = *in++; + if (*out++ < max) { + *(out-1) = max; + } + } buf->buf_position = i; return (w+5); @@ -528,97 +558,97 @@ static t_int *limiter_perform(t_int *w) /* an intern variable... */ t_float max_val; - + switch (x->mode) { case LIMIT0: - while (n--) - { - max_val = *in; - - /* the MAIN routine for the 1-treshold-limiter */ - - if ((max_val * amp) > limit) - { - amp = limit / max_val; - samplesleft = holdlong; - } else - { - if (samplesleft > 0) - { - samplesleft--; - } else - { - if ((amp *= coa_long) > 1) amp = 1; - } + while (n--) { + max_val = *in; + + /* the MAIN routine for the 1-treshold-limiter */ + + if ((max_val * amp) > limit) { + amp = limit / max_val; + samplesleft = holdlong; + } else { + if (samplesleft > 0) { + samplesleft--; + } else { + if ((amp *= coa_long) > 1) { + amp = 1; } - - *out++ = amp; - *in++ = 0; + } } + + *out++ = amp; + *in++ = 0; + } break; case LIMIT1: - while (n--) - { - max_val = *in; - /* the main routine 2 */ - - if ((max_val * amp) > limit) - { - samplesleft = ((amp = (limit / max_val)) < alimit)?holdshort:holdlong; - stillleft = holdlong; - } else - { - if (samplesleft > 0) - { - samplesleft--; - stillleft--; - } else - { - if (amp < alimit) - { - if ((amp *= coa_short) > 1) amp = 1; - } else - { - if (stillleft > 0) - { - samplesleft = stillleft; - } else - { - if ((amp *= coa_long) > 1) amp = 1; - } - } + while (n--) { + max_val = *in; + /* the main routine 2 */ + + if ((max_val * amp) > limit) { + samplesleft = ((amp = (limit / max_val)) < alimit)?holdshort:holdlong; + stillleft = holdlong; + } else { + if (samplesleft > 0) { + samplesleft--; + stillleft--; + } else { + if (amp < alimit) { + if ((amp *= coa_short) > 1) { + amp = 1; + } + } else { + if (stillleft > 0) { + samplesleft = stillleft; + } else { + if ((amp *= coa_long) > 1) { + amp = 1; } + } } - *out++ = amp; - *in++ = 0; + } } + *out++ = amp; + *in++ = 0; + } x->still_left = stillleft; break; case COMPRESS: - while (n--) - { - max_val = *in; - - /* the MAIN routine for the compressor (very similar to the 1-treshold-limiter) */ - - if (max_val * amp > tresh) { - amp = tresh / max_val; - samplesleft = holdlong; - } else - if (samplesleft > 0) samplesleft--; - else if ((amp *= coa_long) > 1) amp = 1; - - if (amp < 1.) - if (amp > uclimit) /* amp is still UnCompressed uclimit==limitIN/tresh; */ - *out++ = pow(amp, oneminusratio); - else *out++ = amp * climit_inv; /* amp must fit for limiting : amp(new) = limit/maxval; = amp(old)*limitOUT/tresh; */ - else *out++ = 1.; - - *in++ = 0.; + while (n--) { + max_val = *in; + + /* the MAIN routine for the compressor (very similar to the 1-treshold-limiter) */ + + if (max_val * amp > tresh) { + amp = tresh / max_val; + samplesleft = holdlong; + } else if (samplesleft > 0) { + samplesleft--; + } else if ((amp *= coa_long) > 1) { + amp = 1; } + + if (amp < 1.) + if (amp > uclimit) { /* amp is still UnCompressed uclimit==limitIN/tresh; */ + *out++ = pow(amp, oneminusratio); + } else { + *out++ = amp * + climit_inv; /* amp must fit for limiting : amp(new) = limit/maxval; = amp(old)*limitOUT/tresh; */ + } + else { + *out++ = 1.; + } + + *in++ = 0.; + } break; default: - while (n--) *out++ = *in++ = 0.; + while (n--) { + *out++ = *in++ = 0.; + } break; } @@ -637,15 +667,18 @@ static void limiter_dsp(t_limiter *x, t_signal **sp) x->s_n = sp[0]->s_n; - if (x->amplification == 0) x->amplification = 0.0000001; + if (x->amplification == 0) { + x->amplification = 0.0000001; + } - if (x->val2->limit >= 1) x->mode = 0; + if (x->val2->limit >= 1) { + x->mode = 0; + } - while (i < x->number_of_inlets) - { - dsp_add(oversampling_maxima, 4, x, &(x->in[i]), sp[i]->s_vec, sig_buf); - i++; - } + while (i < x->number_of_inlets) { + dsp_add(oversampling_maxima, 4, x, &(x->in[i]), sp[i]->s_vec, sig_buf); + i++; + } dsp_add(limiter_perform, 3, x, sig_buf, sp[i]->s_vec); } @@ -660,35 +693,39 @@ static void *limiter_new(t_symbol *s, int argc, t_atom *argv) t_limiter *x = (t_limiter *)pd_new(limiter_class); int i = 0; - if (argc) set_bufsize(x, atom_getfloat(argv)); - else - { - argc = 1; - set_bufsize(x, 0); - } + if (argc) { + set_bufsize(x, atom_getfloat(argv)); + } else { + argc = 1; + set_bufsize(x, 0); + } - if (argc > 64) argc=64; - if (argc == 0) argc=1; + if (argc > 64) { + argc=64; + } + if (argc == 0) { + argc=1; + } x->number_of_inlets = argc--; - while (argc--) - { - inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); - } + while (argc--) { + inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); + } outlet_new(&x->x_obj, gensym("signal")); x->in = (t_inbuf*)getbytes(sizeof(t_inbuf) * x->number_of_inlets); - while (i < x->number_of_inlets) - { - int n; - t_sample* buf = (t_sample *)getbytes(sizeof(*buf) * x->buf_size); - x->in[i].ringbuf = buf; - x->in[i].buf_position = 0; - for (n = 0; n < x->buf_size; n++) x->in[i].ringbuf[n] = 0.; - i++; + while (i < x->number_of_inlets) { + int n; + t_sample* buf = (t_sample *)getbytes(sizeof(*buf) * x->buf_size); + x->in[i].ringbuf = buf; + x->in[i].buf_position = 0; + for (n = 0; n < x->buf_size; n++) { + x->in[i].ringbuf[n] = 0.; } + i++; + } x->val1 = (t_limctl *)getbytes(sizeof(t_limctl)); x->val2 = (t_limctl *)getbytes(sizeof(t_limctl)); @@ -714,7 +751,9 @@ static void limiter_free(t_limiter *x) freebytes(x->val2, sizeof(t_limctl)); freebytes(x->cmp , sizeof(t_cmpctl)); - while (i < x->number_of_inlets) freebytes(x->in[i++].ringbuf, x->buf_size * sizeof(t_sample)); + while (i < x->number_of_inlets) { + freebytes(x->in[i++].ringbuf, x->buf_size * sizeof(t_sample)); + } freebytes(x->in, x->number_of_inlets * sizeof(t_inbuf)); } @@ -730,30 +769,42 @@ void limiter_tilde_setup(void) { init_sinc(); - limiter_class = class_new(gensym("limiter~"), (t_newmethod)limiter_new, (t_method)limiter_free, - sizeof(t_limiter), 0, A_GIMME, 0); + limiter_class = class_new(gensym("limiter~"), (t_newmethod)limiter_new, + (t_method)limiter_free, + sizeof(t_limiter), 0, A_GIMME, 0); class_addmethod(limiter_class, nullfn, gensym("signal"), 0); - class_addmethod(limiter_class, (t_method)limiter_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(limiter_class, (t_method)limiter_dsp, gensym("dsp"), 0); - class_addmethod(limiter_class, (t_method)limiter_tilde_helper, gensym("help"), 0); + class_addmethod(limiter_class, (t_method)limiter_tilde_helper, + gensym("help"), 0); class_addmethod(limiter_class, (t_method)status, gensym("print"), 0); - class_addmethod(limiter_class, (t_method)set_mode, gensym("mode"), A_FLOAT, 0); + class_addmethod(limiter_class, (t_method)set_mode, gensym("mode"), A_FLOAT, + 0); class_addmethod(limiter_class, (t_method)set_LIMIT, gensym("LIMIT"), 0); class_addmethod(limiter_class, (t_method)set_CRACK, gensym("CRACK"), 0); - class_addmethod(limiter_class, (t_method)set_COMPRESS, gensym("COMPRESS"), 0); - - - class_addmethod(limiter_class, (t_method)set_treshold, gensym("tresh"), A_FLOAT, 0); - class_addmethod(limiter_class, (t_method)set_treshold, gensym("treshold"), A_FLOAT, 0); - class_addmethod(limiter_class, (t_method)set_ratio, gensym("ratio"), A_FLOAT, 0); - class_addmethod(limiter_class, (t_method)set1, gensym("set"), A_FLOAT, A_FLOAT, A_FLOAT, 0); - class_addmethod(limiter_class, (t_method)set2, gensym("set2"), A_FLOAT, A_FLOAT, A_FLOAT, 0); - class_addmethod(limiter_class, (t_method)set_compressor,gensym("compress"), A_FLOAT, A_FLOAT, A_FLOAT, 0); - - class_addmethod(limiter_class, (t_method)set_limits, gensym("limits"), A_FLOAT, A_FLOAT, 0); - class_addmethod(limiter_class, (t_method)set_limit, gensym("limit"), A_FLOAT, 0); + class_addmethod(limiter_class, (t_method)set_COMPRESS, gensym("COMPRESS"), + 0); + + + class_addmethod(limiter_class, (t_method)set_treshold, gensym("tresh"), + A_FLOAT, 0); + class_addmethod(limiter_class, (t_method)set_treshold, gensym("treshold"), + A_FLOAT, 0); + class_addmethod(limiter_class, (t_method)set_ratio, gensym("ratio"), + A_FLOAT, 0); + class_addmethod(limiter_class, (t_method)set1, gensym("set"), A_FLOAT, + A_FLOAT, A_FLOAT, 0); + class_addmethod(limiter_class, (t_method)set2, gensym("set2"), A_FLOAT, + A_FLOAT, A_FLOAT, 0); + class_addmethod(limiter_class, (t_method)set_compressor,gensym("compress"), + A_FLOAT, A_FLOAT, A_FLOAT, 0); + + class_addmethod(limiter_class, (t_method)set_limits, gensym("limits"), + A_FLOAT, A_FLOAT, 0); + class_addmethod(limiter_class, (t_method)set_limit, gensym("limit"), + A_FLOAT, 0); class_addfloat (limiter_class, set_limit); class_addmethod(limiter_class, (t_method)reset, gensym("reset"), 0); diff --git a/externals/zexy/src/list2int.c b/externals/zexy/src/list2int.c index 7f91db2478a05194b7bb8053b70edc2cdde07645..82e2df7e02ff98e552771560873fd84a4634a4db 100644 --- a/externals/zexy/src/list2int.c +++ b/externals/zexy/src/list2int.c @@ -1,4 +1,4 @@ -/* +/* * list2int: cast each float of a list (or anything) to integer * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -22,29 +22,42 @@ static t_class *list2int_class; -static void list2int_any(t_mypdlist *x, t_symbol *s, int argc, t_atom *argv) +static void list2int_any(t_mypdlist *x, t_symbol *s, int argc, + t_atom *argv) { t_atom *ap; if (x->x_n != argc) { freebytes(x->x_list, x->x_n * sizeof(t_atom)); x->x_n = argc; x->x_list = copybytes(argv, argc * sizeof(t_atom)); - } else memcpy(x->x_list, argv, argc * sizeof(t_atom)); + } else { + memcpy(x->x_list, argv, argc * sizeof(t_atom)); + } ap = x->x_list; - while(argc--){ - if(ap->a_type == A_FLOAT)ap->a_w.w_float=(int)ap->a_w.w_float; + while(argc--) { + if(ap->a_type == A_FLOAT) { + ap->a_w.w_float=(int)ap->a_w.w_float; + } ap++; } outlet_anything(x->x_obj.ob_outlet, s, x->x_n, x->x_list); } static void list2int_bang(t_mypdlist *x) -{ outlet_bang(x->x_obj.ob_outlet);} +{ + outlet_bang(x->x_obj.ob_outlet); +} static void list2int_float(t_mypdlist *x, t_float f) -{ outlet_float(x->x_obj.ob_outlet, (int)f);} +{ + outlet_float(x->x_obj.ob_outlet, (int)f); +} static void list2int_symbol(t_mypdlist *x, t_symbol *s) -{ outlet_symbol(x->x_obj.ob_outlet, s);} +{ + outlet_symbol(x->x_obj.ob_outlet, s); +} static void list2int_pointer(t_mypdlist *x, t_gpointer *p) -{ outlet_pointer(x->x_obj.ob_outlet, p);} +{ + outlet_pointer(x->x_obj.ob_outlet, p); +} static void *list2int_new(t_symbol *s, int argc, t_atom *argv) { @@ -60,13 +73,13 @@ static void *list2int_new(t_symbol *s, int argc, t_atom *argv) static void mypdlist_free(t_mypdlist *x) { - freebytes(x->x_list, x->x_n * sizeof(t_atom)); + freebytes(x->x_list, x->x_n * sizeof(t_atom)); } void list2int_setup(void) { - list2int_class = class_new(gensym("list2int"), (t_newmethod)list2int_new, - (t_method)mypdlist_free, sizeof(t_mypdlist), 0, A_GIMME, 0); + list2int_class = class_new(gensym("list2int"), (t_newmethod)list2int_new, + (t_method)mypdlist_free, sizeof(t_mypdlist), 0, A_GIMME, 0); class_addcreator((t_newmethod)list2int_new, gensym("l2i"), A_GIMME, 0); class_addanything(list2int_class, list2int_any); class_addlist(list2int_class, list2int_any); diff --git a/externals/zexy/src/list2lists.c b/externals/zexy/src/list2lists.c index 14d553e51bb521bc9768044320301474a52b2c37..f0279837d42e1cbd1a1f25a96cc79774af9f5da9 100644 --- a/externals/zexy/src/list2lists.c +++ b/externals/zexy/src/list2lists.c @@ -1,4 +1,4 @@ -/* +/* * list2lists: split a list into several sublists given by their lenghts * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -31,8 +31,7 @@ static t_class *list2lists_class; -typedef struct _list2lists -{ +typedef struct _list2lists { t_object x_obj; t_outlet *x_outlet; @@ -45,7 +44,8 @@ typedef struct _list2lists -static void list2lists_list2(t_list2lists*x,t_symbol*s, int argc, t_atom*argv) +static void list2lists_list2(t_list2lists*x,t_symbol*s, int argc, + t_atom*argv) { if(x->x_length!=0) { freebytes(x->x_length, sizeof(t_atom)*x->x_lcount); @@ -62,8 +62,8 @@ static void list2lists_list2(t_list2lists*x,t_symbol*s, int argc, t_atom*argv) for(i=0; i<argc; i++) { int index=atom_getint(argv+i); if(index<0) { - pd_error(x, "[list2lists]: clamped negative index=%d to 0!", index); - index=0; + pd_error(x, "[list2lists]: clamped negative index=%d to 0!", index); + index=0; } x->x_length[i]=index; } @@ -72,19 +72,21 @@ static void list2lists_list2(t_list2lists*x,t_symbol*s, int argc, t_atom*argv) DEBUGFUN(post("list2: %d %x", x->x_lcount, x->x_length)); } -static void list2lists_output(t_list2lists*x, int argc, t_atom*argv) +static void list2lists_output(t_list2lists*x, int argc, t_atom*argv) { t_outlet*out=x->x_obj.ob_outlet; - if(argc<=0) + if(argc<=0) { outlet_bang(out); - else + } else { outlet_list(out, gensym("list"), argc, argv); + } } -static void list2lists_list(t_list2lists *x, t_symbol *s, int argc, t_atom *argv) +static void list2lists_list(t_list2lists *x, t_symbol *s, int argc, + t_atom *argv) { int i; - + if(x->x_lcount<1) { outlet_anything(x->x_obj.ob_outlet, s, argc, argv); return; @@ -103,7 +105,7 @@ static void list2lists_list(t_list2lists *x, t_symbol *s, int argc, t_atom *argv } static void list2lists_free(t_list2lists *x) -{ +{ if(x->x_length) { freebytes(x->x_length, x->x_lcount*sizeof(int)); x->x_length=0; @@ -118,7 +120,8 @@ static void *list2lists_new(t_symbol* UNUSED(s), int argc, t_atom *argv) t_list2lists *x = (t_list2lists *)pd_new(list2lists_class); outlet_new(&x->x_obj, 0); - x->x_lengin=inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("list"), gensym("lst2")); + x->x_lengin=inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("list"), + gensym("lst2")); x->x_lcount=0; x->x_length=0; @@ -131,16 +134,19 @@ static void *list2lists_new(t_symbol* UNUSED(s), int argc, t_atom *argv) static void list2lists_help(t_list2lists*x) { - post("\n"HEARTSYMBOL" list2lists\t\t:: split lists into multiple sublists based on matches"); + post("\n"HEARTSYMBOL " list2lists\t\t:: split lists into multiple sublists based on matches"); } void list2lists_setup(void) { - list2lists_class = class_new(gensym("list2lists"), (t_newmethod)list2lists_new, - (t_method)list2lists_free, sizeof(t_list2lists), 0, A_GIMME, 0); + list2lists_class = class_new(gensym("list2lists"), + (t_newmethod)list2lists_new, + (t_method)list2lists_free, sizeof(t_list2lists), 0, A_GIMME, 0); class_addlist (list2lists_class, list2lists_list); - class_addmethod (list2lists_class, (t_method)list2lists_list2, gensym("lst2"), A_GIMME, 0); + class_addmethod (list2lists_class, (t_method)list2lists_list2, + gensym("lst2"), A_GIMME, 0); - class_addmethod(list2lists_class, (t_method)list2lists_help, gensym("help"), A_NULL); + class_addmethod(list2lists_class, (t_method)list2lists_help, + gensym("help"), A_NULL); zexy_register("list2lists"); } diff --git a/externals/zexy/src/list2symbol.c b/externals/zexy/src/list2symbol.c index df6c7a5cd347087e9cbf48ccdd541b77addf0765..03d0ac2ced2f0bda6b51b18ba2b2eb6dce2b6691 100644 --- a/externals/zexy/src/list2symbol.c +++ b/externals/zexy/src/list2symbol.c @@ -1,4 +1,4 @@ -/* +/* * list2symbol: convert a list into a single symbol * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -25,8 +25,7 @@ static t_class *list2symbol_class; -typedef struct _list2symbol -{ +typedef struct _list2symbol { t_object x_obj; int ac; t_atom *ap; @@ -35,7 +34,8 @@ typedef struct _list2symbol t_outlet*x_outlet; } t_list2symbol; -static void list2symbol_connector(t_list2symbol *x, t_symbol *s){ +static void list2symbol_connector(t_list2symbol *x, t_symbol *s) +{ x->connector = s; } @@ -49,20 +49,23 @@ static void list2symbol_bang(t_list2symbol *x) char *connector=0; char connlen=0; char*buffer = (char*)getbytes(MAXPDSTRING*sizeof(char)); - if(x->connector){ + if(x->connector) { connector=x->connector->s_name; connlen=strlen(connector); } - + /* 1st get the length of the symbol */ - if(x->s)length+=strlen(x->s->s_name); - else length-=connlen; + if(x->s) { + length+=strlen(x->s->s_name); + } else { + length-=connlen; + } length+=i*connlen; - while(i--){ + while(i--) { int len2=0; - if(A_SYMBOL==argv->a_type){ + if(A_SYMBOL==argv->a_type) { len2=strlen(argv->a_w.w_symbol->s_name); } else { atom_string(argv, buffer, MAXPDSTRING); @@ -72,7 +75,7 @@ static void list2symbol_bang(t_list2symbol *x) argv++; } - if (length<=0){ + if (length<=0) { outlet_symbol(x->x_obj.ob_outlet, gensym("")); return; } @@ -80,20 +83,20 @@ static void list2symbol_bang(t_list2symbol *x) result = (char*)getbytes((length+1)*sizeof(char)); /* 2nd create the symbol */ - if (x->s){ + if (x->s) { char *buf = x->s->s_name; int buflen=strlen(buf); strncpy(result+len, buf, length-len); len+=buflen; - if(i && connector){ + if(i && connector) { strncpy(result+len, connector, length-len); len += connlen; } } i=argc; argv=x->ap; - while(i--){ - if(A_SYMBOL==argv->a_type){ + while(i--) { + if(A_SYMBOL==argv->a_type) { strncpy(result+len, argv->a_w.w_symbol->s_name, length-len); len+= strlen(argv->a_w.w_symbol->s_name); } else { @@ -102,7 +105,7 @@ static void list2symbol_bang(t_list2symbol *x) len += strlen(buffer); } argv++; - if(i && connector){ + if(i && connector) { strncpy(result+len, connector, length-len); len += connlen; } @@ -114,9 +117,10 @@ static void list2symbol_bang(t_list2symbol *x) freebytes(result, (length+1)*sizeof(char)); } -static void list2symbol_anything(t_list2symbol *x, t_symbol *s, int argc, t_atom *argv) +static void list2symbol_anything(t_list2symbol *x, t_symbol *s, int argc, + t_atom *argv) { - if(x->ap){ + if(x->ap) { freebytes(x->ap, x->ac*sizeof(t_atom)); x->ap=0; } @@ -124,19 +128,20 @@ static void list2symbol_anything(t_list2symbol *x, t_symbol *s, int argc, t_atom x->s =s; x->ac=argc; - if(x->ac){ + if(x->ac) { x->ap=(t_atom*)getbytes(x->ac*sizeof(t_atom)); } - if(x->ap){ + if(x->ap) { t_atom*ap=x->ap; - while(argc--){ + while(argc--) { *ap++=*argv++; } } list2symbol_bang(x); } -static void list2symbol_list(t_list2symbol *x, t_symbol *s, int argc, t_atom *argv) +static void list2symbol_list(t_list2symbol *x, t_symbol *s, int argc, + t_atom *argv) { list2symbol_anything(x, 0, argc, argv); } @@ -145,7 +150,8 @@ static void *list2symbol_new(t_symbol *s, int argc, t_atom *argv) t_list2symbol *x = (t_list2symbol *)pd_new(list2symbol_class); x->x_outlet=outlet_new(&x->x_obj, 0); - x->x_inlet2=inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("symbol"), gensym("")); + x->x_inlet2=inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("symbol"), + gensym("")); #if 0 /* old behaviour: the argument list is used as the list-to-be-converted */ @@ -155,14 +161,14 @@ static void *list2symbol_new(t_symbol *s, int argc, t_atom *argv) /* new behaviour: set the delimiter with the argument */ list2symbol_connector(x, (argc)?atom_getsymbol(argv):gensym(" ")); #endif - + return (x); } static void list2symbol_free(t_list2symbol *x) { - if(x->ap){ + if(x->ap) { freebytes(x->ap, x->ac*sizeof(t_atom)); x->ap=0; } @@ -173,7 +179,8 @@ static void list2symbol_free(t_list2symbol *x) void list2symbol_setup(void) { - list2symbol_class = class_new(gensym("list2symbol"), (t_newmethod)list2symbol_new, + list2symbol_class = class_new(gensym("list2symbol"), + (t_newmethod)list2symbol_new, (t_method)list2symbol_free, sizeof(t_list2symbol), 0, A_GIMME, 0); @@ -181,7 +188,8 @@ void list2symbol_setup(void) class_addbang (list2symbol_class, list2symbol_bang); class_addlist (list2symbol_class, list2symbol_list); class_addanything(list2symbol_class, list2symbol_anything); - class_addmethod (list2symbol_class, (t_method)list2symbol_connector, gensym(""), A_SYMBOL, 0); + class_addmethod (list2symbol_class, (t_method)list2symbol_connector, + gensym(""), A_SYMBOL, 0); zexy_register("list2symbol"); } diff --git a/externals/zexy/src/lister.c b/externals/zexy/src/lister.c index 14096ab775056faed30f7c19fffe4fbf83c3c831..4b7084b41dcffdbf165aafdbe6f01b6a06c575ff 100644 --- a/externals/zexy/src/lister.c +++ b/externals/zexy/src/lister.c @@ -1,4 +1,4 @@ -/* +/* * lister: this is for lists, what "float" is for floats (use [list] instead) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -41,26 +41,30 @@ static t_class *mypdlist_class; static void atoms_copy(int argc, t_atom *from, t_atom *to) { int i; - for (i = 0; i < argc; i++) + for (i = 0; i < argc; i++) { to[i] = from[i]; + } } static void mypdlist_storelist(t_mypdlist *x, int argc, t_atom *argv) { - if(x->x_list)freebytes(x->x_list, x->x_n*sizeof(t_atom)); + if(x->x_list) { + freebytes(x->x_list, x->x_n*sizeof(t_atom)); + } x->x_n=argc; x->x_list=(t_atom*)getbytes(x->x_n*sizeof(t_atom)); atoms_copy(argc, argv, x->x_list); } -static void mypdlist_secondlist(t_mypdlist *x, t_symbol *s, int argc, t_atom *argv) +static void mypdlist_secondlist(t_mypdlist *x, t_symbol *s, int argc, + t_atom *argv) { mypdlist_storelist(x, argc, argv); } static void mypdlist_bang(t_mypdlist *x) -{ +{ int outc=x->x_n; t_atom*outv; ATOMS_ALLOCA(outv, outc); @@ -70,7 +74,8 @@ static void mypdlist_bang(t_mypdlist *x) } -static void mypdlist_list(t_mypdlist *x, t_symbol *s, int argc, t_atom *argv) +static void mypdlist_list(t_mypdlist *x, t_symbol *s, int argc, + t_atom *argv) { mypdlist_secondlist(x, s, argc, argv); mypdlist_bang(x); @@ -78,7 +83,9 @@ static void mypdlist_list(t_mypdlist *x, t_symbol *s, int argc, t_atom *argv) static void mypdlist_free(t_mypdlist *x) -{ freebytes(x->x_list, x->x_n * sizeof(t_atom)); } +{ + freebytes(x->x_list, x->x_n * sizeof(t_atom)); +} static void *mypdlist_new(t_symbol *s, int argc, t_atom *argv) { @@ -90,8 +97,9 @@ static void *mypdlist_new(t_symbol *s, int argc, t_atom *argv) x->x_n = 0; x->x_list = 0; - if(argc) + if(argc) { mypdlist_secondlist(x, gensym("list"), argc, argv); + } return (x); } @@ -99,12 +107,12 @@ static void *mypdlist_new(t_symbol *s, int argc, t_atom *argv) static void mypdlist_help(t_mypdlist*x) { - post("\n"HEARTSYMBOL" lister\t\t:: basic list storage (use pd>=0.39 for real [list] objects)"); + post("\n"HEARTSYMBOL " lister\t\t:: basic list storage (use pd>=0.39 for real [list] objects)"); } void lister_setup(void) { - mypdlist_class = class_new(gensym("lister"), (t_newmethod)mypdlist_new, + mypdlist_class = class_new(gensym("lister"), (t_newmethod)mypdlist_new, (t_method)mypdlist_free, sizeof(t_mypdlist), 0, A_GIMME, 0); /* i don't know how to get this work with name=="list" !!! */ @@ -112,9 +120,11 @@ void lister_setup(void) class_addbang (mypdlist_class, mypdlist_bang); class_addlist (mypdlist_class, mypdlist_list); - class_addmethod (mypdlist_class, (t_method)mypdlist_secondlist, gensym("lst2"), A_GIMME, 0); + class_addmethod (mypdlist_class, (t_method)mypdlist_secondlist, + gensym("lst2"), A_GIMME, 0); - class_addmethod(mypdlist_class, (t_method)mypdlist_help, gensym("help"), A_NULL); + class_addmethod(mypdlist_class, (t_method)mypdlist_help, gensym("help"), + A_NULL); zexy_register("lister"); } void l_setup(void) diff --git a/externals/zexy/src/listfind.c b/externals/zexy/src/listfind.c index 22c7af1e23e00ca6b10b3114fa975697e9fe76f1..fe0df1d7ffeb128f82407ec53dd8bd317ff18648 100644 --- a/externals/zexy/src/listfind.c +++ b/externals/zexy/src/listfind.c @@ -1,4 +1,4 @@ -/* +/* * listfind: find a sublist in a list and return the index of the occurence (or indices if there are more) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -32,8 +32,7 @@ static t_class *listfind_class; -typedef struct _listfind -{ +typedef struct _listfind { t_object x_obj; t_outlet *x_outlet; @@ -68,13 +67,17 @@ static void listfind_list2(t_listfind*x,t_symbol*s, int argc, t_atom*argv) DEBUGFUN(post("list2: %d %x", x->x_argc, x->x_argv)); } -static int atom_equals(t_atom*a1, t_atom*a2) { - if(a1->a_type!=a2->a_type) return 0; +static int atom_equals(t_atom*a1, t_atom*a2) +{ + if(a1->a_type!=a2->a_type) { + return 0; + } - return(a1->a_w.w_symbol==a2->a_w.w_symbol); + return(a1->a_w.w_symbol==a2->a_w.w_symbol); } -static int list_equals(int count, t_atom*a1, t_atom*a2) { +static int list_equals(int count, t_atom*a1, t_atom*a2) +{ int i=0; DEBUGFUN(post("list(%d) equals?", count)); DEBUGFUN(postatom(count, a1)); @@ -90,14 +93,13 @@ static int list_equals(int count, t_atom*a1, t_atom*a2) { } if(A_FLOAT==a1->a_type) { if(atom_getfloat(a1)!=atom_getfloat(a2)) { - return 0; + return 0; } - } else - if(a1->a_w.w_symbol!=a2->a_w.w_symbol) { /* is it that simple? */ - DEBUGFUN(post("atom values do not match: %x != %x", - a1->a_w.w_symbol, - a2->a_w.w_symbol - )); + } else if(a1->a_w.w_symbol!=a2->a_w.w_symbol) { /* is it that simple? */ + DEBUGFUN(post("atom values do not match: %x != %x", + a1->a_w.w_symbol, + a2->a_w.w_symbol + )); return 0; } } @@ -105,7 +107,8 @@ static int list_equals(int count, t_atom*a1, t_atom*a2) { return 1; } -static int listfind_find(int argc, t_atom*argv, int matchc, t_atom*matchv) { +static int listfind_find(int argc, t_atom*argv, int matchc, t_atom*matchv) +{ int i=0; DEBUGFUN(post("match: %d vs %d elements", argc, matchc)); @@ -113,29 +116,33 @@ static int listfind_find(int argc, t_atom*argv, int matchc, t_atom*matchv) { if(matchc>argc) { DEBUGFUN(post("list find -1")); - return -1; + return -1; } if(matchc==0) { - DEBUGFUN(post("list find 0")); + DEBUGFUN(post("list find 0")); return 0; } for(i=0; i<=(argc-matchc); i++, argv++) { DEBUGFUN(post("checking at %d", i)); - if(list_equals(matchc, argv, matchv)) + if(list_equals(matchc, argv, matchv)) { return i; + } } return -1; } -static void listfind_doit(t_outlet*out, int longcount, t_atom*longlist, int patterncount, t_atom*patternlist) { +static void listfind_doit(t_outlet*out, int longcount, t_atom*longlist, + int patterncount, t_atom*patternlist) +{ int count=0; int index; int offset=0; t_atom*ap=0; - int length=1+((patterncount>0)?(longcount/patterncount):longcount); /* we shan't have more hits than this! */ + int length=1+((patterncount>0)?(longcount/patterncount): + longcount); /* we shan't have more hits than this! */ if(length<1) { outlet_bang(out); } @@ -143,7 +150,8 @@ static void listfind_doit(t_outlet*out, int longcount, t_atom*longlist, int patt DEBUGFUN(post("expecting no more than %d results", length)); - while((index=listfind_find(longcount-offset, longlist+offset, patterncount, patternlist))>=0) { + while((index=listfind_find(longcount-offset, longlist+offset, patterncount, + patternlist))>=0) { offset+=index; SETFLOAT(ap+count, offset); @@ -159,11 +167,12 @@ static void listfind_doit(t_outlet*out, int longcount, t_atom*longlist, int patt freebytes(ap, length*sizeof(t_atom)); } -static void listfind_list(t_listfind *x, t_symbol *s, int argc, t_atom *argv) +static void listfind_list(t_listfind *x, t_symbol *s, int argc, + t_atom *argv) { #if 0 - /* entire list hot: - * this is more intuitive when searching a pattern in many lists + /* entire list hot: + * this is more intuitive when searching a pattern in many lists */ listfind_doit(x->x_obj.ob_outlet, argc, argv, x->x_argc, x->x_argv); @@ -181,7 +190,7 @@ static void listfind_list(t_listfind *x, t_symbol *s, int argc, t_atom *argv) } static void listfind_free(t_listfind *x) -{ +{ if(x->x_argv) { freebytes(x->x_argv, x->x_argc*sizeof(int)); x->x_argv=0; @@ -196,7 +205,8 @@ static void *listfind_new(t_symbol* UNUSED(s), int argc, t_atom *argv) t_listfind *x = (t_listfind *)pd_new(listfind_class); outlet_new(&x->x_obj, 0); - x->x_listin=inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("list"), gensym("lst2")); + x->x_listin=inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("list"), + gensym("lst2")); x->x_argc=0; x->x_argv=0; @@ -209,16 +219,18 @@ static void *listfind_new(t_symbol* UNUSED(s), int argc, t_atom *argv) static void listfind_help(t_listfind*x) { - post("\n"HEARTSYMBOL" listfind\t\t:: split lists into multiple sublists based on matches"); + post("\n"HEARTSYMBOL " listfind\t\t:: split lists into multiple sublists based on matches"); } void listfind_setup(void) { - listfind_class = class_new(gensym("listfind"), (t_newmethod)listfind_new, + listfind_class = class_new(gensym("listfind"), (t_newmethod)listfind_new, (t_method)listfind_free, sizeof(t_listfind), 0, A_GIMME, 0); class_addlist (listfind_class, listfind_list); - class_addmethod (listfind_class, (t_method)listfind_list2, gensym("lst2"), A_GIMME, 0); + class_addmethod (listfind_class, (t_method)listfind_list2, gensym("lst2"), + A_GIMME, 0); - class_addmethod(listfind_class, (t_method)listfind_help, gensym("help"), A_NULL); + class_addmethod(listfind_class, (t_method)listfind_help, gensym("help"), + A_NULL); zexy_register("listfind"); } diff --git a/externals/zexy/src/liststorage.c b/externals/zexy/src/liststorage.c index bec5b1f90a73e176f6b6f96780d6df2d3f5ea763..7139cee85c3374125f1e96e7dab71ef4e4587f04 100644 --- a/externals/zexy/src/liststorage.c +++ b/externals/zexy/src/liststorage.c @@ -1,4 +1,4 @@ -/* +/* * liststorage: stores a number of lists * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,17 +7,17 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ -/* +/* this is heavily based on code from [textfile], which is part of pd and written by Miller S. Puckette pd (and thus [textfile]) come with their own license @@ -48,8 +48,7 @@ typedef struct _msglist { struct _msglist *next; } t_msglist; -typedef struct _liststorage -{ +typedef struct _liststorage { t_object x_obj; /* everything */ t_outlet*x_dataout; /* where the data appears */ @@ -69,13 +68,18 @@ static t_class *liststorage_class; /* ************************************************************************ */ /* helper functions */ -static t_msglist*_liststorage_getslot(t_liststorage*x, int slot) { +static t_msglist*_liststorage_getslot(t_liststorage*x, int slot) +{ // post("getting slot %d of %d|%d", slot, 0, x->x_numslots); - if(slot<0 || slot>=x->x_numslots) { pd_error(x, "[liststorage]: attempting to access invalid slot %d", slot); return NULL; } + if(slot<0 || slot>=x->x_numslots) { + pd_error(x, "[liststorage]: attempting to access invalid slot %d", slot); + return NULL; + } return x->x_slots[slot]; } -static void _liststorage_deletemsglist(t_msglist*list) { +static void _liststorage_deletemsglist(t_msglist*list) +{ t_msglist*x=list; while(x) { t_msglist*y=x; @@ -89,7 +93,8 @@ static void _liststorage_deletemsglist(t_msglist*list) { } } -static void _liststorage_deleteslot(t_liststorage*x, int slot) { +static void _liststorage_deleteslot(t_liststorage*x, int slot) +{ t_msglist*list=_liststorage_getslot(x, slot); if(list) { _liststorage_deletemsglist(list); @@ -97,7 +102,8 @@ static void _liststorage_deleteslot(t_liststorage*x, int slot) { } } -static t_msglist*_liststorage_newslot(int argc, t_atom*argv) { +static t_msglist*_liststorage_newslot(int argc, t_atom*argv) +{ t_msglist*slot=getbytes(sizeof(t_msglist)); int i=0; @@ -113,7 +119,9 @@ static t_msglist*_liststorage_newslot(int argc, t_atom*argv) { } -static t_msglist*_liststorage_add2slot(t_msglist*slot, int argc, t_atom*argv) { +static t_msglist*_liststorage_add2slot(t_msglist*slot, int argc, + t_atom*argv) +{ t_msglist*dummy=slot; t_msglist*newlist=_liststorage_newslot(argc, argv); if(NULL==slot) { @@ -130,12 +138,14 @@ static t_msglist*_liststorage_add2slot(t_msglist*slot, int argc, t_atom*argv) { } -static int _liststorage_resize(t_liststorage*x, int size) { +static int _liststorage_resize(t_liststorage*x, int size) +{ t_msglist**newarray=NULL; int i=0; if(size<0) { - pd_error(x, "[liststorage]: refusing to resize for negative amount of slots"); + pd_error(x, + "[liststorage]: refusing to resize for negative amount of slots"); return 0; } @@ -170,13 +180,17 @@ static int _liststorage_resize(t_liststorage*x, int size) { return size; } -static int _liststorage_checkslot(t_liststorage*x, const char*string, const int resize) { +static int _liststorage_checkslot(t_liststorage*x, const char*string, + const int resize) +{ int slot=x->x_currentslot; t_atom atom; SETFLOAT(&atom, (t_float)slot); - if(slot<0) { - if(NULL!=string)pd_error(x, "[liststorage]: %s %d", string, slot); + if(slot<0) { + if(NULL!=string) { + pd_error(x, "[liststorage]: %s %d", string, slot); + } outlet_anything(x->x_infoout, gensym("invalidslot"), 1, &atom); return -1; } @@ -184,7 +198,9 @@ static int _liststorage_checkslot(t_liststorage*x, const char*string, const int if(resize) { _liststorage_resize(x, slot+1); } else { - if(NULL!=string)pd_error(x, "[liststorage]: %s %d", string, slot); + if(NULL!=string) { + pd_error(x, "[liststorage]: %s %d", string, slot); + } outlet_anything(x->x_infoout, gensym("invalidslot"), 1, &atom); return -1; } @@ -194,14 +210,17 @@ static int _liststorage_checkslot(t_liststorage*x, const char*string, const int /* ************************************************************************ */ /* object methods */ - /* recall all lists from the current slot */ +/* recall all lists from the current slot */ static void liststorage_bang(t_liststorage *x) -{ +{ t_atom atom; t_msglist*list=NULL; - int slot=_liststorage_checkslot(x, "attempting to read data from invalid slot", 0); - if(slot<0)return; + int slot=_liststorage_checkslot(x, + "attempting to read data from invalid slot", 0); + if(slot<0) { + return; + } list=_liststorage_getslot(x, slot); while(list) { @@ -214,26 +233,32 @@ static void liststorage_bang(t_liststorage *x) // outlet_anything(x->x_infoout, gensym("done"), 1, &atom); } - /* add a new list to the current slot */ -static void liststorage_add(t_liststorage *x, t_symbol *s, int ac, t_atom *av) +/* add a new list to the current slot */ +static void liststorage_add(t_liststorage *x, t_symbol *s, int ac, + t_atom *av) { t_msglist*list=NULL; - int slot=_liststorage_checkslot(x, "attempting to add data to invalid slot", 1); - if(slot<0)return; + int slot=_liststorage_checkslot(x, + "attempting to add data to invalid slot", 1); + if(slot<0) { + return; + } list=_liststorage_getslot(x, slot); x->x_slots[slot]=_liststorage_add2slot(x->x_slots[slot], ac, av); } - /* clear the current slot */ +/* clear the current slot */ static void liststorage_clear(t_liststorage *x) { int slot=_liststorage_checkslot(x, "attempting to clear invalid slot", 0); - if(slot<0)return; + if(slot<0) { + return; + } _liststorage_deleteslot(x, slot); } - /* clear all slots */ +/* clear all slots */ static void liststorage_clearall(t_liststorage *x) { int i=0; @@ -242,7 +267,7 @@ static void liststorage_clearall(t_liststorage *x) } } - /* insert an empty slot at (before) given position */ +/* insert an empty slot at (before) given position */ static void liststorage_insert(t_liststorage *x, t_floatarg f) { int current=x->x_currentslot; @@ -253,17 +278,19 @@ static void liststorage_insert(t_liststorage *x, t_floatarg f) slot=_liststorage_checkslot(x, "attempting to insert invalid slot", 1); x->x_currentslot=current; - if(slot<0)return; + if(slot<0) { + return; + } - _liststorage_resize(x, x->x_numslots+1); + _liststorage_resize(x, x->x_numslots+1); for(i=x->x_numslots-1; i>slot; i--) { x->x_slots[i]=x->x_slots[i-1]; } - x->x_slots[slot]=NULL; + x->x_slots[slot]=NULL; } - /* get the number of slots */ +/* get the number of slots */ static void liststorage_info(t_liststorage *x) { t_atom ap; @@ -272,7 +299,7 @@ static void liststorage_info(t_liststorage *x) } - /* get the number of slots */ +/* get the number of slots */ static void liststorage_slot(t_liststorage *x, t_floatarg f) { int slot=f; @@ -281,7 +308,7 @@ static void liststorage_slot(t_liststorage *x, t_floatarg f) } - /* remove empty slots */ +/* remove empty slots */ static void liststorage_compress(t_liststorage *x) { t_msglist**newarray=NULL; @@ -289,7 +316,7 @@ static void liststorage_compress(t_liststorage *x) int size=0; for(i=0; i<x->x_numslots; i++) { if(NULL!=x->x_slots[i]) { - + size++; } } @@ -299,8 +326,9 @@ static void liststorage_compress(t_liststorage *x) return; } - if(size<x->x_defaultnumslots) + if(size<x->x_defaultnumslots) { size=x->x_defaultnumslots; + } /* create a new array */ newarray=getbytes(sizeof(t_msglist*)*size); @@ -344,18 +372,21 @@ static void *liststorage_new(t_floatarg f) t_liststorage *x = (t_liststorage *)pd_new(liststorage_class); int slots=f; - x->x_slotin=inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("slot")); + x->x_slotin=inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), + gensym("slot")); x->x_dataout=outlet_new(&x->x_obj, gensym("list")); x->x_infoout=outlet_new(&x->x_obj, 0); - if(slots<=0)slots=20; + if(slots<=0) { + slots=20; + } x->x_defaultnumslots=slots; x->x_numslots=0; x->x_currentslot=0; x->x_slots=NULL; - + _liststorage_resize(x, x->x_defaultnumslots); @@ -365,33 +396,41 @@ static void *liststorage_new(t_floatarg f) void liststorage_setup(void) { - liststorage_class = class_new(gensym("liststorage"), (t_newmethod)liststorage_new, - (t_method)liststorage_free, sizeof(t_liststorage), 0, A_DEFFLOAT, 0); + liststorage_class = class_new(gensym("liststorage"), + (t_newmethod)liststorage_new, + (t_method)liststorage_free, sizeof(t_liststorage), 0, A_DEFFLOAT, 0); /* recall all lists from the current slot */ class_addbang(liststorage_class, (t_method)liststorage_bang); /* add a new list to the current slot */ - class_addmethod(liststorage_class, (t_method)liststorage_add, gensym("add"), A_GIMME, 0); + class_addmethod(liststorage_class, (t_method)liststorage_add, + gensym("add"), A_GIMME, 0); /* clear the current slot */ - class_addmethod(liststorage_class, (t_method)liststorage_clear, gensym("clear"), 0); + class_addmethod(liststorage_class, (t_method)liststorage_clear, + gensym("clear"), 0); /* clear all slots */ - class_addmethod(liststorage_class, (t_method)liststorage_clearall, gensym("clearall"), 0); + class_addmethod(liststorage_class, (t_method)liststorage_clearall, + gensym("clearall"), 0); /* add a new list to the current slot */ - class_addmethod(liststorage_class, (t_method)liststorage_slot, gensym("slot"), A_FLOAT, 0); + class_addmethod(liststorage_class, (t_method)liststorage_slot, + gensym("slot"), A_FLOAT, 0); /* insert an empty slot at (before) given position */ - class_addmethod(liststorage_class, (t_method)liststorage_insert, gensym("insert"), A_DEFFLOAT, 0); + class_addmethod(liststorage_class, (t_method)liststorage_insert, + gensym("insert"), A_DEFFLOAT, 0); - /* remove empty slots */ - class_addmethod(liststorage_class, (t_method)liststorage_compress, gensym("compress"), 0); + /* remove empty slots */ + class_addmethod(liststorage_class, (t_method)liststorage_compress, + gensym("compress"), 0); /* get the number of slots */ - class_addmethod(liststorage_class, (t_method)liststorage_info, gensym("info"), 0); + class_addmethod(liststorage_class, (t_method)liststorage_info, + gensym("info"), 0); zexy_register("liststorage"); } diff --git a/externals/zexy/src/longload.c b/externals/zexy/src/longload.c index fcdef2563c5bbc48c5bc757098382d6e5a4bf78b..0e914e7d7c6b9775417e570daf0b5677bb48b4ce 100644 --- a/externals/zexy/src/longload.c +++ b/externals/zexy/src/longload.c @@ -1,4 +1,4 @@ -/* +/* * longload: takes a long time to load * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -30,12 +30,12 @@ static t_class *longload_class; -typedef struct _longload -{ +typedef struct _longload { t_object x_obj; } t_longload; -int millisleep(unsigned int milli) { +int millisleep(unsigned int milli) +{ #ifdef _WIN32 Sleep(milli); #else @@ -47,20 +47,21 @@ int millisleep(unsigned int milli) { static void *longload_new(t_float f) { t_longload *x = (t_longload *)pd_new(longload_class); - if(f>0.f) + if(f>0.f) { millisleep(f); - else + } else { millisleep(1000); + } return (x); } void longload_setup(void) { - longload_class = class_new(gensym("longload"), - (t_newmethod)longload_new, - 0, - sizeof(t_longload), - CLASS_NOINLET, + longload_class = class_new(gensym("longload"), + (t_newmethod)longload_new, + 0, + sizeof(t_longload), + CLASS_NOINLET, A_DEFFLOAT, 0); zexy_register("longload"); } diff --git a/externals/zexy/src/lpt.c b/externals/zexy/src/lpt.c index d33c74f856bae064ba87ad23038ed4d6fb89eb72..ae87cfba9ac96e7d2b4ea383237bc4524aa7b223 100644 --- a/externals/zexy/src/lpt.c +++ b/externals/zexy/src/lpt.c @@ -1,4 +1,4 @@ -/* +/* * lpt: read/write the parallel port * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,18 +7,18 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ -/* +/* (c) 2000:forum::für::umläute:2005 write to the parallel port @@ -68,7 +68,9 @@ extern int open_port(int port); static int ioperm(int port, int a, int b) { - if(open_port(port) == -1)return(1); + if(open_port(port) == -1) { + return(1); + } return(0); } @@ -104,8 +106,7 @@ static int sys_inb(int port) static int count_iopl = 0; static t_class *lpt_class; -typedef struct _lpt -{ +typedef struct _lpt { t_object x_obj; unsigned long port; @@ -119,13 +120,13 @@ static void lpt_float(t_lpt *x, t_floatarg f) #ifdef Z_WANT_LPT unsigned char b = f; # ifdef HAVE_LINUX_PPDEV_H - if (x->device>0){ + if (x->device>0) { ioctl (x->device, PPWDATA, &b); } else # endif - if (x->port) { - sys_outb(b, x->port+0); - } + if (x->port) { + sys_outb(b, x->port+0); + } #endif /* Z_WANT_LPT */ } @@ -134,13 +135,13 @@ static void lpt_control(t_lpt *x, t_floatarg f) #ifdef Z_WANT_LPT unsigned char b = f; # ifdef HAVE_LINUX_PPDEV_H - if (x->device>0){ + if (x->device>0) { ioctl (x->device, PPWCONTROL, &b); } else # endif - if (x->port) { - sys_outb(b, x->port+2); - } + if (x->port) { + sys_outb(b, x->port+2); + } #endif /* Z_WANT_LPT */ } @@ -148,15 +149,15 @@ static void lpt_bang(t_lpt *x) { #ifdef Z_WANT_LPT # ifdef HAVE_LINUX_PPDEV_H - if (x->device>0){ + if (x->device>0) { unsigned char b=0; ioctl (x->device, PPRCONTROL, &b); - outlet_float(x->x_obj.ob_outlet, (t_float)b); + outlet_float(x->x_obj.ob_outlet, (t_float)b); } else # endif - if (x->port) { - outlet_float(x->x_obj.ob_outlet, (t_float)sys_inb(x->port+1)); - } + if (x->port) { + outlet_float(x->x_obj.ob_outlet, (t_float)sys_inb(x->port+1)); + } #endif /* Z_WANT_LPT */ } @@ -165,8 +166,9 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) { t_lpt *x = (t_lpt *)pd_new(lpt_class); char*devname=atom_getsymbol(argv)->s_name; - if(s==gensym("lp")) + if(s==gensym("lp")) { error("lpt: the use of 'lp' has been deprecated; use 'lpt' instead"); + } inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("control")); @@ -184,7 +186,7 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) break; case 1: x->port = BASE1; - break; + break; case 2: x->port = BASE2; break; @@ -193,23 +195,23 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) x->port = 0; return (x); } - } else { + } else { /* SYMBOL might be a file or a hex port-number; we ignore the file (device) case by now; LATER think about this */ x->device=-1; x->port=strtol(devname, 0, 16); - if(0==x->port){ + if(0==x->port) { #ifdef HAVE_LINUX_PPDEV_H - x->device = open(devname, O_RDWR); - if(x->device<=0){ + x->device = z_open(devname, O_RDWR); + if(x->device<=0) { error("lpt: bad device %s", devname); return(x); } else { if (ioctl (x->device, PPCLAIM)) { perror ("PPCLAIM"); - close (x->device); + z_close (x->device); x->device=-1; } } @@ -217,12 +219,12 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) } } - if ((x->device<0) && (!x->port || x->port>65535)){ - post("lpt : bad port %x", x->port); + if ((x->device<0) && (!x->port || x->port>65535)) { + error("lpt : bad port %x", x->port); x->port = 0; return (x); } - if (x->device<0){ + if (x->device<0) { /* this is ugly: when using a named device, * we are currently assuming that we have read/write-access * of course, this is not necessary true @@ -231,29 +233,37 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv) * withOUT write permissions * (just reading the parport) */ - if (x->port && x->port < 0x400){ + if (x->port && x->port < 0x400) { if (ioperm(x->port, 8, 1)) { x->mode=MODE_NONE; - } else x->mode = MODE_IOPERM; + } else { + x->mode = MODE_IOPERM; + } } - if(x->mode==MODE_NONE){ - if (iopl(3)){ + if(x->mode==MODE_NONE) { + if (iopl(3)) { x->mode=MODE_NONE; - } else x->mode=MODE_IOPL; + } else { + x->mode=MODE_IOPL; + } count_iopl++; } - - if(x->mode==MODE_NONE){ + + if(x->mode==MODE_NONE) { error("lpt : couldn't get write permissions"); x->port = 0; return (x); } } - if(x->device>0) + if(x->device>0) { post("lpt: connected to device %s", devname); - else - post("lpt: connected to port %x in mode '%s'", x->port, (x->mode==MODE_IOPL)?"iopl":"ioperm"); - if (x->mode==MODE_IOPL)post("lpt-warning: this might seriously damage your pc..."); + } else { + post("lpt: connected to port %x in mode '%s'", x->port, + (x->mode==MODE_IOPL)?"iopl":"ioperm"); + } + if (x->mode==MODE_IOPL) { + post("lpt-warning: this might seriously damage your pc..."); + } #else error("zexy has been compiled without [lpt]!"); count_iopl=0; @@ -268,24 +278,26 @@ static void lpt_free(t_lpt *x) { #ifdef Z_WANT_LPT # ifdef HAVE_LINUX_PPDEV_H - if (x->device>0){ + if (x->device>0) { ioctl (x->device, PPRELEASE); - close(x->device); + z_close(x->device); x->device=0; } else # endif - if (x->port) { - if (x->mode==MODE_IOPERM && ioperm(x->port, 8, 0)) error("lpt: couldn't clean up device"); - else if (x->mode==MODE_IOPL && (!--count_iopl) && iopl(0)) - error("lpt: couldn't clean up device"); - } + if (x->port) { + if (x->mode==MODE_IOPERM && ioperm(x->port, 8, 0)) { + error("lpt: couldn't clean up device"); + } else if (x->mode==MODE_IOPL && (!--count_iopl) && iopl(0)) { + error("lpt: couldn't clean up device"); + } + } #endif /* Z_WANT_LPT */ } static void lpt_helper(t_lpt*UNUSED(x)) { - post("\n"HEARTSYMBOL" lpt :: direct access to the parallel port"); + post("\n"HEARTSYMBOL " lpt :: direct access to the parallel port"); post("<byte>\t: write byte to the parallel-port"); post("\ncreation:\t\"lpt [<port>]\": connect to parallel port <port> (0..2)"); post("\t\t\"lpt <portaddr>\": connect to port @ <portaddr> (hex)"); @@ -294,12 +306,13 @@ static void lpt_helper(t_lpt*UNUSED(x)) void lpt_setup(void) { lpt_class = class_new(gensym("lpt"), - (t_newmethod)lpt_new, (t_method)lpt_free, - sizeof(t_lpt), 0, A_GIMME, 0); + (t_newmethod)lpt_new, (t_method)lpt_free, + sizeof(t_lpt), 0, A_GIMME, 0); class_addcreator((t_newmethod)lpt_new, gensym("lp"), A_GIMME, 0); class_addfloat(lpt_class, (t_method)lpt_float); - class_addmethod(lpt_class, (t_method)lpt_control, gensym("control"), A_FLOAT, 0); + class_addmethod(lpt_class, (t_method)lpt_control, gensym("control"), + A_FLOAT, 0); class_addbang(lpt_class, (t_method)lpt_bang); class_addmethod(lpt_class, (t_method)lpt_helper, gensym("help"), 0); diff --git a/externals/zexy/src/makesymbol.c b/externals/zexy/src/makesymbol.c index f0342d8feacd3989eb85d96762b286811601f48f..b92eb53a772fc07399983927b2ec78ced594f89c 100644 --- a/externals/zexy/src/makesymbol.c +++ b/externals/zexy/src/makesymbol.c @@ -1,4 +1,4 @@ -/* +/* * makesymbol: yet another (formatted) symbol creation mechanism * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,29 +7,29 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ -/* +/* (l) 1210:forum::für::umläute:1999 -"makesymbol" is something between "symbol" and "makefilename", +"makesymbol" is something between "symbol" and "makefilename", thus storing and creating (formatted) symbols... TODO: - the use of only "%s" is really not very satisfying - LATER: - split the entire format string into subformats with only + the use of only "%s" is really not very satisfying + LATER: + split the entire format string into subformats with only one format-placeholder ("%[^%]*[diufFgGxXoscpn]") . split the entire format string into subformats with only one format-placeholder, store the types @@ -49,24 +49,23 @@ static t_class *makesymbol_class; -typedef struct _makesymbol -{ - t_object x_obj; - t_symbol *x_sym; +typedef struct _makesymbol { + t_object x_obj; + t_symbol *x_sym; - char* mask; - char* buf; + char* mask; + char* buf; } t_makesymbol; static void reset_mask(t_makesymbol *x, t_symbol *s) { - if (*s->s_name) { - x->mask = s->s_name; - x->x_sym = s; - } else { - x->mask = "%s%s%s%s%s%s%s%s%s%s"; - x->x_sym = gensym(""); - } + if (*s->s_name) { + x->mask = s->s_name; + x->x_sym = s; + } else { + x->mask = "%s%s%s%s%s%s%s%s%s%s"; + x->x_sym = gensym(""); + } } typedef char cstring[MAXSTRINGLENG]; @@ -74,85 +73,92 @@ typedef char cstring[MAXSTRINGLENG]; static t_symbol* list2symbol(char *masque, int argc, t_atom *argv) { cstring*buf=(cstring*)getbytes(MAXSTRINGARGS*sizeof(cstring)); - cstring buffer; - int i; + cstring buffer; + int i; - for(i=0; i<MAXSTRINGARGS; i++)*buf[i]=0; + for(i=0; i<MAXSTRINGARGS; i++) { + *buf[i]=0; + } - for (i=0; i<argc; i++) { - atom_string(argv+i, buf[i], MAXSTRINGLENG); - } + for (i=0; i<argc; i++) { + atom_string(argv+i, buf[i], MAXSTRINGLENG); + } - sprintf(buffer, - masque, - buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7], buf[8], buf[9]); + sprintf(buffer, + masque, + buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7], buf[8], + buf[9]); - freebytes(buf, MAXSTRINGARGS*sizeof(cstring)); - return (gensym(buffer)); + freebytes(buf, MAXSTRINGARGS*sizeof(cstring)); + return (gensym(buffer)); } -static void makesymbol_list(t_makesymbol *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void makesymbol_list(t_makesymbol *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { - x->x_sym = list2symbol(x->mask, argc, argv); - outlet_symbol(x->x_obj.ob_outlet, x->x_sym); + x->x_sym = list2symbol(x->mask, argc, argv); + outlet_symbol(x->x_obj.ob_outlet, x->x_sym); } static void makesymbol_bang(t_makesymbol *x) { - outlet_symbol(x->x_obj.ob_outlet, x->x_sym); + outlet_symbol(x->x_obj.ob_outlet, x->x_sym); } static void *makesymbol_new(t_symbol* UNUSED(s), int argc, t_atom *argv) { - t_makesymbol *x = (t_makesymbol *)pd_new(makesymbol_class); + t_makesymbol *x = (t_makesymbol *)pd_new(makesymbol_class); - x->buf = (char *)getbytes(MAXSTRINGLENG * sizeof(char)); + x->buf = (char *)getbytes(MAXSTRINGLENG * sizeof(char)); - x->mask = x->buf; + x->mask = x->buf; - if (argc) { - atom_string(argv, x->buf, MAXSTRINGLENG); - x->x_sym = gensym(x->buf); - } else { - x->mask = "%s%s%s%s%s%s%s%s%s%s"; - x->x_sym = gensym(""); - } + if (argc) { + atom_string(argv, x->buf, MAXSTRINGLENG); + x->x_sym = gensym(x->buf); + } else { + x->mask = "%s%s%s%s%s%s%s%s%s%s"; + x->x_sym = gensym(""); + } - outlet_new(&x->x_obj, gensym("symbol")); - inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("symbol"), gensym("sym1")); + outlet_new(&x->x_obj, gensym("symbol")); + inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("symbol"), gensym("sym1")); - return (x); + return (x); } static void makesymbol_free(t_makesymbol *x) { - freebytes(x->buf, MAXSTRINGLENG*sizeof(char)); + freebytes(x->buf, MAXSTRINGLENG*sizeof(char)); } static void makesymbol_helper(t_makesymbol* UNUSED(x)) { - post("\n"HEARTSYMBOL" makesymbol :: create a formatted symbol"); - post("<list of anything>\t: glue up to 10 list-elements to 1 formatted symbol\n" - "'bang'\t\t\t: re-output\n" - "'help'\t\t\t: view this" - "\ninlet2 : <format-string>: new format-string (symbol !)" - "\noutlet : <symbol>\t: formatted concatenation"); - post("\ncreation:\"makesymbol [<format-string>]\": C-style format-string (%s only)", "%s"); + post("\n"HEARTSYMBOL " makesymbol :: create a formatted symbol"); + post("<list of anything>\t: glue up to 10 list-elements to 1 formatted symbol\n" + "'bang'\t\t\t: re-output\n" + "'help'\t\t\t: view this" + "\ninlet2 : <format-string>: new format-string (symbol !)" + "\noutlet : <symbol>\t: formatted concatenation"); + post("\ncreation:\"makesymbol [<format-string>]\": C-style format-string (%s only)", + "%s"); } void makesymbol_setup(void) { - makesymbol_class = class_new(gensym("makesymbol"), - (t_newmethod)makesymbol_new, (t_method)makesymbol_free, - sizeof(t_makesymbol), 0, A_GIMME, 0); + makesymbol_class = class_new(gensym("makesymbol"), + (t_newmethod)makesymbol_new, (t_method)makesymbol_free, + sizeof(t_makesymbol), 0, A_GIMME, 0); - class_addlist(makesymbol_class, makesymbol_list); - class_addbang(makesymbol_class, makesymbol_bang); + class_addlist(makesymbol_class, makesymbol_list); + class_addbang(makesymbol_class, makesymbol_bang); - class_addmethod(makesymbol_class, (t_method)reset_mask, gensym("sym1"), A_SYMBOL, 0); + class_addmethod(makesymbol_class, (t_method)reset_mask, gensym("sym1"), + A_SYMBOL, 0); - class_addmethod(makesymbol_class, (t_method)makesymbol_helper, gensym("help"), 0); + class_addmethod(makesymbol_class, (t_method)makesymbol_helper, + gensym("help"), 0); zexy_register("makesymbol"); } diff --git a/externals/zexy/src/matchbox.c b/externals/zexy/src/matchbox.c index f1d8183389c333388209bf4693bcd6a12adcb2c3..07899d9ec413578b0bcc2d673c10d80a54c5a83a 100644 --- a/externals/zexy/src/matchbox.c +++ b/externals/zexy/src/matchbox.c @@ -1,4 +1,4 @@ -/* +/* * matchbox: see whether a regular expression matches a symbol in the box * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -57,8 +57,7 @@ typedef struct _listlist { } t_listlist; -typedef struct _matchbox -{ +typedef struct _matchbox { t_object x_obj; t_listlist*x_lists; @@ -74,34 +73,42 @@ typedef struct _matchbox /* ----------- here comes some infrastructure stuff -------------- */ -static t_listlist* addlistlist(t_listlist*list, int argc, t_atom*argv) { +static t_listlist* addlistlist(t_listlist*list, int argc, t_atom*argv) +{ t_listlist*ll=(t_listlist*)getbytes(sizeof(t_listlist)); t_listlist*lp=0; ll->next=0; ll->argc=argc; ll->argv=(t_atom*)getbytes(argc*sizeof(t_atom)); - memcpy(ll->argv, argv, argc*sizeof(t_atom)); + memcpy(ll->argv, argv, argc*sizeof(t_atom)); if(0==list) { return ll; } - + lp=list; - while(0!=lp->next)lp=lp->next; + while(0!=lp->next) { + lp=lp->next; + } lp->next=ll; return list; } /* delete the _next_ element from the list */ -static t_listlist* deletelistnext(t_listlist*list) { +static t_listlist* deletelistnext(t_listlist*list) +{ t_listlist*ll=0; - if(!list || !list->next)return list; /* nothing to delete */ + if(!list || !list->next) { + return list; /* nothing to delete */ + } ll=list->next; list->next=ll->next; - if(ll->argv)freebytes(ll->argv, ll->argc*sizeof(t_atom)); + if(ll->argv) { + freebytes(ll->argv, ll->argc*sizeof(t_atom)); + } ll->argv=0; ll->argc=0; @@ -111,9 +118,12 @@ static t_listlist* deletelistnext(t_listlist*list) { } /* delete the entire list of lists */ -static void clearlistlist(t_listlist*list) { - if(!list)return; /* nothing to delete */ - while(list->next){ +static void clearlistlist(t_listlist*list) +{ + if(!list) { + return; /* nothing to delete */ + } + while(list->next) { list=deletelistnext(list); } } @@ -121,7 +131,8 @@ static void clearlistlist(t_listlist*list) { /* -------------- here comes the matching algorithms ----------- */ -static int atommatch_exact(t_atom*pattern, t_atom*atom) { +static int atommatch_exact(t_atom*pattern, t_atom*atom) +{ if(pattern->a_type==atom->a_type) { switch(pattern->a_type) { case A_FLOAT: @@ -142,10 +153,10 @@ static int atommatch_exact(t_atom*pattern, t_atom*atom) { #ifdef MATCHBOX_OSC /* OSC */ /* -OSC pattern matching code was written by Matt Wright, +OSC pattern matching code was written by Matt Wright, The Center for New Music and Audio Technologies, University of California, Berkeley. Copyright (c) 1998,99,2000,01,02,03,04 -The Regents of the University of California (Regents). +The Regents of the University of California (Regents). Permission to use, copy, modify, distribute, and distribute modified versions of this software and its documentation without fee and without a signed @@ -168,25 +179,32 @@ The OSC webpage is http://cnmat.cnmat.berkeley.edu/OpenSoundControl */ #define OSCWarning post -static int OSC_MatchBrackets (const char *pattern, const char *test, const char*theWholePattern); -static int OSC_MatchList (const char *pattern, const char *test, const char*theWholePattern); +static int OSC_MatchBrackets (const char *pattern, const char *test, + const char*theWholePattern); +static int OSC_MatchList (const char *pattern, const char *test, + const char*theWholePattern); -static int OSC_PatternMatch (const char * pattern, const char * test, const char*theWholePattern) { +static int OSC_PatternMatch (const char * pattern, const char * test, + const char*theWholePattern) +{ if (pattern == 0 || pattern[0] == 0) { return test[0] == 0; - } - + } + if (test[0] == 0) { - if (pattern[0] == '*') + if (pattern[0] == '*') { return OSC_PatternMatch (pattern+1,test, theWholePattern); - else + } else { return FALSE; + } } switch (pattern[0]) { - case 0 : return test[0] == 0; - case '?' : return OSC_PatternMatch (pattern + 1, test + 1, theWholePattern); - case '*' : + case 0 : + return test[0] == 0; + case '?' : + return OSC_PatternMatch (pattern + 1, test + 1, theWholePattern); + case '*' : if (OSC_PatternMatch (pattern+1, test, theWholePattern)) { return TRUE; } else { @@ -194,13 +212,14 @@ static int OSC_PatternMatch (const char * pattern, const char * test, const cha } case ']' : case '}' : - z_verbose(1, "[matchbox]: spurious %c in OSC-pattern \".../%s/...\"",pattern[0], theWholePattern); + z_verbose(1, "[matchbox]: spurious %c in OSC-pattern \".../%s/...\"", + pattern[0], theWholePattern); return FALSE; case '[' : return OSC_MatchBrackets (pattern,test, theWholePattern); case '{' : return OSC_MatchList (pattern,test, theWholePattern); - case '\\' : + case '\\' : if (pattern[1] == 0) { return test[0] == 0; } else if (pattern[1] == test[0]) { @@ -219,13 +238,16 @@ static int OSC_PatternMatch (const char * pattern, const char * test, const cha /* we know that pattern[0] == '[' and test[0] != 0 */ -static int OSC_MatchBrackets (const char *pattern, const char *test, const char*theWholePattern) { +static int OSC_MatchBrackets (const char *pattern, const char *test, + const char*theWholePattern) +{ int result; int negated = FALSE; const char *p = pattern; if (pattern[1] == 0) { - z_verbose(1, "[matchbox]: unterminated [ in OSC-pattern \".../%s/...\"", theWholePattern); + z_verbose(1, "[matchbox]: unterminated [ in OSC-pattern \".../%s/...\"", + theWholePattern); return FALSE; } @@ -236,13 +258,14 @@ static int OSC_MatchBrackets (const char *pattern, const char *test, const char* while (*p != ']') { if (*p == 0) { - z_verbose(1, "[matchbox]: unterminated [ in OSC-pattern \".../%s/...\"", theWholePattern); + z_verbose(1, "[matchbox]: unterminated [ in OSC-pattern \".../%s/...\"", + theWholePattern); return FALSE; } if (p[1] == '-' && p[2] != 0) { if (test[0] >= p[0] && test[0] <= p[2]) { - result = !negated; - goto advance; + result = !negated; + goto advance; } } if (p[0] == test[0]) { @@ -254,14 +277,16 @@ static int OSC_MatchBrackets (const char *pattern, const char *test, const char* result = negated; - advance: +advance: - if (!result) + if (!result) { return FALSE; + } while (*p != ']') { if (*p == 0) { - z_verbose(1, "[matchbox]: unterminated [ in OSC-pattern \".../%s/...\"", theWholePattern); + z_verbose(1, "[matchbox]: unterminated [ in OSC-pattern \".../%s/...\"", + theWholePattern); return FALSE; } p++; @@ -270,13 +295,16 @@ static int OSC_MatchBrackets (const char *pattern, const char *test, const char* return OSC_PatternMatch (p+1,test+1, theWholePattern); } -static int OSC_MatchList (const char *pattern, const char *test, const char* theWholePattern) { +static int OSC_MatchList (const char *pattern, const char *test, + const char* theWholePattern) +{ const char *restOfPattern, *tp = test; for(restOfPattern = pattern; *restOfPattern != '}'; restOfPattern++) { if (*restOfPattern == 0) { - z_verbose(1, "[matchbox]: unterminated { in OSC-pattern \".../%s/...\"", theWholePattern); + z_verbose(1, "[matchbox]: unterminated { in OSC-pattern \".../%s/...\"", + theWholePattern); return FALSE; } } @@ -287,7 +315,7 @@ static int OSC_MatchList (const char *pattern, const char *test, const char* the pattern++; /* skip open curly brace */ while (1) { - + if (*pattern == ',') { if (OSC_PatternMatch (restOfPattern, tp, theWholePattern)) { return TRUE; @@ -312,7 +340,8 @@ static int OSC_MatchList (const char *pattern, const char *test, const char* the } } -static int atommatch_osc(t_atom*pattern, t_atom*test) { +static int atommatch_osc(t_atom*pattern, t_atom*test) +{ char*s_pattern=0; char*s_test=0; int pattern_size=0, test_size=0; @@ -339,11 +368,13 @@ static int atommatch_osc(t_atom*pattern, t_atom*test) { if(pattern_size>0) { freebytes(s_pattern, pattern_size); - s_pattern=0; pattern_size=0; + s_pattern=0; + pattern_size=0; } if(test_size>0) { freebytes(s_test, test_size); - s_test=0; test_size=0; + s_test=0; + test_size=0; } @@ -353,13 +384,18 @@ static int atommatch_osc(t_atom*pattern, t_atom*test) { #ifdef MATCHBOX_REGEX -static int atommatch_regex(regex_t*pattern, t_atom*test) { +static int atommatch_regex(regex_t*pattern, t_atom*test) +{ int result=FALSE; char*s_test=0; int test_size=0; - if(0==pattern)return FALSE; - if(0==test) return FALSE; + if(0==pattern) { + return FALSE; + } + if(0==test) { + return FALSE; + } if(test->a_type==A_SYMBOL) { s_test=test->a_w.w_symbol->s_name; @@ -373,17 +409,21 @@ static int atommatch_regex(regex_t*pattern, t_atom*test) { if(test_size>0) { freebytes(s_test, test_size); - s_test=0; test_size=0; - } - + s_test=0; + test_size=0; + } + return result; } -static int listmatch_regex(int p_argc, regex_t**pattern, int t_argc, t_atom*test) { +static int listmatch_regex(int p_argc, regex_t**pattern, int t_argc, + t_atom*test) +{ /* match the patterns to the test */ int argc=p_argc; - if(p_argc!=t_argc) + if(p_argc!=t_argc) { return FALSE; + } while(argc--) { if(FALSE==atommatch_regex(*pattern++, test++)) { @@ -394,7 +434,10 @@ static int listmatch_regex(int p_argc, regex_t**pattern, int t_argc, t_atom*test return TRUE; } -static t_listlist*matchlistlist_regex(unsigned int*numresults, t_listlist*searchlist, int p_argc, t_atom*p_argv, int flags, int delete_results) { +static t_listlist*matchlistlist_regex(unsigned int*numresults, + t_listlist*searchlist, int p_argc, t_atom*p_argv, int flags, + int delete_results) +{ regex_t**regexpressions=0; t_listlist*matchinglist=0, *sl; int i=0; @@ -418,15 +461,18 @@ static t_listlist*matchlistlist_regex(unsigned int*numresults, t_listlist*search regexpressions[i]=(regex_t*)getbytes(sizeof(regex_t)); if(regcomp(regexpressions[i], s_pattern, flags)) { z_verbose(1, "[matchbox]: invalid regular expression: %s", s_pattern); - if(regexpressions[i])freebytes(regexpressions[i], sizeof(regex_t)); - regexpressions[i]=0; + if(regexpressions[i]) { + freebytes(regexpressions[i], sizeof(regex_t)); + } + regexpressions[i]=0; } if(pattern_size>0) { freebytes(s_pattern, pattern_size); - s_pattern=0; pattern_size=0; + s_pattern=0; + pattern_size=0; } } - + /* match the patterns to the tests */ if(FALSE==delete_results) { for(sl=searchlist; 0!=sl; sl=sl->next) { @@ -443,7 +489,7 @@ static t_listlist*matchlistlist_regex(unsigned int*numresults, t_listlist*search matchinglist=addlistlist(matchinglist, sl->argc, sl->argv); num++; - sl=deletelistnext(lastgood); + sl=deletelistnext(lastgood); } else { lastgood=sl; } @@ -452,16 +498,17 @@ static t_listlist*matchlistlist_regex(unsigned int*numresults, t_listlist*search /* clear the patterns */ for(i=0; i<p_argc; i++) { - if(regexpressions[i]){ + if(regexpressions[i]) { regfree(regexpressions[i]); freebytes(regexpressions[i], sizeof(regex_t)); } } freebytes(regexpressions, sizeof(regex_t*)*p_argc); - /* return the result */ - if(numresults!=0) + /* return the result */ + if(numresults!=0) { *numresults=num; + } return matchinglist; } #endif /* MATCHBOX_REGEX */ @@ -470,88 +517,105 @@ static t_listlist*matchlistlist_regex(unsigned int*numresults, t_listlist*search -static int matchbox_atommatch(t_atom*pattern, t_atom*atom, int mode) { +static int matchbox_atommatch(t_atom*pattern, t_atom*atom, int mode) +{ switch(mode) { default: - case MATCHBOX_EXACT: return atommatch_exact(pattern, atom); + case MATCHBOX_EXACT: + return atommatch_exact(pattern, atom); #ifdef MATCHBOX_OSC - case MATCHBOX_OSC : return atommatch_osc(pattern, atom); + case MATCHBOX_OSC : + return atommatch_osc(pattern, atom); #endif /* OSC */ } return atommatch_exact(pattern, atom); } static int matchlist(int argc_pattern, t_atom*argv_pattern, - int argc, t_atom*argv, int mode) { + int argc, t_atom*argv, int mode) +{ int i=0; - if(argc!=argc_pattern) + if(argc!=argc_pattern) { return FALSE; + } for(i=0; i<argc; i++) { - if(0==matchbox_atommatch(argv_pattern+i, argv+i, mode)) + if(0==matchbox_atommatch(argv_pattern+i, argv+i, mode)) { return FALSE; + } } - + return TRUE; } -static t_listlist*matchlistlist(unsigned int*numresults, t_listlist*searchlist, int p_argc, t_atom*p_argv, int mode, int delete_results) { +static t_listlist*matchlistlist(unsigned int*numresults, + t_listlist*searchlist, int p_argc, t_atom*p_argv, int mode, + int delete_results) +{ unsigned int num=0; t_listlist*matchinglist=0, *sl; /* extra handling of regex matching (because we want to compile only once */ #ifdef MATCHBOX_REGEX if(MATCHBOX_REGEX==mode) { - matchinglist=matchlistlist_regex(&num, searchlist, p_argc, p_argv, 0, delete_results); - } else + matchinglist=matchlistlist_regex(&num, searchlist, p_argc, p_argv, 0, + delete_results); + } else #endif /* MATCHBOX_REGEX */ - /* normal matching */ - if(FALSE==delete_results) { - for(sl=searchlist->next; 0!=sl; sl=sl->next) { - if(matchlist(p_argc, p_argv, sl->argc, sl->argv, mode)) { - matchinglist=addlistlist(matchinglist, sl->argc, sl->argv); - num++; + /* normal matching */ + if(FALSE==delete_results) { + for(sl=searchlist->next; 0!=sl; sl=sl->next) { + if(matchlist(p_argc, p_argv, sl->argc, sl->argv, mode)) { + matchinglist=addlistlist(matchinglist, sl->argc, sl->argv); + num++; + } } - } - } else if (TRUE==delete_results) { - /* yummy: delete matching lists! */ - t_listlist*lastgood=searchlist; - for(sl=searchlist->next; 0!=sl; sl=sl->next) { - if(matchlist(p_argc, p_argv, sl->argc, sl->argv, mode)) { - matchinglist=addlistlist(matchinglist, sl->argc, sl->argv); - num++; - - sl=deletelistnext(lastgood); - } else { - lastgood=sl; + } else if (TRUE==delete_results) { + /* yummy: delete matching lists! */ + t_listlist*lastgood=searchlist; + for(sl=searchlist->next; 0!=sl; sl=sl->next) { + if(matchlist(p_argc, p_argv, sl->argc, sl->argv, mode)) { + matchinglist=addlistlist(matchinglist, sl->argc, sl->argv); + num++; + + sl=deletelistnext(lastgood); + } else { + lastgood=sl; + } } } - } - if(numresults!=0) + if(numresults!=0) { *numresults=num; + } return matchinglist; } -static void matchbox_list(t_matchbox*x, t_symbol*s, int argc, t_atom*argv) { +static void matchbox_list(t_matchbox*x, t_symbol*s, int argc, t_atom*argv) +{ unsigned int results=0; int mode=x->x_mode; - t_listlist*resultlist=matchlistlist(&results, x->x_lists, argc, argv, mode, FALSE); + t_listlist*resultlist=matchlistlist(&results, x->x_lists, argc, argv, mode, + FALSE); t_listlist*dummylist; outlet_float(x->x_outNumResults, (t_float)results); - - for(dummylist=resultlist; 0!=dummylist; dummylist=dummylist->next) - outlet_list(x->x_outResult, gensym("list"), dummylist->argc, dummylist->argv); + + for(dummylist=resultlist; 0!=dummylist; dummylist=dummylist->next) { + outlet_list(x->x_outResult, gensym("list"), dummylist->argc, + dummylist->argv); + } } -static void matchbox_add(t_matchbox*x, t_symbol*s, int argc, t_atom*argv) { +static void matchbox_add(t_matchbox*x, t_symbol*s, int argc, t_atom*argv) +{ /* 1st match, whether we already have this entry */ if(matchlistlist(0, x->x_lists, argc, argv, MATCHBOX_EXACT, FALSE)) { /* already there, skip the rest */ - z_verbose(1, "[matchbox]: refusing to add already existing list to buffer..."); + z_verbose(1, + "[matchbox]: refusing to add already existing list to buffer..."); return; } @@ -560,58 +624,66 @@ static void matchbox_add(t_matchbox*x, t_symbol*s, int argc, t_atom*argv) { x->x_numlists++; } -static void matchbox_delete(t_matchbox*x, t_symbol*s, int argc, t_atom*argv) { +static void matchbox_delete(t_matchbox*x, t_symbol*s, int argc, + t_atom*argv) +{ unsigned int results=0; int mode=x->x_mode; - t_listlist*resultlist=matchlistlist(&results, x->x_lists, argc, argv, mode, TRUE); + t_listlist*resultlist=matchlistlist(&results, x->x_lists, argc, argv, mode, + TRUE); t_listlist*dummylist; t_symbol*delsym=gensym("deleted"); x->x_numlists-=results; outlet_float(x->x_outNumResults, (t_float)results); - - for(dummylist=resultlist; 0!=dummylist; dummylist=dummylist->next) + + for(dummylist=resultlist; 0!=dummylist; dummylist=dummylist->next) { outlet_anything(x->x_outResult, delsym, dummylist->argc, dummylist->argv); + } } -static void matchbox_dump(t_matchbox*x) { +static void matchbox_dump(t_matchbox*x) +{ t_listlist*lp=0; - if(0==x->x_lists || 0==x->x_lists->next){ + if(0==x->x_lists || 0==x->x_lists->next) { outlet_float(x->x_outNumResults, 0); return; } outlet_float(x->x_outNumResults, x->x_numlists); - for(lp=x->x_lists->next; 0!=lp; lp=lp->next) - { + for(lp=x->x_lists->next; 0!=lp; lp=lp->next) { outlet_list(x->x_outResult, gensym("list"), lp->argc, lp->argv); } } -static void matchbox_clear(t_matchbox*x) { +static void matchbox_clear(t_matchbox*x) +{ clearlistlist(x->x_lists); x->x_numlists=0; } -static void matchbox_mode(t_matchbox*x, t_symbol*s) { - if(gensym("==")==s) +static void matchbox_mode(t_matchbox*x, t_symbol*s) +{ + if(gensym("==")==s) { x->x_mode=MATCHBOX_EXACT; - else if (gensym("OSC")==s) { + } else if (gensym("OSC")==s) { #ifdef MATCHBOX_OSC x->x_mode=MATCHBOX_OSC; #else - pd_error(x, "[matchbox] has been compiled without 'OSC' support; ignoring your request"); + pd_error(x, + "[matchbox] has been compiled without 'OSC' support; ignoring your request"); #endif /* MATCHBOX_OSC */ } else if(gensym("regex")==s) { #ifdef MATCHBOX_REGEX x->x_mode=MATCHBOX_REGEX; #else - pd_error(x, "[matchbox] has been compiled without 'regex' support; ignoring your request"); + pd_error(x, + "[matchbox] has been compiled without 'regex' support; ignoring your request"); #endif /* MATCHBOX_REGEX */ } else { pd_error(x, "mode '%s' is unknown, switching to 'exact' mode", s->s_name); @@ -648,13 +720,13 @@ static void *matchbox_new(t_symbol *s, int argc, t_atom*argv) static void matchbox_free(t_matchbox *x) { matchbox_clear(x); - freebytes(x->x_lists, sizeof(t_listlist)); + freebytes(x->x_lists, sizeof(t_listlist)); x->x_lists=0; } static void matchbox_help(t_matchbox*x) { - post("\n"HEARTSYMBOL" matchbox\t\t:: find a list in a pool of lists"); + post("\n"HEARTSYMBOL " matchbox\t\t:: find a list in a pool of lists"); } void matchbox_setup(void) @@ -664,18 +736,24 @@ void matchbox_setup(void) #endif /* MATCHBOX_OSC */ - matchbox_class = class_new(gensym("matchbox"), (t_newmethod)matchbox_new, - (t_method)matchbox_free, sizeof(t_matchbox), 0, A_GIMME, 0); + matchbox_class = class_new(gensym("matchbox"), (t_newmethod)matchbox_new, + (t_method)matchbox_free, sizeof(t_matchbox), 0, A_GIMME, 0); class_addlist (matchbox_class, matchbox_list); - class_addmethod(matchbox_class, (t_method)matchbox_add, gensym("add"), A_GIMME, 0); - class_addmethod(matchbox_class, (t_method)matchbox_delete, gensym("delete"), A_GIMME, 0); - class_addmethod(matchbox_class, (t_method)matchbox_clear, gensym("clear"), A_NULL, 0); - class_addmethod(matchbox_class, (t_method)matchbox_dump, gensym("dump"), A_NULL); + class_addmethod(matchbox_class, (t_method)matchbox_add, gensym("add"), + A_GIMME, 0); + class_addmethod(matchbox_class, (t_method)matchbox_delete, + gensym("delete"), A_GIMME, 0); + class_addmethod(matchbox_class, (t_method)matchbox_clear, gensym("clear"), + A_NULL, 0); + class_addmethod(matchbox_class, (t_method)matchbox_dump, gensym("dump"), + A_NULL); - class_addmethod(matchbox_class, (t_method)matchbox_mode, gensym("mode"), A_SYMBOL, 0); + class_addmethod(matchbox_class, (t_method)matchbox_mode, gensym("mode"), + A_SYMBOL, 0); - class_addmethod(matchbox_class, (t_method)matchbox_help, gensym("help"), A_NULL); + class_addmethod(matchbox_class, (t_method)matchbox_help, gensym("help"), + A_NULL); zexy_register("matchbox"); } diff --git a/externals/zexy/src/mavg.c b/externals/zexy/src/mavg.c index 75b425b07d156bd3059ec9683b608036aec59bf5..943dbb60378cef422865ab2c439e82b87077f2f2 100644 --- a/externals/zexy/src/mavg.c +++ b/externals/zexy/src/mavg.c @@ -1,4 +1,4 @@ -/* +/* * mavg :: moving average filter * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -21,8 +21,7 @@ static t_class *mavg_class; -typedef struct _mavg -{ +typedef struct _mavg { t_object x_obj; t_float n_inv; @@ -37,7 +36,9 @@ static void mavg_resize(t_mavg *x, t_float f) t_float *dumbuf; f = (int)f; - if ((f<1) || (f == x->size)) return; + if ((f<1) || (f == x->size)) { + return; + } freebytes(x->buf, sizeof(t_float)*x->size); x->n_inv = 1.0/f; @@ -46,16 +47,21 @@ static void mavg_resize(t_mavg *x, t_float f) dumbuf = x->wp = x->buf; i = x->size; - while(i--) *dumbuf++ = x->avg; + while(i--) { + *dumbuf++ = x->avg; + } } -static void mavg_set(t_mavg *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void mavg_set(t_mavg *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { int i = x->size; t_float *dummy = x->buf; t_float f=(argc)?atom_getfloat(argv):x->avg; - while (i--) *dummy++=f; + while (i--) { + *dummy++=f; + } x->wp = x->buf; } @@ -67,9 +73,13 @@ static void mavg_float(t_mavg *x, t_float f) t_float *dumb = x->buf; *x->wp++ = f; - if (x->wp == x->buf + x->size) x->wp = x->buf; + if (x->wp == x->buf + x->size) { + x->wp = x->buf; + } - while (i--) dummy += *dumb++; + while (i--) { + dummy += *dumb++; + } x->avg = dummy*x->n_inv; @@ -90,7 +100,9 @@ static void *mavg_new(t_floatarg f) x->n_inv = 1.0f/(t_float)i; dumbuf = x->buf; - while (i--) *dumbuf++=0; + while (i--) { + *dumbuf++=0; + } return (x); } @@ -103,13 +115,14 @@ static void mavg_help(void) void mavg_setup(void) { mavg_class = class_new(gensym("mavg"), (t_newmethod)mavg_new, 0, - sizeof(t_mavg), 0, A_DEFFLOAT, 0); + sizeof(t_mavg), 0, A_DEFFLOAT, 0); class_addfloat(mavg_class, (t_method)mavg_float); class_addmethod(mavg_class, (t_method)mavg_help, gensym("help"), 0); class_addmethod(mavg_class, (t_method)mavg_set, gensym("set"), A_GIMME, 0); - class_addmethod(mavg_class, (t_method)mavg_resize, gensym(""), A_DEFFLOAT, 0); + class_addmethod(mavg_class, (t_method)mavg_resize, gensym(""), A_DEFFLOAT, + 0); zexy_register("mavg"); } diff --git a/externals/zexy/src/minmax.c b/externals/zexy/src/minmax.c index 8bb003af0d579999c0600484facf431b1b44298c..4dfb6f927b58417a3f7626ecf9e9bfa11b1945aa 100644 --- a/externals/zexy/src/minmax.c +++ b/externals/zexy/src/minmax.c @@ -1,4 +1,4 @@ -/* +/* * minmax :: get minimum and maximum of a list * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -22,8 +22,7 @@ static t_class *minmax_class; -typedef struct _minmax -{ +typedef struct _minmax { t_object x_obj; t_float min; t_float max; @@ -37,19 +36,23 @@ static void minmax_bang(t_minmax *x) outlet_float(x->mino,x->min); } -static void minmax_list(t_minmax *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void minmax_list(t_minmax *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { - if(argc){ + if(argc) { t_float min = atom_getfloat(argv++); t_float max=min; argc--; - - while(argc--){ + + while(argc--) { t_float f = atom_getfloat(argv++); - if (f<min)min=f; - else if (f>max)max=f; + if (f<min) { + min=f; + } else if (f>max) { + max=f; + } } - + x->min=min; x->max=max; } @@ -76,7 +79,7 @@ static void minmax_help(void) void minmax_setup(void) { minmax_class = class_new(gensym("minmax"), (t_newmethod)minmax_new, 0, - sizeof(t_minmax), 0, A_DEFFLOAT, 0); + sizeof(t_minmax), 0, A_DEFFLOAT, 0); class_addlist(minmax_class, (t_method)minmax_list); class_addbang(minmax_class, (t_method)minmax_bang); diff --git a/externals/zexy/src/msgfile.c b/externals/zexy/src/msgfile.c index 208c476c269622f2b0aaedfa44ad9ab2ef00894e..9fa3604ca89de41b00e7d756175d2fae6f81ccd0 100644 --- a/externals/zexy/src/msgfile.c +++ b/externals/zexy/src/msgfile.c @@ -1,4 +1,4 @@ -/* +/* * msgfile: an improved version of [textfile] * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,18 +7,18 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ -/* +/* this is heavily based on code from [textfile], which is part of pd and written by Miller S. Puckette pd (and thus [textfile]) come with their own license @@ -38,6 +38,7 @@ + /* ****************************************************************************** */ /* msgfile : save and load messages... */ @@ -59,11 +60,10 @@ typedef struct _msglist { t_atom *thislist; void *next; - void *previous; + void *previous; } t_msglist; -typedef struct _msgfile -{ +typedef struct _msgfile { t_object x_obj; /* everything */ t_outlet *x_secondout; /* "done" */ @@ -106,25 +106,27 @@ static int node_wherearewe(t_msgfile *x) cur = cur->next; } - if(cur&&cur->thislist) + if(cur&&cur->thislist) { return counter; + } return -1; } static void write_currentnode(t_msgfile *x, int ac, t_atom *av) { /* append list to the current node list */ - + t_msglist *cur=x->current; t_atom *ap=NULL; - int newsize = 0; + int newsize = 0; - if(!cur || (ac && av && A_SYMBOL==av->a_type && gensym("")==atom_getsymbol(av))){ + if(!cur || (ac && av && A_SYMBOL==av->a_type + && gensym("")==atom_getsymbol(av))) { /* ignoring empty symbols! */ return; } - newsize = cur->n + ac; + newsize = cur->n + ac; ap = (t_atom *)getbytes(newsize * sizeof(t_atom)); memcpy(ap, cur->thislist, cur->n * sizeof(t_atom)); @@ -136,12 +138,12 @@ static void write_currentnode(t_msgfile *x, int ac, t_atom *av) static void delete_currentnode(t_msgfile *x) { - if (x&&x->current){ + if (x&&x->current) { t_msglist *dummy = x->current; t_msglist *nxt=0; t_msglist *prv=0; - if(dummy){ + if(dummy) { nxt=dummy->next; prv=dummy->previous; @@ -160,14 +162,19 @@ static void delete_currentnode(t_msgfile *x) dummy=0; } - if (nxt) nxt->previous = prv; - if (prv) prv->next = nxt; - + if (nxt) { + nxt->previous = prv; + } + if (prv) { + prv->next = nxt; + } + x->current = (nxt)?nxt:prv; - if(x->current) + if(x->current) { x->previous=x->current->previous; - else + } else { x->previous=prv; + } } } @@ -176,11 +183,14 @@ static void delete_emptynodes(t_msgfile *x) { x->current=x->start; x->previous=0; - if (!x->current) return; + if (!x->current) { + return; + } while (x->current && x->current->next) { - if (!x->current->thislist) delete_currentnode(x); - else { + if (!x->current->thislist) { + delete_currentnode(x); + } else { x->previous=x->current; x->current = x->current->next; } @@ -188,7 +198,7 @@ static void delete_emptynodes(t_msgfile *x) } static void add_currentnode(t_msgfile *x) -{ +{ /* add (after the current node) a node at the current position (do not write the listbuf !!!) */ t_msglist *newnode = (t_msglist *)getbytes(sizeof(t_msglist)); t_msglist *prv, *nxt, *cur=x->current; @@ -202,17 +212,23 @@ static void add_currentnode(t_msgfile *x) newnode->next = nxt; newnode->previous = prv; - if (prv) prv->next = newnode; - if (nxt) nxt->previous = newnode; + if (prv) { + prv->next = newnode; + } + if (nxt) { + nxt->previous = newnode; + } x->current = newnode; x->previous=prv; - if(!x->start) /* it's the first line in the buffer */ + if(!x->start) { /* it's the first line in the buffer */ x->start=x->current; + } } static void insert_currentnode(t_msgfile *x) -{ /* insert (add before the current node) a node (do not write a the listbuf !!!) */ +{ + /* insert (add before the current node) a node (do not write a the listbuf !!!) */ t_msglist *newnode; t_msglist *prv, *nxt, *cur = x->current; @@ -230,8 +246,12 @@ static void insert_currentnode(t_msgfile *x) newnode->next = nxt; newnode->previous = prv; - if (prv) prv->next = newnode; - if (nxt) nxt->previous = newnode; + if (prv) { + prv->next = newnode; + } + if (nxt) { + nxt->previous = newnode; + } x->previous=prv; x->current = newnode; @@ -260,25 +280,39 @@ static void delete_region(t_msgfile *x, int start, int stop) dummy = dummy->next; } - if ((stop > counter) || (stop == -1)) stop = counter; - if ((stop+1) && (start > stop)) return; - if (stop == 0) return; + if ((stop > counter) || (stop == -1)) { + stop = counter; + } + if ((stop+1) && (start > stop)) { + return; + } + if (stop == 0) { + return; + } - newwhere = (oldwhere < start)?oldwhere:( (oldwhere < stop)?start:start+(oldwhere-stop)); + newwhere = (oldwhere < start)?oldwhere:( (oldwhere < stop)?start:start+ + (oldwhere-stop)); n = stop - start; msgfile_goto(x, start); - while (n--) delete_currentnode(x); + while (n--) { + delete_currentnode(x); + } - if (newwhere+1) msgfile_goto(x, newwhere); - else msgfile_end(x); + if (newwhere+1) { + msgfile_goto(x, newwhere); + } else { + msgfile_end(x); + } } static int atomcmp(t_atom *this, t_atom *that) { - if (this->a_type != that->a_type) return 1; + if (this->a_type != that->a_type) { + return 1; + } switch (this->a_type) { case A_FLOAT: @@ -324,25 +358,31 @@ static void msgfile_binbuf2listbuf(t_msgfile *x, t_binbuf *bbuf) static void msgfile_rewind(t_msgfile *x) { - // while (x->current && x->current->previous) x->current = x->current->previous; + // while (x->current && x->current->previous) x->current = x->current->previous; x->current = x->start; x->previous=0; } static void msgfile_end(t_msgfile *x) { - if (!x->current) return; + if (!x->current) { + return; + } while (x->current->next) { x->previous= x->current; x->current = x->current->next; } - + } static void msgfile_goto(t_msgfile *x, t_float f) { int i = f; - if (i<0) return; - if (!x->current) return; + if (i<0) { + return; + } + if (!x->current) { + return; + } msgfile_rewind(x); while (i-- && x->current->next) { @@ -357,8 +397,12 @@ static void msgfile_skip(t_msgfile *x, t_float f) t_msglist *dummy = x->start; - if (!f) return; - if (!x->current) return; + if (!f) { + return; + } + if (!x->current) { + return; + } while (dummy->next && dummy!=x->current) { counter++; @@ -366,7 +410,9 @@ static void msgfile_skip(t_msgfile *x, t_float f) } i = counter + f; - if (i<0) i=0; + if (i<0) { + i=0; + } msgfile_goto(x, i); } @@ -387,8 +433,12 @@ static void msgfile_delete(t_msgfile *x, t_symbol *s, int ac, t_atom *av) int pos = atom_getfloat(av); int oldwhere = node_wherearewe(x); - if (pos<0) return; - if (oldwhere > pos) oldwhere--; + if (pos<0) { + return; + } + if (oldwhere > pos) { + oldwhere--; + } msgfile_goto(x, pos); delete_currentnode(x); msgfile_goto(x, oldwhere); @@ -397,13 +447,18 @@ static void msgfile_delete(t_msgfile *x, t_symbol *s, int ac, t_atom *av) int pos2 = atom_getfloat(av); if ((pos1 < pos2) || (pos2 == -1)) { - if (pos2+1) delete_region(x, pos1, pos2+1); - else delete_region(x, pos1, -1); + if (pos2+1) { + delete_region(x, pos1, pos2+1); + } else { + delete_region(x, pos1, -1); + } } else { delete_region(x, pos1+1, -1); delete_region(x, 0, pos2); } - } else delete_currentnode(x); + } else { + delete_currentnode(x); + } } static void msgfile_add(t_msgfile *x, t_symbol *s, int ac, t_atom *av) @@ -416,7 +471,9 @@ static void msgfile_add2(t_msgfile *x, t_symbol *s, int ac, t_atom *av) { msgfile_end(x); if (x->current) { - if(x->current->previous) x->current = x->current->previous; + if(x->current->previous) { + x->current = x->current->previous; + } } else { add_currentnode(x); } @@ -433,11 +490,15 @@ static void msgfile_append(t_msgfile *x, t_symbol *s, int ac, t_atom *av) } static void msgfile_append2(t_msgfile *x, t_symbol *s, int ac, t_atom *av) { - if(!x->current) + if(!x->current) { add_currentnode(x); + } - if (x->current->thislist) write_currentnode(x, ac, av); - else msgfile_append(x, s, ac, av); + if (x->current->thislist) { + write_currentnode(x, ac, av); + } else { + msgfile_append(x, s, ac, av); + } } static void msgfile_insert(t_msgfile *x, t_symbol *s, int ac, t_atom *av) { @@ -449,7 +510,9 @@ static void msgfile_insert(t_msgfile *x, t_symbol *s, int ac, t_atom *av) static void msgfile_insert2(t_msgfile *x, t_symbol *s, int ac, t_atom *av) { t_msglist *cur = x->current; - if ((x->current) && (x->current->previous)) x->current = x->current->previous; + if ((x->current) && (x->current->previous)) { + x->current = x->current->previous; + } write_currentnode(x, ac, av); x->current = cur; } @@ -485,7 +548,8 @@ static void msgfile_flush(t_msgfile *x) static void msgfile_this(t_msgfile *x) { if ((x->current) && (x->current->thislist)) { - outlet_list(x->x_obj.ob_outlet, gensym("list"), x->current->n, x->current->thislist); + outlet_list(x->x_obj.ob_outlet, gensym("list"), x->current->n, + x->current->thislist); } else { outlet_bang(x->x_secondout); } @@ -494,10 +558,14 @@ static void msgfile_next(t_msgfile *x) { if ((x->current) && (x->current->next)) { t_msglist *next = x->current->next; - if (next->thislist) + if (next->thislist) { outlet_list(x->x_obj.ob_outlet, gensym("list"), next->n, next->thislist); - else outlet_bang(x->x_secondout); - } else outlet_bang(x->x_secondout); + } else { + outlet_bang(x->x_secondout); + } + } else { + outlet_bang(x->x_secondout); + } } static void msgfile_prev(t_msgfile *x) { @@ -509,15 +577,19 @@ static void msgfile_prev(t_msgfile *x) prev = x->previous; } if(prev) { - if (prev->thislist) + if (prev->thislist) { outlet_list(x->x_obj.ob_outlet, gensym("list"), prev->n, prev->thislist); - else outlet_bang(x->x_secondout); + } else { + outlet_bang(x->x_secondout); + } - } else outlet_bang(x->x_secondout); + } else { + outlet_bang(x->x_secondout); + } } static void msgfile_bang(t_msgfile *x) -{ +{ if ((x->current) && (x->current->thislist)) { t_msglist*cur=x->current; x->current=cur->next; @@ -539,12 +611,14 @@ static void msgfile_find(t_msgfile *x, t_symbol *s, int ac, t_atom *av) t_atom *that = av; t_atom *this = cur->thislist; - if(0==this){ + if(0==this) { cur=cur->next; continue; } - - if (ac < n) n = ac; + + if (ac < n) { + n = ac; + } while (n-->0) { if ( (strcmp("*", atom_getsymbol(that)->s_name) && atomcmp(that, this)) ) { @@ -563,12 +637,14 @@ static void msgfile_find(t_msgfile *x, t_symbol *s, int ac, t_atom *av) cur=cur->next; } - if(found){ + if(found) { x->current = found; x->previous= found->previous; outlet_float(x->x_secondout, node_wherearewe(x)); - if(found->n && found->thislist) - outlet_list(x->x_obj.ob_outlet, gensym("list"), found->n, found->thislist); + if(found->n && found->thislist) { + outlet_list(x->x_obj.ob_outlet, gensym("list"), found->n, + found->thislist); + } } else { outlet_bang(x->x_secondout); } @@ -576,14 +652,19 @@ static void msgfile_find(t_msgfile *x, t_symbol *s, int ac, t_atom *av) static void msgfile_where(t_msgfile *x) { - if (x->current && x->current->thislist) outlet_float(x->x_secondout, node_wherearewe(x)); - else outlet_bang(x->x_secondout); + if (x->current && x->current->thislist) { + outlet_float(x->x_secondout, node_wherearewe(x)); + } else { + outlet_bang(x->x_secondout); + } } -static void msgfile_sort(t_msgfile *x, t_symbol *s0, t_symbol*s1, t_symbol*r) +static void msgfile_sort(t_msgfile *x, t_symbol *s0, t_symbol*s1, + t_symbol*r) { - post("sorting not implemented yet: '%s', '%s' -> '%s'", s0->s_name, s1->s_name, r->s_name); + post("sorting not implemented yet: '%s', '%s' -> '%s'", s0->s_name, + s1->s_name, r->s_name); #if 0 @@ -625,7 +706,8 @@ static void msgfile_sort(t_msgfile *x, t_symbol *s0, t_symbol*s1, t_symbol*r) /* ********************************** */ /* file I/O */ -static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format) +static void msgfile_read2(t_msgfile *x, t_symbol *filename, + t_symbol *format) { int rmode = 0; @@ -647,21 +729,25 @@ static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format) rmode |= O_BINARY; #endif - if ((fd = open_via_path(dirname, - filename->s_name, "", buf, &bufptr, MAXPDSTRING, 0)) < 0) { + fd = open_via_path(dirname, + filename->s_name, "", buf, &bufptr, MAXPDSTRING, 0); - if((fd=open(filename->s_name, rmode)) < 0) { + if (fd < 0) { + /* open via path failed, fall back */ + fd=z_open(filename->s_name, rmode); + if(fd < 0) { pd_error(x, "can't open in %s/%s", dirname, filename->s_name); return; } else { + z_close(fd); sprintf(filnam, "%s", filename->s_name); } } else { - close(fd); + z_close(fd); sprintf(filnam, "%s/%s", buf, bufptr); } - fil=fopen(filnam, "rb"); + fil=z_fopen(filnam, "rb"); if(fil==NULL) { pd_error(x, "could not open '%s'", filnam); return; @@ -671,9 +757,9 @@ static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format) fseek(fil, 0, SEEK_SET); if (!(readbuf = t_getbytes(length))) { - pd_error(x, "msgfile_read: could not reserve %ld bytes to read into", length); - fclose(fil); - close(fd); + pd_error(x, "msgfile_read: could not reserve %ld bytes to read into", + length); + z_fclose(fil); return; } @@ -683,8 +769,9 @@ static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format) mode = CSV_MODE; } else if (gensym("pd")==format) { mode = PD_MODE; - } else if (*format->s_name) + } else if (*format->s_name) { pd_error(x, "msgfile_read: unknown flag: %s", format->s_name); + } switch (mode) { case CR_MODE: @@ -703,14 +790,15 @@ static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format) /* read */ if ((readlength = fread(readbuf, sizeof(char), length, fil)) < length) { - pd_error(x, "msgfile_read: unable to read %s: %ld of %ld", filnam, readlength, length); - fclose(fil); + pd_error(x, "msgfile_read: unable to read %s: %ld of %ld", filnam, + readlength, length); + z_fclose(fil); t_freebytes(readbuf, length); return; } /* close */ - fclose(fil); + z_fclose(fil); /* convert separators and eols to what pd expects in a binbuf*/ bufptr=readbuf; @@ -719,22 +807,26 @@ static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format) charbinbuflength=2*length+MSGFILE_HEADROOM; charbinbuf=(char*)getbytes(charbinbuflength); - + cbb=charbinbuf; - for(pos=0; pos<charbinbuflength; pos++)charbinbuf[pos]=0; + for(pos=0; pos<charbinbuflength; pos++) { + charbinbuf[pos]=0; + } *cbb++=';'; pos=1; while (readlength--) { - if(pos>=charbinbuflength){ - pd_error(x, "msgfile: read error (headroom %d too small!)", MSGFILE_HEADROOM); + if(pos>=charbinbuflength) { + pd_error(x, "msgfile: read error (headroom %d too small!)", + MSGFILE_HEADROOM); goto read_error; break; } if (*bufptr == separator) { *cbb = ' '; } else if (*bufptr==eol) { - *cbb++=';';pos++; + *cbb++=';'; + pos++; *cbb='\n'; } else { *cbb=*bufptr; @@ -749,18 +841,20 @@ static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format) binbuf_text(bbuf, charbinbuf, charbinbuflength); msgfile_binbuf2listbuf(x, bbuf); - read_error: +read_error: binbuf_free(bbuf); t_freebytes(readbuf, length); t_freebytes(charbinbuf, charbinbuflength); } -static void msgfile_read(t_msgfile *x, t_symbol *filename, t_symbol *format) +static void msgfile_read(t_msgfile *x, t_symbol *filename, + t_symbol *format) { msgfile_clear(x); msgfile_read2(x, filename, format); } -static void msgfile_write(t_msgfile *x, t_symbol *filename, t_symbol *format) +static void msgfile_write(t_msgfile *x, t_symbol *filename, + t_symbol *format) { char buf[MAXPDSTRING]; t_binbuf *bbuf = binbuf_new(); @@ -780,9 +874,6 @@ static void msgfile_write(t_msgfile *x, t_symbol *filename, t_symbol *format) binbuf_addsemi(bbuf); cur = cur->next; } - - canvas_makefilename(x->x_canvas, filename->s_name, - buf, MAXPDSTRING); if(format&&gensym("")!=format) { if(gensym("cr")==format) { @@ -795,7 +886,7 @@ static void msgfile_write(t_msgfile *x, t_symbol *filename, t_symbol *format) pd_error(x, "msgfile_write: ignoring unknown flag: %s", format->s_name); } } - + switch (mode) { case CR_MODE: separator = ' '; @@ -810,22 +901,25 @@ static void msgfile_write(t_msgfile *x, t_symbol *filename, t_symbol *format) eol = ';'; break; } - + binbuf_gettext(bbuf, &mytext, &textlen); dumtext = mytext; i = textlen; while(i--) { - if (*dumtext==' ') + if (*dumtext==' ') { *dumtext=separator; - else if ((*dumtext==';') && (dumtext[1]=='\n')) + } else if ((*dumtext==';') && (dumtext[1]=='\n')) { *dumtext = eol; + } dumtext++; } - + /* open */ - sys_bashfilename(filename->s_name, filnam); - if (!(f = fopen(filnam, "w"))) { + canvas_makefilename(x->x_canvas, filename->s_name, + buf, MAXPDSTRING); + sys_bashfilename(buf, filnam); + if (!(f = z_fopen(filnam, "w"))) { pd_error(x, "msgfile : failed to open %s", filnam); } else { /* write */ @@ -834,7 +928,9 @@ static void msgfile_write(t_msgfile *x, t_symbol *filename, t_symbol *format) } } /* close */ - if (f) fclose(f); + if (f) { + z_fclose(f); + } binbuf_free(bbuf); } @@ -864,7 +960,7 @@ static void msgfile_print(t_msgfile *x) static void msgfile_help(t_msgfile *x) { - post("\n"HEARTSYMBOL" msgfile\t:: handle and store files of lists"); + post("\n"HEARTSYMBOL " msgfile\t:: handle and store files of lists"); post("goto <n>\t: goto line <n>" "\nrewind\t\t: goto the beginning of the file" "\nend\t\t: goto the end of the file" @@ -912,10 +1008,13 @@ static void *msgfile_new(t_symbol *s, int argc, t_atom *argv) if ((argc==1) && (argv->a_type == A_SYMBOL)) { t_symbol*mode=atom_getsymbol(argv); - if (gensym("cr") == mode) x->mode = CR_MODE; - else if (gensym("csv")== mode) x->mode = CSV_MODE; - else if (gensym("pd") == mode) x->mode = PD_MODE; - else { + if (gensym("cr") == mode) { + x->mode = CR_MODE; + } else if (gensym("csv")== mode) { + x->mode = CSV_MODE; + } else if (gensym("pd") == mode) { + x->mode = PD_MODE; + } else { pd_error(x, "msgfile: unknown argument %s", argv->a_w.w_symbol->s_name); } } @@ -934,44 +1033,68 @@ void msgfile_setup(void) { msgfile_class = class_new(gensym("msgfile"), (t_newmethod)msgfile_new, (t_method)msgfile_free, sizeof(t_msgfile), 0, A_GIMME, 0); - class_addmethod(msgfile_class, (t_method)msgfile_goto, gensym("goto"), A_DEFFLOAT, 0); - class_addmethod(msgfile_class, (t_method)msgfile_rewind, gensym("rewind"), 0); - class_addmethod(msgfile_class, (t_method)msgfile_rewind, gensym("begin"), 0); + class_addmethod(msgfile_class, (t_method)msgfile_goto, gensym("goto"), + A_DEFFLOAT, 0); + class_addmethod(msgfile_class, (t_method)msgfile_rewind, gensym("rewind"), + 0); + class_addmethod(msgfile_class, (t_method)msgfile_rewind, gensym("begin"), + 0); class_addmethod(msgfile_class, (t_method)msgfile_end, gensym("end"), 0); - class_addmethod(msgfile_class, (t_method)msgfile_next, gensym("next"), A_DEFFLOAT, 0); - class_addmethod(msgfile_class, (t_method)msgfile_prev, gensym("prev"), A_DEFFLOAT, 0); - - class_addmethod(msgfile_class, (t_method)msgfile_skip, gensym("skip"), A_DEFFLOAT, 0); - - class_addmethod(msgfile_class, (t_method)msgfile_set, gensym("set"), A_GIMME, 0); - - class_addmethod(msgfile_class, (t_method)msgfile_clear, gensym("clear"), 0); - class_addmethod(msgfile_class, (t_method)msgfile_delete, gensym("delete"), A_GIMME, 0); - - class_addmethod(msgfile_class, (t_method)msgfile_add, gensym("add"), A_GIMME, 0); - class_addmethod(msgfile_class, (t_method)msgfile_add2, gensym("add2"), A_GIMME, 0); - class_addmethod(msgfile_class, (t_method)msgfile_append, gensym("append"), A_GIMME, 0); - class_addmethod(msgfile_class, (t_method)msgfile_append2, gensym("append2"), A_GIMME, 0); - class_addmethod(msgfile_class, (t_method)msgfile_insert, gensym("insert"), A_GIMME, 0); - class_addmethod(msgfile_class, (t_method)msgfile_insert2, gensym("insert2"), A_GIMME, 0); - - class_addmethod(msgfile_class, (t_method)msgfile_replace, gensym("replace"), A_GIMME, 0); - - class_addmethod(msgfile_class, (t_method)msgfile_find, gensym("find"), A_GIMME, 0); - - class_addmethod(msgfile_class, (t_method)msgfile_read, gensym("read"), A_SYMBOL, A_DEFSYM, 0); - class_addmethod(msgfile_class, (t_method)msgfile_read2, gensym("read2"), A_SYMBOL, A_DEFSYM, 0); - class_addmethod(msgfile_class, (t_method)msgfile_write, gensym("write"), A_SYMBOL, A_DEFSYM, 0); - class_addmethod(msgfile_class, (t_method)msgfile_print, gensym("print"), 0); - class_addmethod(msgfile_class, (t_method)msgfile_flush, gensym("flush"), 0); + class_addmethod(msgfile_class, (t_method)msgfile_next, gensym("next"), + A_DEFFLOAT, 0); + class_addmethod(msgfile_class, (t_method)msgfile_prev, gensym("prev"), + A_DEFFLOAT, 0); + + class_addmethod(msgfile_class, (t_method)msgfile_skip, gensym("skip"), + A_DEFFLOAT, 0); + + class_addmethod(msgfile_class, (t_method)msgfile_set, gensym("set"), + A_GIMME, 0); + + class_addmethod(msgfile_class, (t_method)msgfile_clear, gensym("clear"), + 0); + class_addmethod(msgfile_class, (t_method)msgfile_delete, gensym("delete"), + A_GIMME, 0); + + class_addmethod(msgfile_class, (t_method)msgfile_add, gensym("add"), + A_GIMME, 0); + class_addmethod(msgfile_class, (t_method)msgfile_add2, gensym("add2"), + A_GIMME, 0); + class_addmethod(msgfile_class, (t_method)msgfile_append, gensym("append"), + A_GIMME, 0); + class_addmethod(msgfile_class, (t_method)msgfile_append2, + gensym("append2"), A_GIMME, 0); + class_addmethod(msgfile_class, (t_method)msgfile_insert, gensym("insert"), + A_GIMME, 0); + class_addmethod(msgfile_class, (t_method)msgfile_insert2, + gensym("insert2"), A_GIMME, 0); + + class_addmethod(msgfile_class, (t_method)msgfile_replace, + gensym("replace"), A_GIMME, 0); + + class_addmethod(msgfile_class, (t_method)msgfile_find, gensym("find"), + A_GIMME, 0); + + class_addmethod(msgfile_class, (t_method)msgfile_read, gensym("read"), + A_SYMBOL, A_DEFSYM, 0); + class_addmethod(msgfile_class, (t_method)msgfile_read2, gensym("read2"), + A_SYMBOL, A_DEFSYM, 0); + class_addmethod(msgfile_class, (t_method)msgfile_write, gensym("write"), + A_SYMBOL, A_DEFSYM, 0); + class_addmethod(msgfile_class, (t_method)msgfile_print, gensym("print"), + 0); + class_addmethod(msgfile_class, (t_method)msgfile_flush, gensym("flush"), + 0); class_addbang(msgfile_class, msgfile_bang); class_addmethod(msgfile_class, (t_method)msgfile_this, gensym("this"), 0); - class_addmethod(msgfile_class, (t_method)msgfile_where, gensym("where"), 0); + class_addmethod(msgfile_class, (t_method)msgfile_where, gensym("where"), + 0); - class_addmethod(msgfile_class, (t_method)msgfile_sort, gensym("sort"), A_SYMBOL, A_SYMBOL, A_SYMBOL, 0); + class_addmethod(msgfile_class, (t_method)msgfile_sort, gensym("sort"), + A_SYMBOL, A_SYMBOL, A_SYMBOL, 0); class_addmethod(msgfile_class, (t_method)msgfile_help, gensym("help"), 0); diff --git a/externals/zexy/src/multiline~.c b/externals/zexy/src/multiline~.c index 4b858590f0e6631eb07fac87043a3f09937d45f1..c2f1707268847842452ad83c06fbc964d404d769 100644 --- a/externals/zexy/src/multiline~.c +++ b/externals/zexy/src/multiline~.c @@ -1,4 +1,4 @@ -/* +/* * multiline~: interpolating signal multiplier * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -63,30 +63,41 @@ typedef struct _mline { /* the message thing */ -static void mline_list(t_mline *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void mline_list(t_mline *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { - if (argc>x->sigNUM)x->time=atom_getfloat(argv+argc-1); + if (argc>x->sigNUM) { + x->time=atom_getfloat(argv+argc-1); + } if (x->time <= 0) { if (argc==1) { t_float f = atom_getfloat(argv); int i=x->sigNUM; - while(i--)x->target[i]=x->value[i]=f; + while(i--) { + x->target[i]=x->value[i]=f; + } } else { int offset = (argc<x->sigNUM)?x->sigNUM-argc:0; int i=offset?argc:x->sigNUM; - while(i--)x->target[i+offset]=x->value[i+offset]=atom_getfloat(argv++); + while(i--) { + x->target[i+offset]=x->value[i+offset]=atom_getfloat(argv++); + } } x->ticksleft=x->retarget=x->time=0; } else { if (argc==1) { int i = x->sigNUM; t_float f = atom_getfloat(argv); - for(i=0;i<x->sigNUM;i++)x->target[i]=f; + for(i=0; i<x->sigNUM; i++) { + x->target[i]=f; + } } else { int offset = (argc<x->sigNUM)?x->sigNUM-argc:0; int i=offset?argc:x->sigNUM; - while(i--)x->target[i+offset]=atom_getfloat(argv++); + while(i--) { + x->target[i+offset]=atom_getfloat(argv++); + } } x->retarget = 1; } @@ -95,7 +106,9 @@ static void mline_list(t_mline *x, t_symbol* UNUSED(s), int argc, t_atom *argv) static void mline_stop(t_mline *x) { int i = x->sigNUM; - while (i--) x->target[i] = x->value[i]; + while (i--) { + x->target[i] = x->value[i]; + } x->ticksleft = x->retarget = 0; } @@ -118,7 +131,9 @@ static t_int *mline_perform(t_int *w) if (x->retarget) { int nticks = x->time * x->msec2tick; - if (!nticks) nticks = 1; + if (!nticks) { + nticks = 1; + } x->ticksleft = nticks; x->retarget = 0; @@ -129,8 +144,10 @@ static t_int *mline_perform(t_int *w) t_sample oneovernos = 1./(x->ticksleft*n); int i=sigNUM; - while(i--)*inc++=(*tgt++-*val++)*oneovernos; - + while(i--) { + *inc++=(*tgt++-*val++)*oneovernos; + } + n=-1; while (n++<N) { buf = sigBUF; @@ -138,29 +155,39 @@ static t_int *mline_perform(t_int *w) inc = increment; i = sigNUM; - while (i--)*buf++=in[i][n]*(*val++ += *inc++); + while (i--) { + *buf++=in[i][n]*(*val++ += *inc++); + } i=sigNUM; buf=sigBUF; - while (i--)out[i][n]=*buf++; + while (i--) { + out[i][n]=*buf++; + } } if (!--x->ticksleft) { val = value; tgt = target; i = sigNUM; - while(i--)*val++=*tgt++; + while(i--) { + *val++=*tgt++; + } } - + } else { /* no ticks left */ int i = sigNUM; while (n--) { i = sigNUM; val = value; buf = sigBUF; - while (i--)*buf++=in[i][n]**val++; + while (i--) { + *buf++=in[i][n]**val++; + } i = sigNUM; buf = sigBUF; - while (i--)out[i][n]=*buf++; + while (i--) { + out[i][n]=*buf++; + } } } @@ -173,11 +200,15 @@ static void mline_dsp(t_mline *x, t_signal **sp) { int i = x->sigNUM, n = 0; t_sample **dummy = x->sigIN; - while(i--)*dummy++=sp[n++]->s_vec; + while(i--) { + *dummy++=sp[n++]->s_vec; + } i = x->sigNUM; dummy =x->sigOUT; - while(i--)*dummy++=sp[n++]->s_vec; + while(i--) { + *dummy++=sp[n++]->s_vec; + } x->msec2tick = sp[0]->s_sr / (1000.f * sp[0]->s_n); dsp_add(mline_perform, 2, x, sp[0]->s_n); @@ -208,10 +239,14 @@ static void *mline_new(t_symbol* UNUSED(s), int argc, t_atom *argv) x->time = 0; } else { x->time = atom_getfloat(argv+argc-1); - if (x->time < 0) x->time = 0; + if (x->time < 0) { + x->time = 0; + } argc--; - if (!argc) argc = 1; + if (!argc) { + argc = 1; + } } x->sigNUM = argc; @@ -227,7 +262,7 @@ static void *mline_new(t_symbol* UNUSED(s), int argc, t_atom *argv) inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("")); floatinlet_new(&x->x_obj, &x->time); - + x->sigIN = (t_sample **)getbytes(x->sigNUM * sizeof(t_sample **)); x->sigOUT = (t_sample **)getbytes(x->sigNUM * sizeof(t_sample **)); x->sigBUF = (t_sample *)getbytes(x->sigNUM * sizeof(t_sample *)); @@ -252,20 +287,22 @@ static void *mline_new(t_symbol* UNUSED(s), int argc, t_atom *argv) static void mline_help(t_mline*x) { - post("\n"HEARTSYMBOL" multiline~\t:: ramped multiplication of multiple signals"); + post("\n"HEARTSYMBOL " multiline~\t:: ramped multiplication of multiple signals"); } void multiline_tilde_setup(void) { - mline_class = class_new(gensym("multiline~"), (t_newmethod)mline_new, (t_method)mline_free, - sizeof(t_mline), 0, A_GIMME, 0); + mline_class = class_new(gensym("multiline~"), (t_newmethod)mline_new, + (t_method)mline_free, + sizeof(t_mline), 0, A_GIMME, 0); - class_addmethod(mline_class, (t_method)mline_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(mline_class, (t_method)mline_dsp, gensym("dsp"), 0); class_addmethod(mline_class, nullfn, gensym("signal"), 0); class_addmethod(mline_class, (t_method)mline_list, gensym(""), A_GIMME, 0); class_addmethod(mline_class, (t_method)mline_stop, gensym("stop"), 0); - class_addmethod (mline_class, (t_method)mline_help, gensym("help"), A_NULL); + class_addmethod (mline_class, (t_method)mline_help, gensym("help"), + A_NULL); zexy_register("multiline_tilde"); } diff --git a/externals/zexy/src/multiplex.c b/externals/zexy/src/multiplex.c index 2b05d21ba3c819f91280b39bfb364138e765facd..24faeea8a136b68af3a9c911f0d17f3719d96b35 100644 --- a/externals/zexy/src/multiplex.c +++ b/externals/zexy/src/multiplex.c @@ -1,4 +1,4 @@ -/* +/* * mulitplex : multiplex a specified input to the output * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -46,8 +46,7 @@ static t_class *mux_class; static t_class *muxproxy_class; -typedef struct _mux -{ +typedef struct _mux { t_object x_obj; struct _muxproxy **x_proxy; @@ -57,8 +56,7 @@ typedef struct _mux } t_mux; -typedef struct _muxproxy -{ +typedef struct _muxproxy { t_pd p_pd; t_mux *p_master; int id; @@ -69,11 +67,13 @@ static void mux_select(t_mux *x, t_float f) x->i_selected=f; } -static void mux_anything(t_muxproxy *y, t_symbol *s, int argc, t_atom *argv) +static void mux_anything(t_muxproxy *y, t_symbol *s, int argc, + t_atom *argv) { t_mux*x=y->p_master; - if(y->id==x->i_selected) + if(y->id==x->i_selected) { outlet_anything(x->x_obj.ob_outlet, s, argc, argv); + } } static void *mux_new(t_symbol *s, int argc, t_atom *argv) @@ -99,42 +99,44 @@ static void *mux_new(t_symbol *s, int argc, t_atom *argv) return (x); } -static void mux_free(t_mux*x){ +static void mux_free(t_mux*x) +{ const int count = x->i_count; - if(x->in && x->x_proxy){ + if(x->in && x->x_proxy) { int n=0; - for(n=0; n<count; n++){ - if(x->in[n]){ + for(n=0; n<count; n++) { + if(x->in[n]) { inlet_free(x->in[n]); } x->in[n]=0; - if(x->x_proxy[n]){ + if(x->x_proxy[n]) { t_muxproxy *y=x->x_proxy[n]; y->p_master=0; y->id=0; - pd_free(&y->p_pd); + pd_free(&y->p_pd); } - x->x_proxy[n]=0; + x->x_proxy[n]=0; } freebytes(x->in, x->i_count * sizeof(t_inlet *)); freebytes(x->x_proxy, x->i_count * sizeof(t_muxproxy*)); } - + /* pd_free(&y->p_pd); */ } void multiplex_setup(void) { mux_class = class_new(gensym("multiplex"), (t_newmethod)mux_new, - (t_method)mux_free, sizeof(t_mux), CLASS_NOINLET, A_GIMME, 0); + (t_method)mux_free, sizeof(t_mux), CLASS_NOINLET, A_GIMME, 0); class_addcreator((t_newmethod)mux_new, gensym("mux"), A_GIMME, 0); - - class_addmethod (mux_class, (t_method)mux_select, gensym(""), A_DEFFLOAT, 0); + + class_addmethod (mux_class, (t_method)mux_select, gensym(""), A_DEFFLOAT, + 0); muxproxy_class = class_new(0, 0, 0, - sizeof(t_muxproxy), - CLASS_PD | CLASS_NOINLET, 0); + sizeof(t_muxproxy), + CLASS_PD | CLASS_NOINLET, 0); class_addanything(muxproxy_class, mux_anything); diff --git a/externals/zexy/src/multiplex~.c b/externals/zexy/src/multiplex~.c index 50cbf1c3f54e836ce11943e9916e553935625e76..b3844925f89595261de9ebaea4b31cdf57d12523 100644 --- a/externals/zexy/src/multiplex~.c +++ b/externals/zexy/src/multiplex~.c @@ -1,5 +1,5 @@ -/* - * mux~ : multiplex a specified signal to the output +/* + * mux~ : multiplex a specified signal to the output * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) * @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -32,10 +32,11 @@ typedef struct _mux { static void mux_tilde_input(t_mux *x, t_floatarg f) { - if ((f>=0)&&(f<x->n_in)){ + if ((f>=0)&&(f<x->n_in)) { x->input=f; - } else + } else { error("multiplex~: %d is channel out of range (0..%d)", (int)f, x->n_in); + } } @@ -44,10 +45,12 @@ static t_int *mux_tilde_perform(t_int *w) t_mux *x = (t_mux *)(w[1]); t_sample *out = (t_sample *)(w[2]); int n = (int)(w[3]); - + t_sample *in = x->in[x->input]; - while(n--)*out++=*in++; + while(n--) { + *out++=*in++; + } return (w+4); } @@ -57,14 +60,16 @@ static void mux_tilde_dsp(t_mux *x, t_signal **sp) int n = 0; t_sample **dummy=x->in; - for(n=0;n<x->n_in;n++)*dummy++=sp[n]->s_vec; + for(n=0; n<x->n_in; n++) { + *dummy++=sp[n]->s_vec; + } dsp_add(mux_tilde_perform, 3, x, sp[n]->s_vec, sp[0]->s_n); } static void mux_tilde_helper(void) { - post("\n"HEARTSYMBOL" multiplex~\t:: multiplex a one of various signals to one outlet"); + post("\n"HEARTSYMBOL " multiplex~\t:: multiplex a one of various signals to one outlet"); post("<#out>\t : the inlet-number (counting from 0) witch is routed to the outlet" "'help'\t : view this"); post("creation : \"mux~ [arg1 [arg2...]]\"\t: the number of arguments equals the number of inlets\n"); @@ -75,20 +80,27 @@ static void mux_tilde_free(t_mux *x) freebytes(x->in, x->n_in * sizeof(t_sample *)); } -static void *mux_tilde_new(t_symbol* UNUSED(s), int argc, t_atom* UNUSED(argv)) +static void *mux_tilde_new(t_symbol* UNUSED(s), int argc, + t_atom* UNUSED(argv)) { t_mux *x = (t_mux *)pd_new(mux_tilde_class); int i; - if (!argc)argc=2; + if (!argc) { + argc=2; + } x->n_in=argc; x->input=0; argc--; - while(argc--)inlet_new(&x->x_obj,&x->x_obj.ob_pd,gensym("signal"),gensym("signal")); + while(argc--) { + inlet_new(&x->x_obj,&x->x_obj.ob_pd,gensym("signal"),gensym("signal")); + } x->in = (t_sample **)getbytes(x->n_in * sizeof(t_sample *)); i=x->n_in; - while(i--)x->in[i]=0; + while(i--) { + x->in[i]=0; + } outlet_new(&x->x_obj, gensym("signal")); @@ -97,14 +109,18 @@ static void *mux_tilde_new(t_symbol* UNUSED(s), int argc, t_atom* UNUSED(argv)) void multiplex_tilde_setup(void) { - mux_tilde_class = class_new(gensym("multiplex~"), (t_newmethod)mux_tilde_new, (t_method)mux_tilde_free, sizeof(t_mux), 0, A_GIMME, 0); + mux_tilde_class = class_new(gensym("multiplex~"), + (t_newmethod)mux_tilde_new, (t_method)mux_tilde_free, sizeof(t_mux), 0, + A_GIMME, 0); class_addcreator((t_newmethod)mux_tilde_new, gensym("mux~"), A_GIMME, 0); class_addfloat(mux_tilde_class, mux_tilde_input); - class_addmethod(mux_tilde_class, (t_method)mux_tilde_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(mux_tilde_class, (t_method)mux_tilde_dsp, gensym("dsp"), + 0); class_addmethod(mux_tilde_class, nullfn, gensym("signal"), 0); - class_addmethod(mux_tilde_class, (t_method)mux_tilde_helper, gensym("help"), 0); + class_addmethod(mux_tilde_class, (t_method)mux_tilde_helper, + gensym("help"), 0); zexy_register("multiplex~"); } void mux_tilde_setup(void) diff --git a/externals/zexy/src/multireceive.c b/externals/zexy/src/multireceive.c index cfb65fdf84a7c5c299c0c137b7195ba44bb5e59d..77c4707908955b2db098e55417ea7a0ad68d8f9e 100644 --- a/externals/zexy/src/multireceive.c +++ b/externals/zexy/src/multireceive.c @@ -1,4 +1,4 @@ -/* +/* * multireceive: receive messages for various receive-names * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -26,40 +26,39 @@ static t_class *multireceive_class=NULL; static t_class *multireceive_proxy_class=NULL; -typedef struct _symlist -{ +typedef struct _symlist { t_symbol*s; struct _symlist*next; } t_symlist; -typedef struct _multireceive_proxy -{ +typedef struct _multireceive_proxy { t_object x_obj; struct _multireceive*x_parent; } t_multireceive_proxy; -typedef struct _multireceive -{ +typedef struct _multireceive { t_object x_obj; t_multireceive_proxy*x_proxy; t_symlist*x_symlist; t_outlet *x_out; } t_multireceive; -static void multireceive_any(t_multireceive_proxy *x, t_symbol*s, int argc, t_atom*argv) +static void multireceive_any(t_multireceive_proxy *x, t_symbol*s, int argc, + t_atom*argv) { outlet_anything(x->x_parent->x_out, s, argc, argv); } -static void multireceive_add(t_multireceive *x, t_symbol*s) { +static void multireceive_add(t_multireceive *x, t_symbol*s) +{ t_symlist*sl=x->x_symlist; t_symlist*element=NULL; if(sl) { while(sl->next) { if(s==sl->s) { - // already bound to this symbol - return; + // already bound to this symbol + return; } sl=sl->next; } @@ -69,7 +68,7 @@ static void multireceive_add(t_multireceive *x, t_symbol*s) { element->s=s; element->next=NULL; pd_bind(&x->x_proxy->x_obj.ob_pd, s); - + if(sl) { sl->next=element; } else { @@ -77,7 +76,8 @@ static void multireceive_add(t_multireceive *x, t_symbol*s) { } } -static void multireceive_clear(t_multireceive *x) { +static void multireceive_clear(t_multireceive *x) +{ t_symlist*sl=x->x_symlist; t_symlist*current=NULL; while(sl) { @@ -94,10 +94,11 @@ static void multireceive_clear(t_multireceive *x) { } -static void multireceive_set(t_multireceive *x, t_symbol*s, int argc, t_atom*argv) +static void multireceive_set(t_multireceive *x, t_symbol*s, int argc, + t_atom*argv) { multireceive_clear(x); - + while(argc-->0) { t_symbol*s=atom_getsymbol(argv); if(A_SYMBOL==argv->a_type) { @@ -120,40 +121,41 @@ static void multireceive_free(t_multireceive *x) static void *multireceive_new(t_symbol *s, int argc, t_atom *argv) { - t_multireceive *x = (t_multireceive *)pd_new(multireceive_class); - x->x_proxy=(t_multireceive_proxy*)pd_new(multireceive_proxy_class); - x->x_proxy->x_parent=x; - x->x_symlist=NULL; - x->x_out = outlet_new(&x->x_obj, 0); - - multireceive_set(x, 0, argc, argv); - return (x); + t_multireceive *x = (t_multireceive *)pd_new(multireceive_class); + x->x_proxy=(t_multireceive_proxy*)pd_new(multireceive_proxy_class); + x->x_proxy->x_parent=x; + x->x_symlist=NULL; + x->x_out = outlet_new(&x->x_obj, 0); + + multireceive_set(x, 0, argc, argv); + return (x); } void multireceive_setup(void) { - multireceive_class = class_new(gensym("multireceive"), - (t_newmethod)multireceive_new, - (t_method)multireceive_free, - sizeof(t_multireceive), - 0, - A_GIMME, 0); - class_addmethod(multireceive_class, - (t_method)multireceive_set, - gensym("set"), - A_GIMME, 0); - - class_addmethod(multireceive_class, - (t_method)multireceive_add, - gensym("add"), - A_SYMBOL, 0); - - multireceive_proxy_class = class_new(gensym("multireceive proxy "__DATE__""__TIME__""), - 0, 0, - sizeof(t_multireceive_proxy), - CLASS_PD | CLASS_NOINLET, 0); - - class_addanything(multireceive_proxy_class, multireceive_any); - - zexy_register("multireceive"); + multireceive_class = class_new(gensym("multireceive"), + (t_newmethod)multireceive_new, + (t_method)multireceive_free, + sizeof(t_multireceive), + 0, + A_GIMME, 0); + class_addmethod(multireceive_class, + (t_method)multireceive_set, + gensym("set"), + A_GIMME, 0); + + class_addmethod(multireceive_class, + (t_method)multireceive_add, + gensym("add"), + A_SYMBOL, 0); + + multireceive_proxy_class = class_new( + gensym("multireceive proxy "__DATE__""__TIME__""), + 0, 0, + sizeof(t_multireceive_proxy), + CLASS_PD | CLASS_NOINLET, 0); + + class_addanything(multireceive_proxy_class, multireceive_any); + + zexy_register("multireceive"); } diff --git a/externals/zexy/src/niagara.c b/externals/zexy/src/niagara.c index ae2c9bb81ff74f5eab1b6bf91cac0a01ceb18b7c..ccedb420b20408b668edf30d82cb1eddd21ad19c 100644 --- a/externals/zexy/src/niagara.c +++ b/externals/zexy/src/niagara.c @@ -1,4 +1,4 @@ -/* +/* * niagara: split a list into 2 (use [list split] instead) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -30,8 +30,7 @@ static t_class *niagara_class; -typedef struct _niagara -{ +typedef struct _niagara { t_object x_obj; t_float rock; t_outlet *left, *right; @@ -50,8 +49,12 @@ static void niagara_list(t_niagara *x, t_symbol *s, int argc, t_atom *argv) n_r = argc - n_l; ap_r = &argv[n_l]; - if (n_r) outlet_list(x->right, s, n_r, ap_r); - if (n_l) outlet_list(x->left, s, n_l, ap_l); + if (n_r) { + outlet_list(x->right, s, n_r, ap_r); + } + if (n_l) { + outlet_list(x->left, s, n_l, ap_l); + } } static void niagara_any(t_niagara *x, t_symbol *s, int argc, t_atom *argv) @@ -71,8 +74,9 @@ static void niagara_any(t_niagara *x, t_symbol *s, int argc, t_atom *argv) if (n_r) { s_r = 0; - if (ap_r->a_type == A_FLOAT) s_r = gensym("list"); - else { + if (ap_r->a_type == A_FLOAT) { + s_r = gensym("list"); + } else { s_r = atom_getsymbol(ap_r); ap_r++; n_r--; @@ -80,7 +84,9 @@ static void niagara_any(t_niagara *x, t_symbol *s, int argc, t_atom *argv) outlet_anything(x->right, s_r, n_r, ap_r); } - if (n_l+1 ) outlet_anything(x->left, s_l, n_l, ap_l); + if (n_l+1 ) { + outlet_anything(x->left, s_l, n_l, ap_l); + } } static void *niagara_new(t_floatarg f) @@ -99,9 +105,9 @@ static void *niagara_new(t_floatarg f) void niagara_setup(void) { - niagara_class = class_new(gensym("niagara"), (t_newmethod)niagara_new, - 0, sizeof(t_niagara), 0, A_DEFFLOAT, 0); - + niagara_class = class_new(gensym("niagara"), (t_newmethod)niagara_new, + 0, sizeof(t_niagara), 0, A_DEFFLOAT, 0); + class_addlist (niagara_class, niagara_list); class_addanything(niagara_class, niagara_any); diff --git a/externals/zexy/src/noish~.c b/externals/zexy/src/noish~.c index 1deef4d1a1731364c21393ff3b6ad63bb54fbf3b..feae156c76912f293b205e71cb8cb580ab0aa4e8 100644 --- a/externals/zexy/src/noish~.c +++ b/externals/zexy/src/noish~.c @@ -1,4 +1,4 @@ -/* +/* * noish~: bandlimited noise generator * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -21,11 +21,11 @@ /* 30041999 - two bandlimited noise gnerators based on DODGE/JERSE "computer music" c3.9 : RANDI & RANDH - + two bandlimited noise gnerators based on DODGE/JERSE "computer music" c3.9 : RANDI & RANDH + I do not care for copyrights - (all in all, the used noise~-code (in fact, the pseude-random-code) is from Miller Puckette - and I made only very few modifications so look out for the LICENSE.TXT delivered with + (all in all, the used noise~-code (in fact, the pseude-random-code) is from Miller Puckette + and I made only very few modifications so look out for the LICENSE.TXT delivered with puredata for further (c)-information forum für umläute 1999 @@ -41,13 +41,12 @@ /* general */ -typedef struct _nois -{ +typedef struct _nois { t_object x_obj; int val; t_sample current; t_sample decrement; - t_sample updater; + t_sample updater; t_sample to_go; } t_nois; @@ -55,10 +54,9 @@ typedef struct _nois static void set_freq(t_nois *x, t_floatarg freq) { x->updater = (freq > 0) ? sys_getsr() / freq : 1; - if (x->updater < 1) - { - x->updater = 1; - } + if (x->updater < 1) { + x->updater = 1; + } x->to_go = 0; } @@ -68,7 +66,7 @@ static void set_noisseed(t_nois *x, t_floatarg seed) x->val = seed; } -/* ------------------------ noish~ ----------------------------- */ +/* ------------------------ noish~ ----------------------------- */ static t_class *noish_class; @@ -77,69 +75,61 @@ static t_int *noish_perform(t_int *w) t_nois *x = (t_nois *)(w[1]); t_sample *out = (t_sample *)(w[2]); int n = (int)(w[3]); - + int *vp = (int *)(&x->val); int i_value = *vp; t_sample f_value = ((t_sample)((i_value & 0x7fffffff) - 0x40000000)) * - (t_sample)(1.0 / 0x40000000); + (t_sample)(1.0 / 0x40000000); t_sample all_to_go = x->updater; t_sample still_to_go = x->to_go; - if (all_to_go == 1) - { /* this is "pure white" noise, so we have to calculate each sample */ - while (n--) - { - i_value *= 435898247; - i_value += 382842987; - *out++ = ((t_sample)((i_value & 0x7fffffff) - 0x40000000)) * (t_sample)(1.0 / 0x40000000); - } + if (all_to_go == 1) { + /* this is "pure white" noise, so we have to calculate each sample */ + while (n--) { + i_value *= 435898247; + i_value += 382842987; + *out++ = ((t_sample)((i_value & 0x7fffffff) - 0x40000000)) * (t_sample)( + 1.0 / 0x40000000); + } + } else if (n < still_to_go) { + /* signal won't change for the next 64 samples */ + still_to_go -= n; + while (n--) { + *out++ = f_value; + } + } else if (all_to_go + still_to_go > n) { + /* only one update calculation necessary for 64 samples !!! */ + while (still_to_go-- > 0) { + n--; + *out++ = f_value; + } + + still_to_go += all_to_go + 1; + + i_value *= 435898247; + i_value += 382842987; + f_value = ( (t_sample)((i_value & 0x7fffffff) - 0x40000000) ) * (t_sample)( + 1.0 / 0x40000000); + + while (n--) { + still_to_go--; + *out++ = f_value; } - else - if (n < still_to_go) - { /* signal won't change for the next 64 samples */ - still_to_go -= n; - while (n--) - { - *out++ = f_value; - } + } else { + /* anything else */ + while (n--) { + if (still_to_go-- <= 0) { /* update only if all time has elapsed */ + still_to_go += all_to_go; + + i_value *= 435898247; + i_value += 382842987; + + f_value = ( (t_sample)((i_value & 0x7fffffff) - 0x40000000) ) * (t_sample)( + 1.0 / 0x40000000); } - else - if (all_to_go + still_to_go > n) - { /* only one update calculation necessary for 64 samples !!! */ - while (still_to_go-- > 0) - { - n--; - *out++ = f_value; - } - - still_to_go += all_to_go + 1; - - i_value *= 435898247; - i_value += 382842987; - f_value = ( (t_sample)((i_value & 0x7fffffff) - 0x40000000) ) * (t_sample)(1.0 / 0x40000000); - - while (n--) - { - still_to_go--; - *out++ = f_value; - } - } - else - { /* anything else */ - while (n--) - { - if (still_to_go-- <= 0) /* update only if all time has elapsed */ - { - still_to_go += all_to_go; - - i_value *= 435898247; - i_value += 382842987; - - f_value = ( (t_sample)((i_value & 0x7fffffff) - 0x40000000) ) * (t_sample)(1.0 / 0x40000000); - } - *out++ = f_value; - } - } + *out++ = f_value; + } + } *vp = i_value; @@ -156,7 +146,7 @@ static void noish_dsp(t_nois *x, t_signal **sp) static void noish_helper(void) { - post("\n"HEARTSYMBOL" noish~\t:: a bandlimited pseudo-noise generator"); + post("\n"HEARTSYMBOL " noish~\t:: a bandlimited pseudo-noise generator"); post("<freq>\t : sampling-frequency (in Hz)\n" "'help'\t : view this"); post("creation : \"noish~ [<freq>]\"\t: ('0'(default) will produce 'white' noise)\n"); @@ -182,12 +172,14 @@ static void *noish_new(t_floatarg f) void noish_tilde_setup(void) { - noish_class = class_new(gensym("noish~"), (t_newmethod)noish_new, 0, sizeof(t_nois), 0, A_DEFFLOAT, 0); + noish_class = class_new(gensym("noish~"), (t_newmethod)noish_new, 0, + sizeof(t_nois), 0, A_DEFFLOAT, 0); class_addfloat(noish_class, set_freq); - class_addmethod(noish_class, (t_method)noish_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(noish_class, (t_method)noish_dsp, gensym("dsp"), 0); - class_addmethod(noish_class, (t_method)set_noisseed, gensym("seed"), A_FLOAT, 0); + class_addmethod(noish_class, (t_method)set_noisseed, gensym("seed"), + A_FLOAT, 0); class_addmethod(noish_class, (t_method)noish_helper, gensym("help"), 0); zexy_register("noish~"); diff --git a/externals/zexy/src/noisi-test.pd b/externals/zexy/src/noisi-test.pd new file mode 100644 index 0000000000000000000000000000000000000000..db5c81e9cb582279e0d334ab808eb53e30bae3ce --- /dev/null +++ b/externals/zexy/src/noisi-test.pd @@ -0,0 +1,9 @@ +#N canvas 1 51 450 300 10; +#X obj 188 201 dac~; +#X obj 200 111 noisi~ 200; +#X obj 200 133 hip~ 5; +#X obj 200 155 *~ 5; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 3 0 0 0; +#X connect 3 0 0 1; diff --git a/externals/zexy/src/noisi~.c b/externals/zexy/src/noisi~.c index d775682beade2b6a38c9a010dd67b33d076318bf..8158c59f12fd46fbb0e9d42ed023e81a7963e0e4 100644 --- a/externals/zexy/src/noisi~.c +++ b/externals/zexy/src/noisi~.c @@ -1,4 +1,4 @@ -/* +/* * noisi~: bandlimited noise generator * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -20,11 +20,11 @@ /* 30041999 - two bandlimited noise gnerators based on DODGE/JERSE "computer music" c3.9 : RANDI & RANDH - + two bandlimited noise gnerators based on DODGE/JERSE "computer music" c3.9 : RANDI & RANDH + I do not care for copyrights - (all in all, the used noise~-code (in fact, the pseude-random-code) is from Miller Puckette - and I made only very few modifications so look out for the LICENSE.TXT delivered with + (all in all, the used noise~-code (in fact, the pseude-random-code) is from Miller Puckette + and I made only very few modifications so look out for the LICENSE.TXT delivered with puredata for further (c)-information forum für umläute 1999 @@ -40,13 +40,12 @@ /* general */ -typedef struct _nois -{ +typedef struct _nois { t_object x_obj; int val; t_sample current; t_sample decrement; - t_sample updater; + t_sample updater; t_sample to_go; } t_nois; @@ -54,10 +53,9 @@ typedef struct _nois static void set_noisfreq(t_nois *x, t_floatarg freq) { x->updater = (freq > 0) ? sys_getsr() / freq : 1; - if (x->updater < 1) - { - x->updater = 1; - } + if (x->updater < 1) { + x->updater = 1; + } x->to_go = 0; } @@ -69,11 +67,24 @@ static void set_noisseed(t_nois *x, t_floatarg seed) -/* ------------------------ noisi~ ----------------------------- */ +/* ------------------------ noisi~ ----------------------------- */ static t_class *noisi_class; -static t_int *noisi_perform(t_int *w){ +static inline t_sample int2sample(int i) +{ + return ((t_sample)(i & 0x7fffffff) - 0x40000000) * (t_sample)( + 1.0 / 0x40000000); +} +static inline int update_intNoise(int i) +{ + i *= 435898247; + i += 382842987; + return i; +} + +static t_int *noisi_perform(t_int *w) +{ t_nois *x = (t_nois *)(w[1]); t_sample *out = (t_sample *)(w[2]); int n = (int)(w[3]); @@ -85,45 +96,39 @@ static t_int *noisi_perform(t_int *w){ t_sample still_to_go = x->to_go; if (all_to_go == 1) { - /* this is "pure white" noise, so we have to calculate each sample */ + /* this is "pure white" noise, so we have to calculate each sample */ while (n--) { - i_value *= 435898247; - i_value += 382842987; - *out++ = ((t_sample)((i_value & 0x7fffffff) - 0x40000000)) * (t_sample)(1.0 / 0x40000000); + *out++ = int2sample(i_value=update_intNoise(i_value)); } } else if (n < still_to_go) { - /* signal won't change for the next 64 samples */ + /* signal won't change for the next 64 samples */ still_to_go -= n; - while (n--){ + while (n--) { *out++ = (f_value -= decrement); } } else if (all_to_go + still_to_go > n) { - /* only one update calculation necessary for 64 samples !!! */ + /* only one update calculation necessary for 64 samples !!! */ while (still_to_go-- > 0) { n--; *out++ = (f_value -= decrement); } + f_value = int2sample(i_value); + i_value = update_intNoise(i_value); still_to_go += all_to_go + 1; - decrement = ( - (f_value = - ((t_sample)((i_value & 0x7fffffff)-0x40000000))*(t_sample)(1.0 / 0x40000000)) - - ((t_sample)(((i_value = i_value * 435898247 + 382842987) & 0x7fffffff) - - 0x40000000)) * (t_sample)(1.0 / 0x40000000) - ) / all_to_go; + decrement = (f_value - int2sample(i_value)) / all_to_go; while (n--) { still_to_go--; *out++ = (f_value -= decrement); } } else { - /* anything else */ + /* anything else */ while (n--) { - if (still_to_go-- <= 0) { /* update only if all time has elapsed */ - still_to_go += all_to_go; - decrement = ( - (f_value = ((t_sample)((i_value & 0x7fffffff) - 0x40000000)) * (t_sample)(1.0 / 0x40000000)) - - ((t_sample)(((i_value = i_value * 435898247 + 382842987) & 0x7fffffff) - 0x40000000)) * (t_sample)(1.0 / 0x40000000) - ) / all_to_go; + if (still_to_go-- <= 0) { /* update only if all time has elapsed */ + still_to_go += all_to_go; + f_value=int2sample(i_value); + i_value=update_intNoise(i_value); + decrement = (f_value - int2sample(i_value)) / all_to_go; } *out++ = (f_value -= decrement); } @@ -133,17 +138,19 @@ static t_int *noisi_perform(t_int *w){ x->current = f_value; x->decrement = decrement; x->to_go = still_to_go; - + return (w+4); } -static void noisi_dsp(t_nois *x, t_signal **sp){ +static void noisi_dsp(t_nois *x, t_signal **sp) +{ dsp_add(noisi_perform, 3, x, sp[0]->s_vec, sp[0]->s_n); } -static void noisi_helper(void){ - post("\n"HEARTSYMBOL" noisi~\t:: a bandlimited interpolating pseudo-noise generator"); +static void noisi_helper(void) +{ + post("\n"HEARTSYMBOL " noisi~\t:: a bandlimited interpolating pseudo-noise generator"); post("<freq>\t : sampling-frequency (in Hz)\n" "'help'\t : view this"); post("creation : \"noisi~ [<freq>]\"\t: ('0'(default) will produce 'white' noise)\n"); @@ -154,9 +161,10 @@ static void noisi_helper(void){ post("for further details see DODGE/JERSE \"computer music\" c3.9\n"); } -static void *noisi_new(t_floatarg f){ +static void *noisi_new(t_floatarg f) +{ t_nois *x = (t_nois *)pd_new(noisi_class); - + static int init = 4259; x->val = (init *= 17); @@ -166,13 +174,16 @@ static void *noisi_new(t_floatarg f){ return (x); } -void noisi_tilde_setup(void){ - noisi_class = class_new(gensym("noisi~"), (t_newmethod)noisi_new, 0, sizeof(t_nois), 0, A_DEFFLOAT, 0); +void noisi_tilde_setup(void) +{ + noisi_class = class_new(gensym("noisi~"), (t_newmethod)noisi_new, 0, + sizeof(t_nois), 0, A_DEFFLOAT, 0); class_addfloat(noisi_class, set_noisfreq); - class_addmethod(noisi_class, (t_method)noisi_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(noisi_class, (t_method)noisi_dsp, gensym("dsp"), 0); - class_addmethod(noisi_class, (t_method)set_noisseed, gensym("seed"), A_FLOAT, 0); + class_addmethod(noisi_class, (t_method)set_noisseed, gensym("seed"), + A_FLOAT, 0); class_addmethod(noisi_class, (t_method)noisi_helper, gensym("help"), 0); zexy_register("noisi~"); diff --git a/externals/zexy/src/operating_system.c b/externals/zexy/src/operating_system.c index a02b406b99e9ec6a584050af16b5165c9ccdd337..cd25f90be7694bc60dff594bbce7637f9be13d33 100644 --- a/externals/zexy/src/operating_system.c +++ b/externals/zexy/src/operating_system.c @@ -1,4 +1,4 @@ -/* +/* * operating_system : get currently used OS * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -27,8 +27,7 @@ MESSAGE OPERATING_SYSTEM: simple and easy static t_class *operating_system_class; -typedef struct _operating_system -{ +typedef struct _operating_system { t_object x_obj; } t_operating_system; @@ -50,22 +49,25 @@ static void operating_system_bang(t_operating_system *x) static void *operating_system_new(void) { - t_operating_system *x = (t_operating_system *)pd_new(operating_system_class); + t_operating_system *x = (t_operating_system *)pd_new( + operating_system_class); outlet_new(&x->x_obj, 0); return (x); } static void operating_system_help(t_operating_system*x) { - post("\n"HEARTSYMBOL" operating_system\t:: get the current operating system"); + post("\n"HEARTSYMBOL " operating_system\t:: get the current operating system"); } void operating_system_setup(void) { - operating_system_class = class_new(gensym("operating_system"), (t_newmethod)operating_system_new, + operating_system_class = class_new(gensym("operating_system"), + (t_newmethod)operating_system_new, 0, sizeof(t_operating_system), 0, A_NULL); - + class_addbang (operating_system_class, operating_system_bang); - class_addmethod(operating_system_class, (t_method)operating_system_help, gensym("help"), A_NULL); + class_addmethod(operating_system_class, (t_method)operating_system_help, + gensym("help"), A_NULL); zexy_register("operating_system"); } diff --git a/externals/zexy/src/pack.c b/externals/zexy/src/pack.c index 9e924e395840674367cfe983de2934ec2db359c2..b07f6a82a8f83abf7468b032142d773e71c2323c 100644 --- a/externals/zexy/src/pack.c +++ b/externals/zexy/src/pack.c @@ -1,4 +1,4 @@ -/* +/* * pack: a type-agnostic version of [pack] * * (c) 2007-2011 forum::für::umläute @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -33,8 +33,7 @@ static t_class *zpack_class; static t_class *zpackproxy_class; -typedef struct _zpack -{ +typedef struct _zpack { t_object x_obj; struct _zpackproxy **x_proxy; @@ -45,25 +44,27 @@ typedef struct _zpack } t_zpack; -typedef struct _zpackproxy -{ +typedef struct _zpackproxy { t_pd p_pd; t_zpack *p_master; int id; } t_zpackproxy; -static void setatom(t_zpack *x, t_atom*from, int to) { +static void setatom(t_zpack *x, t_atom*from, int to) +{ x->x_argv[to].a_type=from->a_type; x->x_argv[to].a_w =from->a_w; } -static void zpack_bang(t_zpack*x) { +static void zpack_bang(t_zpack*x) +{ outlet_list(x->x_obj.ob_outlet, gensym("list"), x->x_argc, x->x_argv); } -static void zpack_any(t_zpack*x, t_symbol *s, int argc, t_atom *argv) { +static void zpack_any(t_zpack*x, t_symbol *s, int argc, t_atom *argv) +{ int i=0; int count=x->x_argc; @@ -74,32 +75,37 @@ static void zpack_any(t_zpack*x, t_symbol *s, int argc, t_atom *argv) { count--; } - if(count>argc) + if(count>argc) { count=argc; + } while(count-->0) { setatom(x, argv++, i++); } - - zpack_bang(x); + + zpack_bang(x); } -static void zpack_list(t_zpack*x, t_symbol *s, int argc, t_atom *argv) { +static void zpack_list(t_zpack*x, t_symbol *s, int argc, t_atom *argv) +{ zpack_any(x, 0, argc, argv); } -static void zpack_proxy_list(t_zpackproxy *y, t_symbol *s, int argc, t_atom *argv) +static void zpack_proxy_list(t_zpackproxy *y, t_symbol *s, int argc, + t_atom *argv) { /* until we have lists of lists, this only uses the 1st element */ - if(argc>0) /* this filters out 'bang', and allows 'list', 'float' and 'symbol' */ + if(argc>0) { /* this filters out 'bang', and allows 'list', 'float' and 'symbol' */ setatom(y->p_master, argv, y->id); + } } -static void zpack_proxy_any(t_zpackproxy *y, t_symbol *s, int argc, t_atom *argv) +static void zpack_proxy_any(t_zpackproxy *y, t_symbol *s, int argc, + t_atom *argv) { /* until we have lists of lists, this only uses the selector */ t_atom a; - SETSYMBOL(&a, s); + SETSYMBOL(&a, s); setatom(y->p_master, &a, y->id); } @@ -118,8 +124,9 @@ static void *zpack_new(t_symbol *s, int argc, t_atom *argv) } else { int i=0; x->x_argv=(t_atom*)getbytes(x->x_argc*sizeof(t_atom)); - for(i=0; i<x->x_argc; i++) + for(i=0; i<x->x_argc; i++) { setatom(x, argv+i, i); + } } x->in = (t_inlet **)getbytes(x->x_argc * sizeof(t_inlet *)); @@ -139,23 +146,24 @@ static void *zpack_new(t_symbol *s, int argc, t_atom *argv) return (x); } -static void zpack_free(t_zpack*x){ +static void zpack_free(t_zpack*x) +{ const int count = x->x_argc; - if(x->in && x->x_proxy){ + if(x->in && x->x_proxy) { int n=0; - for(n=0; n<count; n++){ - if(x->in[n]){ + for(n=0; n<count; n++) { + if(x->in[n]) { inlet_free(x->in[n]); } x->in[n]=0; - if(x->x_proxy[n]){ + if(x->x_proxy[n]) { t_zpackproxy *y=x->x_proxy[n]; y->p_master=0; y->id=0; - pd_free(&y->p_pd); + pd_free(&y->p_pd); } - x->x_proxy[n]=0; + x->x_proxy[n]=0; } freebytes(x->in, x->x_argc * sizeof(t_inlet *)); freebytes(x->x_proxy, x->x_argc * sizeof(t_zpackproxy*)); @@ -165,7 +173,7 @@ static void zpack_free(t_zpack*x){ void zpack_setup(void) { zpack_class = class_new(gensym("zexy/pack"), (t_newmethod)zpack_new, - (t_method)zpack_free, sizeof(t_zpack), 0, A_GIMME, 0); + (t_method)zpack_free, sizeof(t_zpack), 0, A_GIMME, 0); #if 0 /* oops Pd>=0.42 allows us to override built-ins * this is bad as long as the 2 objects are not compatible */ @@ -176,8 +184,8 @@ void zpack_setup(void) class_addanything(zpack_class, zpack_any); zpackproxy_class = class_new(gensym("zpack proxy"), 0, 0, - sizeof(t_zpackproxy), - CLASS_PD | CLASS_NOINLET, 0); + sizeof(t_zpackproxy), + CLASS_PD | CLASS_NOINLET, 0); class_addlist(zpackproxy_class, zpack_proxy_list); class_addanything(zpackproxy_class, zpack_proxy_any); diff --git a/externals/zexy/src/packel.c b/externals/zexy/src/packel.c index c1fb15b5f86c05cce5cacf095ff2d6381b1063d3..5329908539571bb5caab623d9a36fa71af658645 100644 --- a/externals/zexy/src/packel.c +++ b/externals/zexy/src/packel.c @@ -1,4 +1,4 @@ -/* +/* * packel: get the nth element of a package * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -21,8 +21,7 @@ static t_class *packel_class; -typedef struct _packel -{ +typedef struct _packel { t_object x_obj; t_float *position; int count; @@ -34,21 +33,26 @@ typedef struct _packel } t_packel; -static void packel_outelement(t_packel*x, int id, t_symbol*s,int argc, t_atom*argv) +static void packel_outelement(t_packel*x, int id, t_symbol*s,int argc, + t_atom*argv) { t_outlet*out=x->x_outlet[id]; int index= x->position[id]; - + if (index) { t_atom *current; int pos = (index < 0)?(argc+index):(index-1); - if(argc==0){ - if (pos==0||pos==-1)outlet_bang(out); + if(argc==0) { + if (pos==0||pos==-1) { + outlet_bang(out); + } + return; + } + + if (pos < 0 || pos >= argc) { return; } - - if (pos < 0 || pos >= argc)return; current = &(argv[pos]); @@ -58,7 +62,9 @@ static void packel_outelement(t_packel*x, int id, t_symbol*s,int argc, t_atom*ar default: outlet_list(out, gensym("list"), 1, current); } - } else outlet_list(out, s, argc, argv); + } else { + outlet_list(out, s, argc, argv); + } } static void packel_list(t_packel *x, t_symbol *s, int argc, t_atom *argv) @@ -69,18 +75,21 @@ static void packel_list(t_packel *x, t_symbol *s, int argc, t_atom *argv) } } -static void packel_anything(t_packel *x, t_symbol *s, int argc, t_atom *argv) +static void packel_anything(t_packel *x, t_symbol *s, int argc, + t_atom *argv) { t_atom *av2 = (t_atom *)getbytes((argc + 1) * sizeof(t_atom)); int i; - if(x->x_warningflag){ - pd_error(x, "deprecation warning: you should only use lists for list data"); + if(x->x_warningflag) { + pd_error(x, + "deprecation warning: you should only use lists for list data"); x->x_warningflag=0; } - for (i = 0; i < argc; i++) + for (i = 0; i < argc; i++) { av2[i + 1] = argv[i]; + } SETSYMBOL(av2, s); packel_list(x, gensym("list"), argc+1, av2); freebytes(av2, (argc + 1) * sizeof(t_atom)); @@ -92,13 +101,23 @@ static void packel_free(t_packel *x) int i=0; for(i=0; i<x->count; i++) { - if(x->x_inlet &&x->x_inlet [i])inlet_free (x->x_inlet [i]); - if(x->x_outlet&&x->x_outlet[i])outlet_free(x->x_outlet[i]); + if(x->x_inlet &&x->x_inlet [i]) { + inlet_free (x->x_inlet [i]); + } + if(x->x_outlet&&x->x_outlet[i]) { + outlet_free(x->x_outlet[i]); + } } - if(x->position)freebytes(x->position, x->count*sizeof(t_float)); - if(x->x_inlet) freebytes(x->x_inlet, x->count*sizeof(t_inlet*)); - if(x->x_outlet)freebytes(x->x_outlet, x->count*sizeof(t_outlet*)); + if(x->position) { + freebytes(x->position, x->count*sizeof(t_float)); + } + if(x->x_inlet) { + freebytes(x->x_inlet, x->count*sizeof(t_inlet*)); + } + if(x->x_outlet) { + freebytes(x->x_outlet, x->count*sizeof(t_outlet*)); + } } @@ -106,7 +125,7 @@ static void packel_free(t_packel *x) static void *packel_new(t_symbol*s, int argc, t_atom*argv) { t_packel *x = (t_packel *)pd_new(packel_class); - + x->count=(argc>0)?argc:1; x->position=(t_float*)getbytes(x->count*sizeof(t_float)); @@ -133,8 +152,8 @@ static void *packel_new(t_symbol*s, int argc, t_atom*argv) void packel_setup(void) { - packel_class = class_new(gensym("packel"), - (t_newmethod)packel_new, (t_method)packel_free, + packel_class = class_new(gensym("packel"), + (t_newmethod)packel_new, (t_method)packel_free, sizeof(t_packel), 0, A_GIMME, 0); diff --git a/externals/zexy/src/pack~.c b/externals/zexy/src/pack~.c index 3ad5743f109e6fd26176ff8fc7bc6eff7908a813..5ec608579f9fe76c1db8ae3ab198f7b40c75591e 100644 --- a/externals/zexy/src/pack~.c +++ b/externals/zexy/src/pack~.c @@ -1,4 +1,4 @@ -/* +/* * pack~: pack the signal-vector to a list of floats * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -21,8 +21,7 @@ static t_class *sigpack_class; -typedef struct _sigpack -{ +typedef struct _sigpack { t_object x_obj; int vector_length; @@ -33,7 +32,8 @@ typedef struct _sigpack static void sigpack_tick(t_sigpack*x) { - outlet_list(x->x_obj.ob_outlet, gensym("list"), x->vector_length, x->buffer); + outlet_list(x->x_obj.ob_outlet, gensym("list"), x->vector_length, + x->buffer); } static t_int *sigpack_perform(t_int *w) @@ -92,10 +92,11 @@ static void sigpack_help(void) void pack_tilde_setup(void) { - sigpack_class = class_new(gensym("pack~"), (t_newmethod)sigpack_new, (t_method)sigpack_free, + sigpack_class = class_new(gensym("pack~"), (t_newmethod)sigpack_new, + (t_method)sigpack_free, sizeof(t_sigpack), 0, A_DEFFLOAT, 0); class_addmethod(sigpack_class, nullfn, gensym("signal"), 0); - class_addmethod(sigpack_class, (t_method)sigpack_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(sigpack_class, (t_method)sigpack_dsp, gensym("dsp"), 0); class_addmethod(sigpack_class, (t_method)sigpack_help, gensym("help"), 0); diff --git a/externals/zexy/src/pdf~.c b/externals/zexy/src/pdf~.c index a0d76ca38cc5f866116a8177e2eededfccad35bd..b3a950bc8d05f64d8a77d24967d3aa3b0a7ecacf 100644 --- a/externals/zexy/src/pdf~.c +++ b/externals/zexy/src/pdf~.c @@ -1,4 +1,4 @@ -/* +/* * pdf~: get the ProbabilityDensityFunction of a signal * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -23,8 +23,7 @@ static t_class *pdf_class; -typedef struct _pdf -{ +typedef struct _pdf { t_object x_obj; t_float *buf; @@ -37,7 +36,9 @@ static void clear_pdfbuf(t_pdf *x) int n = x->size; t_float *buf = x->buf; - while (n--) *buf++=0.; + while (n--) { + *buf++=0.; + } } static void pdf_bang(t_pdf *x) @@ -46,25 +47,32 @@ static void pdf_bang(t_pdf *x) t_float *buf = x->buf, max = 0; t_atom a[2]; - while (n--) if (max < *buf++) max = buf[-1]; + while (n--) if (max < *buf++) { + max = buf[-1]; + } n=x->size; buf = x->buf; - if (max==0.) max=1.; + if (max==0.) { + max=1.; + } max = 1./max; - while (n--) - { - SETFLOAT(a, *buf++*max); - SETFLOAT(a+1,x->size-n-1); - outlet_list(x->x_obj.ob_outlet, gensym("list"), 2, (t_atom*)&a); - } + while (n--) { + SETFLOAT(a, *buf++*max); + SETFLOAT(a+1,x->size-n-1); + outlet_list(x->x_obj.ob_outlet, gensym("list"), 2, (t_atom*)&a); + } } static void pdf_float(t_pdf *x, t_floatarg f) { - if (f) pdf_bang(x); else clear_pdfbuf(x); + if (f) { + pdf_bang(x); + } else { + clear_pdfbuf(x); + } } static t_int *pdf_perform(t_int *w) @@ -76,12 +84,11 @@ static t_int *pdf_perform(t_int *w) t_float *buf = x->buf; t_float halfsize = x->halfsize; - while (n--) - { - t_sample f = *in++; - int iindex = ((f + 1.0) * halfsize)+0.5; - buf[(iindex<0)?0:((iindex>=x->size)?x->size-1:iindex)]+=1.; - } + while (n--) { + t_sample f = *in++; + int iindex = ((f + 1.0) * halfsize)+0.5; + buf[(iindex<0)?0:((iindex>=x->size)?x->size-1:iindex)]+=1.; + } return (w+4); } @@ -102,19 +109,20 @@ static void *pdf_new(t_floatarg f) clear_pdfbuf(x); outlet_new(&x->x_obj, gensym("list")); - + return (x); } static void pdf_free(t_pdf *x) { - if(x->buf) + if(x->buf) { freebytes(x->buf, x->size*sizeof(*x->buf)); + } } static void pdf_tilde_helper(void) { - post("\n"HEARTSYMBOL" pdf~\t:: get the probability density function of a signal (-1.0 to +1.0)"); + post("\n"HEARTSYMBOL " pdf~\t:: get the probability density function of a signal (-1.0 to +1.0)"); post("'bang'\t : output a list of the probabilities of 'n' function values" "\n'clear'\t : clear the buffer (set all probabilities to zero)" "\n<1/0>\t : short for 'bang' and 'clear'" @@ -124,11 +132,12 @@ static void pdf_tilde_helper(void) void pdf_tilde_setup(void) { - pdf_class = class_new(gensym("pdf~"), (t_newmethod)pdf_new, (t_method)pdf_free, - sizeof(t_pdf), 0, A_DEFFLOAT, 0); + pdf_class = class_new(gensym("pdf~"), (t_newmethod)pdf_new, + (t_method)pdf_free, + sizeof(t_pdf), 0, A_DEFFLOAT, 0); class_addmethod(pdf_class, nullfn, gensym("signal"), 0); - class_addmethod(pdf_class, (t_method)pdf_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(pdf_class, (t_method)pdf_dsp, gensym("dsp"), 0); class_addmethod(pdf_class, (t_method)pdf_bang, gensym("bang"), 0); class_addmethod(pdf_class, (t_method)clear_pdfbuf, gensym("clear"), 0); diff --git a/externals/zexy/src/prime.c b/externals/zexy/src/prime.c index 66ffb49f10a426c6a3e0324484531f7e17a9984c..81a77f45841ca6bfeb3240a5bf02711a8257fb62 100644 --- a/externals/zexy/src/prime.c +++ b/externals/zexy/src/prime.c @@ -1,4 +1,4 @@ -/* +/* * prime: get the n-th prime number * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -34,12 +34,12 @@ static void prime_float(t_prime *x, t_float f) unsigned int max_divisor; unsigned int divisor=1; - if (f<2){ + if (f<2) { outlet_float(x->x_obj.ob_outlet, 0.0); return; } - if (!(i%2)){ + if (!(i%2)) { outlet_float(x->x_obj.ob_outlet, (t_float)(i==2)); return; } @@ -66,15 +66,16 @@ static void *prime_new(void) static void prime_help(t_prime*x) { - post("\n"HEARTSYMBOL" prime\t\t:: test whether a given number is prime"); + post("\n"HEARTSYMBOL " prime\t\t:: test whether a given number is prime"); } -void prime_setup(void) { +void prime_setup(void) +{ prime_class = class_new(gensym("prime"), - (t_newmethod)prime_new, - 0, sizeof(t_prime), - CLASS_DEFAULT, 0); + (t_newmethod)prime_new, + 0, sizeof(t_prime), + CLASS_DEFAULT, 0); class_addfloat(prime_class, prime_float); class_addmethod(prime_class, (t_method)prime_help, gensym("help"), A_NULL); diff --git a/externals/zexy/src/quantize~.c b/externals/zexy/src/quantize~.c index 0339e7b98726d4106283f4e5d22fe4513c5d3aed..47c27efefb5a8480e536b018e7202c30fcc12b54 100644 --- a/externals/zexy/src/quantize~.c +++ b/externals/zexy/src/quantize~.c @@ -1,4 +1,4 @@ -/* +/* * quantize~: quantize a signal to various bit-depths * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -30,8 +30,7 @@ static t_class *quantize_class; -typedef struct _quantize -{ +typedef struct _quantize { t_object x_obj; t_sample quantiz, dequantiz; } t_quantize; @@ -64,8 +63,12 @@ static t_int *quantize_perform(t_int *w) t_sample quantiz = x->quantiz, dequantiz = x->dequantiz; if (quantiz) - while (n--) *out++ = dequantiz*(int)(quantiz**in++); - else while (n--) *out++ = *in++; + while (n--) { + *out++ = dequantiz*(int)(quantiz**in++); + } + else while (n--) { + *out++ = *in++; + } return (w+5); } @@ -77,7 +80,7 @@ static void quantize_dsp(t_quantize *x, t_signal **sp) static void quantize_tilde_helper(t_quantize* UNUSED(x)) { - post(""HEARTSYMBOL" quantize~-object\t:: used for quantizing signals by various degrees"); + post(""HEARTSYMBOL " quantize~-object\t:: used for quantizing signals by various degrees"); post("<quants> : quantize a signal into <quants> steps ('0' turns quantizing off)\n" "'8bit' : quantize to 8 bit\n" "'16bit' : quantize to 16 bit (default)\n" @@ -92,23 +95,30 @@ static void *quantize_new(t_floatarg f) { t_quantize *x = (t_quantize *)pd_new(quantize_class); outlet_new(&x->x_obj, gensym("signal")); - if (f) quantize_float(x, f); - else quantize_16bit(x); - + if (f) { + quantize_float(x, f); + } else { + quantize_16bit(x); + } + return (x); } void quantize_tilde_setup(void) { - quantize_class = class_new(gensym("quantize~"), (t_newmethod)quantize_new, 0, - sizeof(t_quantize), 0, A_DEFFLOAT, 0); + quantize_class = class_new(gensym("quantize~"), (t_newmethod)quantize_new, + 0, + sizeof(t_quantize), 0, A_DEFFLOAT, 0); class_addmethod(quantize_class, nullfn, gensym("signal"), 0); - class_addmethod(quantize_class, (t_method)quantize_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(quantize_class, (t_method)quantize_dsp, gensym("dsp"), 0); class_addfloat(quantize_class, quantize_float); - class_addmethod(quantize_class, (t_method)quantize_8bit, gensym("8bit"), 0); - class_addmethod(quantize_class, (t_method)quantize_16bit, gensym("16bit"), 0); - - class_addmethod(quantize_class, (t_method)quantize_tilde_helper, gensym("help"), 0); + class_addmethod(quantize_class, (t_method)quantize_8bit, gensym("8bit"), + 0); + class_addmethod(quantize_class, (t_method)quantize_16bit, gensym("16bit"), + 0); + + class_addmethod(quantize_class, (t_method)quantize_tilde_helper, + gensym("help"), 0); zexy_register("quantize~"); } diff --git a/externals/zexy/src/rawprint.c b/externals/zexy/src/rawprint.c index 32c75adcd0646888e952cde9f0f8877b1cfb0803..e36495b372b63a33d2fe40fcd436bfa6ae434c35 100644 --- a/externals/zexy/src/rawprint.c +++ b/externals/zexy/src/rawprint.c @@ -1,4 +1,4 @@ -/* +/* * rawprint: print the incoming message as raw as possible * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -20,12 +20,14 @@ #include "zexy.h" #include <stdio.h> -#ifdef _MSC_VER +#ifdef _MSC_VER # define snprintf _snprintf #endif #if !defined( _MSC_VER ) && defined (_WIN32) -int _get_output_format( void ){ return 0; } +# ifndef _get_output_format +//int _get_output_format( void ){ return 0; } +# endif #endif static t_class *rawprint_class; @@ -41,7 +43,12 @@ static void rawprint_any(t_rawprint *x, t_symbol*s, int argc, t_atom*argv) if(x->label) { startpost("%s: ", x->label->s_name); } - startpost("\"%s\"", s->s_name); + + if(s) + startpost("\"%s\"", s->s_name); + else // this shouldn't happen, but sometimes does... + startpost("NULL"); + while(argc--) { switch(argv->a_type) { case A_FLOAT: @@ -69,7 +76,8 @@ static void rawprint_any(t_rawprint *x, t_symbol*s, int argc, t_atom*argv) snprintf(buf, MAXPDSTRING-1, "DOLLAR['%s']", atom_getsymbol(argv)->s_name); break; case A_DOLLSYM: - snprintf(buf, MAXPDSTRING-1, "DOLLSYM['%s']", atom_getsymbol(argv)->s_name); + snprintf(buf, MAXPDSTRING-1, "DOLLSYM['%s']", + atom_getsymbol(argv)->s_name); break; case A_GIMME: snprintf(buf, MAXPDSTRING-1, "GIMME"); @@ -81,7 +89,7 @@ static void rawprint_any(t_rawprint *x, t_symbol*s, int argc, t_atom*argv) snprintf(buf, MAXPDSTRING-1, "unknown[%d]", argv->a_type); } buf[MAXPDSTRING-1]=0; - + startpost(" %s", buf); argv++; } @@ -93,13 +101,15 @@ static void *rawprint_new(t_symbol*s) { t_rawprint *x = (t_rawprint *)pd_new(rawprint_class); x->label=NULL; - if(s&&gensym("")!=s) + if(s&&gensym("")!=s) { x->label=s; + } return (x); } -void rawprint_setup(void) { +void rawprint_setup(void) +{ rawprint_class = class_new(gensym("rawprint"), (t_newmethod)rawprint_new, 0, sizeof(t_rawprint), diff --git a/externals/zexy/src/regex.c b/externals/zexy/src/regex.c index 83f852e621fc699b749147c6c88d1bebcf342a84..8c32b37f993a50b9b2a7bc92377f7309de8249a2 100644 --- a/externals/zexy/src/regex.c +++ b/externals/zexy/src/regex.c @@ -1,4 +1,4 @@ -/* +/* * regex: regular expression pattern matcher * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -36,12 +36,11 @@ static t_class *regex_class; -typedef struct _regex -{ +typedef struct _regex { t_object x_obj; #ifdef HAVE_REGEX_H char *x_regexstring; /* the uncompiled regular expression */ - int x_regexstringlength; + int x_regexstringlength; regex_t *x_regexp; int x_matchnum; @@ -62,19 +61,24 @@ static char*regex_l2s(int *reslen, t_symbol*s, int argc, t_atom*argv) int pos=0, i=0; t_atom*ap; int length=0; - if(reslen)*reslen=length; + if(reslen) { + *reslen=length; + } /* 1st get the length of the symbol */ - if(s)length+=strlen(s->s_name); - else length-=1; + if(s) { + length+=strlen(s->s_name); + } else { + length-=1; + } length+=argc; i=argc; ap=argv; - while(i--){ + while(i--) { char buffer[MAXPDSTRING]; int len=0; - if(A_SYMBOL==ap->a_type){ + if(A_SYMBOL==ap->a_type) { len=strlen(ap->a_w.w_symbol->s_name); } else { atom_string(ap, buffer, MAXPDSTRING); @@ -84,7 +88,9 @@ static char*regex_l2s(int *reslen, t_symbol*s, int argc, t_atom*argv) ap++; } - if(length<=0)return(0); + if(length<=0) { + return(0); + } result = (char*)getbytes((length+1)*sizeof(char)); @@ -92,7 +98,7 @@ static char*regex_l2s(int *reslen, t_symbol*s, int argc, t_atom*argv) char *buf = s->s_name; strcpy(result+pos, buf); pos+=strlen(buf); - if(i){ + if(i) { strcpy(result+pos, " "); pos += 1; } @@ -100,8 +106,8 @@ static char*regex_l2s(int *reslen, t_symbol*s, int argc, t_atom*argv) ap=argv; i=argc; - while(i--){ - if(A_SYMBOL==ap->a_type){ + while(i--) { + if(A_SYMBOL==ap->a_type) { strcpy(result+pos, ap->a_w.w_symbol->s_name); pos+= strlen(ap->a_w.w_symbol->s_name); } else { @@ -111,14 +117,16 @@ static char*regex_l2s(int *reslen, t_symbol*s, int argc, t_atom*argv) pos += strlen(buffer); } ap++; - if(i){ + if(i) { strcpy(result+pos, " "); pos++; } } result[length]=0; - if(reslen)*reslen=length; + if(reslen) { + *reslen=length; + } return result; } @@ -127,34 +135,38 @@ static void regex_compile(t_regex *x) int flags = x->x_flags; flags |= REG_EXTENDED; - if(0==x->x_regexstring || 0==x->x_regexstringlength){ + if(0==x->x_regexstring || 0==x->x_regexstringlength) { pd_error(x, "[regex]: no regular expression given"); return; } - if(x->x_regexp){ - regfree(x->x_regexp); - freebytes(x->x_regexp, sizeof(t_regex)); - x->x_regexp=0; + if(x->x_regexp) { + regfree(x->x_regexp); + freebytes(x->x_regexp, sizeof(t_regex)); + x->x_regexp=0; } x->x_regexp=(regex_t*)getbytes(sizeof(t_regex)); if(regcomp(x->x_regexp, x->x_regexstring, flags)) { pd_error(x, "[regex]: invalid regular expression: %s", x->x_regexstring); - if(x->x_regexp)freebytes(x->x_regexp, sizeof(t_regex)); + if(x->x_regexp) { + freebytes(x->x_regexp, sizeof(t_regex)); + } x->x_regexp=0; } } #endif -static void regex_case(t_regex *x, t_float f){ +static void regex_case(t_regex *x, t_float f) +{ #if HAVE_REGEX_H - if(f>0.f) + if(f>0.f) { x->x_flags |= REG_ICASE; - else + } else { x->x_flags ^= REG_ICASE; + } regex_compile(x); #endif @@ -169,7 +181,7 @@ static void regex_regex(t_regex *x, t_symbol*s, int argc, t_atom*argv) result=regex_l2s(&length, 0, argc, argv); - if(0==result || 0==length){ + if(0==result || 0==length) { pd_error(x, "[regex]: no regular expression given"); return; } @@ -179,7 +191,7 @@ static void regex_regex(t_regex *x, t_symbol*s, int argc, t_atom*argv) x->x_regexstring=0; x->x_regexstringlength=0; } - + x->x_regexstring=result; x->x_regexstringlength=length; @@ -200,25 +212,25 @@ static void regex_symbol(t_regex *x, t_symbol *s, int argc, t_atom*argv) int err=0; - if(!x->x_regexp){ + if(!x->x_regexp) { pd_error(x, "[regex]: no regular expression!"); goto cleanup; } teststring=regex_l2s(&length, 0, argc, argv); - if(!teststring||!length){ + if(!teststring||!length) { pd_error(x, "[regex]: cannot evaluate string"); goto cleanup; } /* do the actual comparing against the regex */ err=regexec(x->x_regexp, teststring, num_matches, match, 0); - if(teststring){ + if(teststring) { freebytes(teststring, length); teststring=0; } if(err) { /* NO match */ - if(match){ + if(match) { freebytes(match, sizeof(regmatch_t)*num_matches); match=0; } @@ -229,10 +241,11 @@ static void regex_symbol(t_regex *x, t_symbol *s, int argc, t_atom*argv) int i=0; t_atom*ap2=ap; - for(i=0; i<num_matches; i++){ - if(match[i].rm_so!=-1){ + for(i=0; i<num_matches; i++) { + if(match[i].rm_so!=-1) { /* output the matches */ - if(i>0 && (match[i].rm_so==match[i-1].rm_so) && (match[i].rm_eo==match[i-1].rm_eo)){ + if(i>0 && (match[i].rm_so==match[i-1].rm_so) + && (match[i].rm_eo==match[i-1].rm_eo)) { /* duplicate matches */ } else { SETFLOAT(ap2+0, (t_float)i); @@ -243,21 +256,25 @@ static void regex_symbol(t_regex *x, t_symbol *s, int argc, t_atom*argv) } } } - if(match){ + if(match) { freebytes(match, sizeof(regmatch_t)*num_matches); match=0; } outlet_float(x->x_outNumDetails, (t_float)num_results); - for(i=0; i<num_results; i++){ + for(i=0; i<num_results; i++) { outlet_list(x->x_outDetails, gensym("list"), 3, ap+(i*3)); } outlet_float(x->x_outResult, 1.f); } - cleanup: - if(teststring)freebytes(teststring, length); - if(match)freebytes(match, sizeof(regmatch_t)*num_matches); +cleanup: + if(teststring) { + freebytes(teststring, length); + } + if(match) { + freebytes(match, sizeof(regmatch_t)*num_matches); + } - if(ap){ + if(ap) { freebytes(ap, sizeof(t_atom)*(1+2*num_matches)); } #endif @@ -282,8 +299,9 @@ static void *regex_new(t_symbol *s, int argc, t_atom*argv) x->x_regexp=0; x->x_matchnum=NUM_REGMATCHES; - if(argc)regex_regex(x, gensym(""), argc, argv); - else{ + if(argc) { + regex_regex(x, gensym(""), argc, argv); + } else { t_atom a; SETSYMBOL(&a, gensym(".*")); regex_regex(x, 0, 1, &a); @@ -298,7 +316,7 @@ static void *regex_new(t_symbol *s, int argc, t_atom*argv) static void regex_free(t_regex *x) { #ifdef HAVE_REGEX_H - if(x->x_regexstring){ + if(x->x_regexstring) { freebytes(x->x_regexstring, x->x_regexstringlength); x->x_regexstring=0; x->x_regexstringlength=0; @@ -314,18 +332,20 @@ static void regex_free(t_regex *x) static void regex_help(t_regex*x) { - post("\n"HEARTSYMBOL" regex\t\t:: test the input whether it matches a regular expression"); + post("\n"HEARTSYMBOL " regex\t\t:: test the input whether it matches a regular expression"); } void regex_setup(void) { - regex_class = class_new(gensym("regex"), (t_newmethod)regex_new, - (t_method)regex_free, sizeof(t_regex), 0, A_GIMME, 0); + regex_class = class_new(gensym("regex"), (t_newmethod)regex_new, + (t_method)regex_free, sizeof(t_regex), 0, A_GIMME, 0); class_addlist (regex_class, regex_symbol); - class_addmethod(regex_class, (t_method)regex_regex, gensym("regex"), A_GIMME, 0); + class_addmethod(regex_class, (t_method)regex_regex, gensym("regex"), + A_GIMME, 0); - class_addmethod(regex_class, (t_method)regex_case, gensym("case"), A_FLOAT, 0); + class_addmethod(regex_class, (t_method)regex_case, gensym("case"), A_FLOAT, + 0); class_addmethod(regex_class, (t_method)regex_help, gensym("help"), A_NULL); zexy_register("regex"); diff --git a/externals/zexy/src/relay.c b/externals/zexy/src/relay.c index a104b947d83799b50cb29cf2b3324739eff08a62..246e1f26497b9b766b51ff7b3d92bc3ae90d7f8f 100644 --- a/externals/zexy/src/relay.c +++ b/externals/zexy/src/relay.c @@ -1,4 +1,4 @@ -/* +/* * relay: route without stripping selector * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,29 +7,29 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ -/* +/* (c) 2106:forum::für::umläute:2005 - "relay" is like "relay" but doesn't change the incoming list + "relay" is like "route" but doesn't change the incoming list example: - [foo bar( --> [relay foo] --> [bar( - [foo bar( --> [relay foo] --> [foor bar( + [foo bar( --> [route foo] --> [bar( + [foo bar( --> [relay foo] --> [foor bar( - namings: - direct, channel, relay, steer, guide, ?? + namings: + direct, channel, relay, steer, guide, ?? - in the meantime i choose [relay] (as in mail-relay) + in the meantime i choose [relay] (as in mail-relay) */ @@ -40,143 +40,126 @@ static t_class *relay_class; -typedef struct _relayelement -{ - t_word e_w; - t_outlet *e_outlet; +typedef struct _relayelement { + t_word e_w; + t_outlet *e_outlet; } t_relayelement; -typedef struct _relay -{ - t_object x_obj; - t_atomtype x_type; - t_int x_nelement; - t_relayelement *x_vec; - t_outlet *x_rejectout; +typedef struct _relay { + t_object x_obj; + t_atomtype x_type; + t_int x_nelement; + t_relayelement *x_vec; + t_outlet *x_rejectout; } t_relay; -static void relay_anything(t_relay *x, t_symbol *sel, int argc, t_atom *argv) +static void relay_anything(t_relay *x, t_symbol *sel, int argc, + t_atom *argv) { - t_relayelement *e; - int nelement; - if (x->x_type == A_SYMBOL) - { - for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) - if (e->e_w.w_symbol == sel) - { - outlet_anything(e->e_outlet, sel, argc, argv); - return; - } + t_relayelement *e; + int nelement; + if (x->x_type == A_SYMBOL) { + for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) { + if (e->e_w.w_symbol == sel) { + outlet_anything(e->e_outlet, sel, argc, argv); + return; + } } - outlet_anything(x->x_rejectout, sel, argc, argv); + } + outlet_anything(x->x_rejectout, sel, argc, argv); } static void relay_list(t_relay *x, t_symbol *sel, int argc, t_atom *argv) { t_relayelement *e; int nelement; - if (x->x_type == A_FLOAT) - { - t_float f; - if (!argc){ - outlet_bang(x->x_rejectout); + if (x->x_type == A_FLOAT) { + t_float f; + if (!argc) { + outlet_bang(x->x_rejectout); + return; + } + f = atom_getfloat(argv); + for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) { + if (e->e_w.w_float == f) { + if (!sel) { + sel=(argc==1)?gensym("float"):gensym("list"); + } + outlet_anything(e->e_outlet, sel, argc, argv); return; } - f = atom_getfloat(argv); - for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) - if (e->e_w.w_float == f) - { - outlet_anything(e->e_outlet, sel, argc, argv); - return; - } } - else /* symbol arguments */ - { - if (argc == 0) /* no args: treat as "bang" */ - { - for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) - { - if (e->e_w.w_symbol == gensym("bang")) - { - outlet_bang(e->e_outlet); - return; - } - } + } else { /* symbol arguments */ + if (argc == 0) { /* no args: treat as "bang" */ + for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) { + if (e->e_w.w_symbol == gensym("bang")) { + outlet_bang(e->e_outlet); + return; } - else if (argc>1) - { - for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) - { - if (e->e_w.w_symbol == gensym("list")) - { - outlet_anything(e->e_outlet, sel, argc, argv); - return; - } - } + } + } else if (argc>1) { + for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) { + if (e->e_w.w_symbol == gensym("list")) { + outlet_anything(e->e_outlet, sel, argc, argv); + return; } - else if (argv[0].a_type == A_FLOAT) /* one float arg */ - { - for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) - { - if (e->e_w.w_symbol == gensym("float")) - { - outlet_float(e->e_outlet, argv[0].a_w.w_float); - return; - } - } + } + } else if (argv[0].a_type == A_FLOAT) { /* one float arg */ + for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) { + if (e->e_w.w_symbol == gensym("float")) { + outlet_float(e->e_outlet, argv[0].a_w.w_float); + return; } - else - { - for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) - { - if (e->e_w.w_symbol == gensym("symbol")) - { - outlet_symbol(e->e_outlet, argv[0].a_w.w_symbol); - return; - } - } + } + } else { + for (nelement = x->x_nelement, e = x->x_vec; nelement--; e++) { + if (e->e_w.w_symbol == gensym("symbol")) { + outlet_symbol(e->e_outlet, argv[0].a_w.w_symbol); + return; } + } } + } outlet_list(x->x_rejectout, gensym("list"), argc, argv); } static void relay_free(t_relay *x) { - freebytes(x->x_vec, x->x_nelement * sizeof(*x->x_vec)); + freebytes(x->x_vec, x->x_nelement * sizeof(*x->x_vec)); } static void *relay_new(t_symbol* UNUSED(s), int argc, t_atom *argv) { - int n; - t_relayelement *e; - t_relay *x = (t_relay *)pd_new(relay_class); - t_atom a; - if (argc == 0) - { - argc = 1; - SETFLOAT(&a, 0); - argv = &a; - } - x->x_type = argv[0].a_type; - x->x_nelement = argc; - x->x_vec = (t_relayelement *)getbytes(argc * sizeof(*x->x_vec)); - for (n = 0, e = x->x_vec; n < argc; n++, e++) - { - e->e_outlet = outlet_new(&x->x_obj, gensym("list")); - if (x->x_type == A_FLOAT) - e->e_w.w_float = atom_getfloatarg(n, argc, argv); - else e->e_w.w_symbol = atom_getsymbolarg(n, argc, argv); + int n; + t_relayelement *e; + t_relay *x = (t_relay *)pd_new(relay_class); + t_atom a; + if (argc == 0) { + argc = 1; + SETFLOAT(&a, 0); + argv = &a; + } + x->x_type = argv[0].a_type; + x->x_nelement = argc; + x->x_vec = (t_relayelement *)getbytes(argc * sizeof(*x->x_vec)); + for (n = 0, e = x->x_vec; n < argc; n++, e++) { + e->e_outlet = outlet_new(&x->x_obj, gensym("list")); + if (x->x_type == A_FLOAT) { + e->e_w.w_float = atom_getfloatarg(n, argc, argv); + } else { + e->e_w.w_symbol = atom_getsymbolarg(n, argc, argv); } - x->x_rejectout = outlet_new(&x->x_obj, gensym("list")); - return (x); + } + x->x_rejectout = outlet_new(&x->x_obj, gensym("list")); + return (x); } void relay_setup(void) { - relay_class = class_new(gensym("relay"), (t_newmethod)relay_new, - (t_method)relay_free, sizeof(t_relay), 0, A_GIMME, 0); - class_addlist(relay_class, relay_list); - class_addanything(relay_class, relay_anything); - zexy_register("relay"); + relay_class = class_new(gensym("relay"), (t_newmethod)relay_new, + (t_method)relay_free, sizeof(t_relay), 0, A_GIMME, 0); + class_addlist(relay_class, relay_list); + class_addanything(relay_class, relay_anything); + zexy_register("relay"); } diff --git a/externals/zexy/src/repack.c b/externals/zexy/src/repack.c index 044d369a395612f1c23a23b58f9b251798ab5c2c..51ceb14ab8bf3250713579dddbade2037767cfcf 100644 --- a/externals/zexy/src/repack.c +++ b/externals/zexy/src/repack.c @@ -1,4 +1,4 @@ -/* +/* * repack : (re)pack floats/symbols/pointers to fixed-length packages * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -31,8 +31,7 @@ the second inlet lets you change the default package size static t_class *repack_class; -typedef struct _repack -{ +typedef struct _repack { t_object x_obj; t_atom *buffer; int bufsize; @@ -59,12 +58,13 @@ static void repack_set(t_repack *x, t_float f) dumbuf += n; } - if (dumcur < 0) error("this should never happen :: dumcur = %d < 0", dumcur); - else { + if (dumcur < 0) { + error("this should never happen :: dumcur = %d < 0", dumcur); + } else { memcpy(x->buffer, dumbuf, dumcur * sizeof(t_atom)); x->current = dumcur; } - + if (n > x->bufsize) { dumbuf = (t_atom *)getbytes(n * sizeof(t_atom)); memcpy(dumbuf, x->buffer, x->current * sizeof(t_atom)); @@ -72,7 +72,7 @@ static void repack_set(t_repack *x, t_float f) x->buffer = dumbuf; x->bufsize = n; } - + x->outputsize = n; } } @@ -89,7 +89,9 @@ static void repack_float(t_repack *x, t_float f) /* add a float-atom to the list */ SETFLOAT(&x->buffer[x->current], f); x->current++; - if (x->current >= x->outputsize) repack_bang(x); + if (x->current >= x->outputsize) { + repack_bang(x); + } } static void repack_symbol(t_repack *x, t_symbol *s) @@ -97,16 +99,21 @@ static void repack_symbol(t_repack *x, t_symbol *s) /* add a sym-atom to the list */ SETSYMBOL(&x->buffer[x->current], s); x->current++; - if (x->current >= x->outputsize) repack_bang(x); + if (x->current >= x->outputsize) { + repack_bang(x); + } } static void repack_pointer(t_repack *x, t_gpointer *p) { /* add a pointer-atom to the list */ SETPOINTER(&x->buffer[x->current], p); x->current++; - if (x->current >= x->outputsize) repack_bang(x); + if (x->current >= x->outputsize) { + repack_bang(x); + } } -static void repack_list(t_repack *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void repack_list(t_repack *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { int remain = x->outputsize - x->current; t_atom *ap = argv; @@ -128,7 +135,8 @@ static void repack_list(t_repack *x, t_symbol* UNUSED(s), int argc, t_atom *argv memcpy(x->buffer + x->current, ap, argc * sizeof(t_atom)); x->current += argc; } -static void repack_anything(t_repack *x, t_symbol *s, int argc, t_atom *argv) +static void repack_anything(t_repack *x, t_symbol *s, int argc, + t_atom *argv) { SETSYMBOL(&x->buffer[x->current], s); x->current++; @@ -159,16 +167,17 @@ static void *repack_new(t_floatarg f) void repack_setup(void) { - repack_class = class_new(gensym("repack"), (t_newmethod)repack_new, - 0, sizeof(t_repack), 0, A_DEFFLOAT, 0); - + repack_class = class_new(gensym("repack"), (t_newmethod)repack_new, + 0, sizeof(t_repack), 0, A_DEFFLOAT, 0); + class_addbang (repack_class, repack_bang); class_addfloat (repack_class, repack_float); class_addsymbol (repack_class, repack_symbol); class_addpointer (repack_class, repack_pointer); class_addlist (repack_class, repack_list); class_addanything(repack_class, repack_anything); - class_addmethod (repack_class, (t_method)repack_set, gensym(""), A_DEFFLOAT, 0); + class_addmethod (repack_class, (t_method)repack_set, gensym(""), + A_DEFFLOAT, 0); zexy_register("repack"); } diff --git a/externals/zexy/src/repeat.c b/externals/zexy/src/repeat.c index de9e71933ca4241db744371d9620f2b1dc029503..dfd07b104af741f8df77721a227835687eff581f 100644 --- a/externals/zexy/src/repeat.c +++ b/externals/zexy/src/repeat.c @@ -1,4 +1,4 @@ -/* +/* * repeat: repeat a message multiple times * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -23,28 +23,36 @@ static t_class *repeat_class; -typedef struct _repeat -{ +typedef struct _repeat { t_object x_obj; t_float fcount; } t_repeat; -static void repeat_anything(t_repeat *x, t_symbol *s, int argc, t_atom *argv) -{ +static void repeat_anything(t_repeat *x, t_symbol *s, int argc, + t_atom *argv) +{ int i; i=x->fcount; - if (i<0)i=1; - while(i--)outlet_anything(x->x_obj.ob_outlet, s, argc, argv); + if (i<0) { + i=1; + } + while(i--) { + outlet_anything(x->x_obj.ob_outlet, s, argc, argv); + } } static void *repeat_new(t_symbol* UNUSED(s), int argc, t_atom*argv) { t_repeat *x = (t_repeat *)pd_new(repeat_class); - if(argc){ - if(A_FLOAT==argv->a_type) + if(argc) { + if(A_FLOAT==argv->a_type) { x->fcount = atom_getfloat(argv); - else return 0; - } else x->fcount=2; + } else { + return 0; + } + } else { + x->fcount=2; + } floatinlet_new(&x->x_obj, &x->fcount); outlet_new(&x->x_obj, 0); return (x); @@ -52,8 +60,8 @@ static void *repeat_new(t_symbol* UNUSED(s), int argc, t_atom*argv) void repeat_setup(void) { - repeat_class = class_new(gensym("repeat"), (t_newmethod)repeat_new, - 0, sizeof(t_repeat), 0, A_GIMME, 0); + repeat_class = class_new(gensym("repeat"), (t_newmethod)repeat_new, + 0, sizeof(t_repeat), 0, A_GIMME, 0); class_addanything(repeat_class, repeat_anything); zexy_register("repeat"); diff --git a/externals/zexy/src/route~.c b/externals/zexy/src/route~.c index c69d94e1468eaef894192c7a67fc3d32bff851ee..aa073ba63b7afe9a599421584ef12f6b8684b4cb 100644 --- a/externals/zexy/src/route~.c +++ b/externals/zexy/src/route~.c @@ -1,4 +1,4 @@ -/* +/* * [route~]: 1-to-n signal routing * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -20,32 +20,34 @@ #include "zexy.h" static t_class *route_tilde_class; -typedef struct _route_tilde -{ +typedef struct _route_tilde { t_object x_obj; t_outlet*x_sigout, *x_msgout; } t_route_tilde; -static void route_tilde_any(t_route_tilde *x, t_symbol *s, int argc, t_atom *argv) +static void route_tilde_any(t_route_tilde *x, t_symbol *s, int argc, + t_atom *argv) { outlet_anything(x->x_msgout, s, argc, argv); } t_int *route_tilde_perform(t_int *w) { - t_sample *in = (t_sample *)(w[1]); - t_sample *out = (t_sample *)(w[2]); - int n = (int)(w[3]); - while (n--) *out++ = *in++; - return (w+4); + t_sample *in = (t_sample *)(w[1]); + t_sample *out = (t_sample *)(w[2]); + int n = (int)(w[3]); + while (n--) { + *out++ = *in++; + } + return (w+4); } static void route_tilde_dsp(t_route_tilde *x, t_signal **sp) { - if(sp) + if(sp) { dsp_add(route_tilde_perform, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); - else { + } else { route_tilde_any(x, gensym("dsp"), 0, 0); } } @@ -65,12 +67,14 @@ static void *route_tilde_new(void) void route_tilde_setup(void) { - route_tilde_class = class_new(gensym("route~"), (t_newmethod)route_tilde_new, (t_method)route_tilde_free, - sizeof(t_route_tilde), 0, A_NULL); + route_tilde_class = class_new(gensym("route~"), + (t_newmethod)route_tilde_new, (t_method)route_tilde_free, + sizeof(t_route_tilde), 0, A_NULL); class_addanything(route_tilde_class, (t_method)route_tilde_any); class_addmethod(route_tilde_class, nullfn, gensym("signal"), 0); - class_addmethod(route_tilde_class, (t_method)route_tilde_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(route_tilde_class, (t_method)route_tilde_dsp, + gensym("dsp"), A_CANT, 0); zexy_register("route~"); } diff --git a/externals/zexy/src/sfplay.c b/externals/zexy/src/sfplay.c index 9c3a469ea2004f9ebaf177a603897db3557774d0..a577605270ee44e0396a06911220d106a720f415 100644 --- a/externals/zexy/src/sfplay.c +++ b/externals/zexy/src/sfplay.c @@ -1,4 +1,4 @@ -/* +/* * sfplay: multichannel soundfile player (use [readsf~] instead) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,56 +7,56 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ /* -sfplay.c - Author: Winfried Ritsch - IEM Graz 10.Mai 99 - +sfplay.c - Author: Winfried Ritsch - IEM Graz 10.Mai 99 - Modified: Description: - + Soundfile player for playing many soundfiles in single speed. (Made for "3 Farben Schwarz" - exhibition in Graz 99 ) - + Filename must have the path or actual directory, since pathname search ist not supported to garantuee a fast open call. - + They idea is a state machine which handles open, skip, play, close, error so that a minimum intervall between OS-calls are made, to avoid peak load. - + It has shown, that the open call is slow if there are a lot of files to search for, then with the first skip the first part of a - soundfile is also loaded by the OS. - + soundfile is also loaded by the OS. + I experimented with asynchronous buffering with paralell process,which has shown no much performance hit, since more processes has to be handled and the modern OS's do caching anyway also caching is done in modern hard disk, so an additional cache woud be an overhead, if not special behaviour is needed (big jumps etc). - + This sfplayers should be used with an appropriate audio buffer for good performance, so also buffering on the object is an overhead. - - The sfread for linux using mmap has also not much improvement over this, if plain playing in one + + The sfread for linux using mmap has also not much improvement over this, if plain playing in one direction is done for random access the sfread should be used, even not knowing how to mmap in NT. - + Todo: Add the SPEED feature, but therefore there should be an own external using e.g. a 4-point interpolation. so overhead is reduced in this one. Split open to an own object called sfopen to hold more soundfiles then players and to enable glueless switching between soundfiles. - + please mail problems and ideas for improvements to ritsch@iem.kug.ac.at */ @@ -83,38 +83,37 @@ ritsch@iem.kug.ac.at */ static t_class *sfplay_class; -typedef struct _sfplay -{ - t_object x_obj; - - t_outlet *bangout; /* end of file */ - - void* filep; /* pointer to file data read in mem */ - t_symbol* filename; /* filename */ - /* - because there is no command queue, - flags are used instead - */ - t_int play; /* play: 1, stop: 0 */ - t_int please_stop; /* can be reset only by stop-state itself */ - t_int please_close; /* can be reset only by close-state */ - t_int x_channels; /* channels to play */ - t_float x_offset; /* offsetto start reading */ - t_float offset; /* inlet value offset in secs */ - t_float x_skip; /* skip bytes because header */ - t_int skip; /* pending skip if 1 */ - t_float x_speed; /* play speed, not supported in this version */ - t_int size; /* size of file (if memory mapped) */ - t_int swap; /* swap bytes from l->b or b->m */ - FILE *fp; /* file oper non-NULL of open */ - t_int state; /* which state is player in */ - t_int count; /* count for ticks before next step */ +typedef struct _sfplay { + t_object x_obj; + + t_outlet *bangout; /* end of file */ + + void* filep; /* pointer to file data read in mem */ + t_symbol* filename; /* filename */ + /* + because there is no command queue, + flags are used instead + */ + t_int play; /* play: 1, stop: 0 */ + t_int please_stop; /* can be reset only by stop-state itself */ + t_int please_close; /* can be reset only by close-state */ + t_int x_channels; /* channels to play */ + t_float x_offset; /* offsetto start reading */ + t_float offset; /* inlet value offset in secs */ + t_float x_skip; /* skip bytes because header */ + t_int skip; /* pending skip if 1 */ + t_float x_speed; /* play speed, not supported in this version */ + t_int size; /* size of file (if memory mapped) */ + t_int swap; /* swap bytes from l->b or b->m */ + FILE *fp; /* file oper non-NULL of open */ + t_int state; /* which state is player in */ + t_int count; /* count for ticks before next step */ } t_sfplay; /* states of statemachine */ #define SFPLAY_WAIT 0 /* wait for open */ -#define SFPLAY_OPEN 1 +#define SFPLAY_OPEN 1 #define SFPLAY_CLOSE 2 #define SFPLAY_SKIP 3 #define SFPLAY_PLAY 4 @@ -123,72 +122,74 @@ typedef struct _sfplay #define SFPLAY_WAITTICKS 10 /* 1 tick of 64 Samples is ca. 1.5ms on 441000 */ -/* split the os-calls in as many steps as possible +/* split the os-calls in as many steps as possible to split them on different ticks in steps of SFPLAY_WAITTICKS to avoid peak performance */ /* like the one from garray */ -static int sfplay_am_i_big_endian(void) +static int sfplay_am_i_big_endian(void) { - unsigned short s = 1; - unsigned char c = *(char *) (&s); - return(c==0); + unsigned short s = 1; + unsigned char c = *(char *) (&s); + return(c==0); } static void sfplay_helper(t_sfplay* UNUSED(x)) { - post("\nsfplay :: a soundfile-player (c) winfried ritsch 1999"); - post("\ncreation :: sfplay <channels> <bytes> : channels set the number of channels, bytes skip fileheader"); - post("\nopen [<path>]<filename> [<endianity>]\t::open b(ig) or l(ittle) endian file" - "\nclose\t\t\t::close file (aka eject)" - "\nstart\t\t\t::start playing" - "\nstop\t\t\t::stop playing" - "\nrewind\t\t\t::rewind tape" - "\ngoto <n>\t\t::play from byte n"); - post("\n\nyou can also start playing with a 'bang' or a '1', and stop with a '0'" - "\nthe last outlet will do a bang after the last sample has been played"); + post("\nsfplay :: a soundfile-player (c) winfried ritsch 1999"); + post("\ncreation :: sfplay <channels> <bytes> : channels set the number of channels, bytes skip fileheader"); + post("\nopen [<path>]<filename> [<endianity>]\t::open b(ig) or l(ittle) endian file" + "\nclose\t\t\t::close file (aka eject)" + "\nstart\t\t\t::start playing" + "\nstop\t\t\t::stop playing" + "\nrewind\t\t\t::rewind tape" + "\ngoto <n>\t\t::play from byte n"); + post("\n\nyou can also start playing with a 'bang' or a '1', and stop with a '0'" + "\nthe last outlet will do a bang after the last sample has been played"); } /* METHOD: "open" file */ -/* this dont use memory map, because I dont know about this on NT ? -Use of the buffered functions fopen, fseek fread fclose instead the +/* this dont use memory map, because I dont know about this on NT ? +Use of the buffered functions fopen, fseek fread fclose instead the non buffered ones open read close */ static void sfplay_open(t_sfplay *x,t_symbol *filename,t_symbol *endian) { - if(x->state != SFPLAY_WAIT) - { - post("sfplay: first close %s before open %s",x->filename->s_name,filename->s_name); - return; - } - -/* test if big endian else asume little endian - should be 'l' but could be anything*/ - - if(sfplay_am_i_big_endian()) - x->swap = !(endian->s_name[0] == 'b'); - else - x->swap = (endian->s_name[0] == 'b'); - - x->skip = 1; /* skip header after open */ - - x->filename = filename; - + if(x->state != SFPLAY_WAIT) { + post("sfplay: first close %s before open %s",x->filename->s_name, + filename->s_name); + return; + } + + /* test if big endian else asume little endian + should be 'l' but could be anything*/ + + if(sfplay_am_i_big_endian()) { + x->swap = !(endian->s_name[0] == 'b'); + } else { + x->swap = (endian->s_name[0] == 'b'); + } + + x->skip = 1; /* skip header after open */ + + x->filename = filename; + #ifdef DEBUG_ME - post("sfplay: filename = %s",x->filename->s_name); + post("sfplay: filename = %s",x->filename->s_name); #endif - - if (x->fp != NULL)fclose(x->fp); /* should not happen */ - - if (!(x->fp = fopen(x->filename->s_name,BINREADMODE))) - { - error("sfplay: can't open %s", x->filename->s_name); - } + + if (x->fp != NULL) { + z_fclose(x->fp); /* should not happen */ + } + + if (!(x->fp = z_fopen(x->filename->s_name,BINREADMODE))) { + error("sfplay: can't open %s", x->filename->s_name); + } } @@ -196,347 +197,352 @@ static void sfplay_open(t_sfplay *x,t_symbol *filename,t_symbol *endian) /* METHOD: close */ static void sfplay_close(t_sfplay *x) { - x->play = 0; - x->please_close = 1; + x->play = 0; + x->please_close = 1; - /* now in state machine - if(x->fp != NULL) - { - fclose(x->fp); - x->fp = NULL; - } - */ + /* now in state machine + if(x->fp != NULL) + { + z_fclose(x->fp); + x->fp = NULL; + } + */ #ifdef DEBUG_ME - post("sfplay: close "); + post("sfplay: close "); #endif - return; + return; } /* for skipping header of soundfile Dont use this for memory map */ static int sfplay_skip(t_sfplay *x) { - if(!x->skip) return 0; - - x->skip = 0; - - if(fseek(x->fp, (long) x->x_offset, SEEK_SET) < 0) - { - error(" sfplay can't seek to byte %ld",(long) x->x_offset); - x->x_offset = x->x_skip; - x->skip = 1; - return 0; - } - + if(!x->skip) { + return 0; + } + + x->skip = 0; + + if(fseek(x->fp, (long) x->x_offset, SEEK_SET) < 0) { + error(" sfplay can't seek to byte %ld",(long) x->x_offset); + x->x_offset = x->x_skip; + x->skip = 1; + return 0; + } + #ifdef DEBUG_ME - post("sfplay:skip to %f",x->x_offset); + post("sfplay:skip to %f",x->x_offset); #endif - return 1; + return 1; } /* Input, method for Start stop */ static void sfplay_start(t_sfplay *x) { - long of = x->offset * sys_getsr() * x->x_channels; - - if(of < 0) of = x->x_skip; - else of += x->x_skip; /* offset in sec */ + long of = x->offset * sys_getsr() * x->x_channels; + + if(of < 0) { + of = x->x_skip; + } else { + of += x->x_skip; /* offset in sec */ + } + + of &= ~0x111l; /* no odds please (8 channels boundary) */ - of &= ~0x111l; /* no odds please (8 channels boundary) */ - #ifdef DEBUG_ME - post("sfplay: start"); + post("sfplay: start"); #endif - - /* new offset postion ? (fom inlet offset) */ - if( ((t_float) of) != x->x_offset) - { - x->skip=1; - x->x_offset = of; - } - x->play=1; + + /* new offset postion ? (fom inlet offset) */ + if( ((t_float) of) != x->x_offset) { + x->skip=1; + x->x_offset = of; + } + x->play=1; } static void sfplay_stop(t_sfplay *x) { -#ifdef DEBUG_ME - post("sfplay: stop"); +#ifdef DEBUG_ME + post("sfplay: stop"); #endif - x->play=0; - x->please_stop = 1; + x->play=0; + x->please_stop = 1; } static void sfplay_float(t_sfplay *x, t_floatarg f) { - int t = f; - if (t) sfplay_start(x); - else sfplay_stop(x); + int t = f; + if (t) { + sfplay_start(x); + } else { + sfplay_stop(x); + } } /* start playing at position offset*/ static void sfplay_offset(t_sfplay *x, t_floatarg f) { - x->offset = f; - x->skip = 1; - /* correction in sfplay_play() */ - + x->offset = f; + x->skip = 1; + /* correction in sfplay_play() */ + #ifdef DEBUG_ME - post("sfplay: offset %f",f); + post("sfplay: offset %f",f); #endif - return; + return; } static void sfplay_rewind(t_sfplay *x) { #ifdef DEBUG_ME - post("sfplay: rewind to %f",x->x_skip); + post("sfplay: rewind to %f",x->x_skip); #endif - - if(!x->fp)return; - - x->play=0; - fseek(x->fp,(long) x->x_skip,SEEK_SET); + + if(!x->fp) { + return; + } + + x->play=0; + fseek(x->fp,(long) x->x_skip,SEEK_SET); } /* restart with bang */ static void sfplay_bang(t_sfplay* x) { - x->skip = 1; - sfplay_start(x); + x->skip = 1; + sfplay_start(x); } static t_int *sfplay_perform(t_int *w) { - t_sfplay* x = (t_sfplay*)(w[1]); - short* buf = x->filep; - int c = x->x_channels; - - int i,j,n; - t_float* out[MAX_CHANS]; - - short s; - int swap = x->swap; - - for (i=0;i<c;i++) - out[i] = (t_float *)(w[3+i]); - - n = (int)(w[3+c]); - - /* loop */ - - - switch(x->state){ - - /* just wait */ - case SFPLAY_WAIT: - - if(x->fp != NULL){ + t_sfplay* x = (t_sfplay*)(w[1]); + short* buf = x->filep; + int c = x->x_channels; + + int i,j,n; + t_float* out[MAX_CHANS]; + + short s; + int swap = x->swap; + + for (i=0; i<c; i++) { + out[i] = (t_float *)(w[3+i]); + } + + n = (int)(w[3+c]); + + /* loop */ + + + switch(x->state) { + + /* just wait */ + case SFPLAY_WAIT: + + if(x->fp != NULL) { #ifdef DEBUG_ME - post("wait -> open"); + post("wait -> open"); #endif - x->state = SFPLAY_OPEN; - x->count = SFPLAY_WAITTICKS; - }; - break; - - /* if in open state, already opened but wait for skip */ - case SFPLAY_OPEN: /* file hase opened wait some time */ - - if(!(x->count--)){ + x->state = SFPLAY_OPEN; + x->count = SFPLAY_WAITTICKS; + }; + break; + + /* if in open state, already opened but wait for skip */ + case SFPLAY_OPEN: /* file hase opened wait some time */ + + if(!(x->count--)) { #ifdef DEBUG_ME - post("open -> skip"); + post("open -> skip"); #endif - x->state = SFPLAY_SKIP; - x->count = SFPLAY_WAITTICKS; - }; - - break; - - - /* in skipmode wait until ready for stop */ - case SFPLAY_SKIP: - - - if(x->count == SFPLAY_WAITTICKS) - { - if(!x->fp) - { - x->state = SFPLAY_CLOSE; - x->count=1; + x->state = SFPLAY_SKIP; + x->count = SFPLAY_WAITTICKS; + }; + + break; + + + /* in skipmode wait until ready for stop */ + case SFPLAY_SKIP: + + + if(x->count == SFPLAY_WAITTICKS) { + if(!x->fp) { + x->state = SFPLAY_CLOSE; + x->count=1; #ifdef DEBUG_ME - post("skip -> close"); + post("skip -> close"); #endif - break; - } - sfplay_skip(x); + break; } - if(!(x->count--)) - { + sfplay_skip(x); + } + if(!(x->count--)) { #ifdef DEBUG_ME - post("skip -> stop"); + post("skip -> stop"); #endif - x->state = SFPLAY_STOP; - x->count = SFPLAY_WAITTICKS; - }; - break; - - - - case SFPLAY_STOP: /* in stop state mainly waits for play */ - - x->please_stop = 0; - - if(x->please_close) - { - x->state = SFPLAY_CLOSE; - x->count = SFPLAY_WAITTICKS; + x->state = SFPLAY_STOP; + x->count = SFPLAY_WAITTICKS; + }; + break; + + + + case SFPLAY_STOP: /* in stop state mainly waits for play */ + + x->please_stop = 0; + + if(x->please_close) { + x->state = SFPLAY_CLOSE; + x->count = SFPLAY_WAITTICKS; #ifdef DEBUG_ME - post("stop -> close"); + post("stop -> close"); #endif - } - else if(x->skip) - { - x->state = SFPLAY_SKIP; - x->count = SFPLAY_WAITTICKS; + } else if(x->skip) { + x->state = SFPLAY_SKIP; + x->count = SFPLAY_WAITTICKS; #ifdef DEBUG_ME - post("stop -> skip"); + post("stop -> skip"); #endif - } - else if(x->play) - { + } else if(x->play) { #ifdef DEBUG_ME - post("stop -> play"); + post("stop -> play"); #endif - x->state = SFPLAY_PLAY; - } - break; - - - case SFPLAY_PLAY: /* yes play now */ - - - if(!x->play || x->please_stop) - { - - /* if closing dont need o go to stop */ - if(x->please_close) - { - x->state = SFPLAY_CLOSE; - x->count = SFPLAY_WAITTICKS; + x->state = SFPLAY_PLAY; + } + break; + + + case SFPLAY_PLAY: /* yes play now */ + + + if(!x->play || x->please_stop) { + + /* if closing dont need o go to stop */ + if(x->please_close) { + x->state = SFPLAY_CLOSE; + x->count = SFPLAY_WAITTICKS; #ifdef DEBUG_ME - post("play -> close"); + post("play -> close"); #endif - } - else - { - x->state = SFPLAY_STOP; + } else { + x->state = SFPLAY_STOP; #ifdef DEBUG_ME - post("play -> stop"); + post("play -> stop"); #endif - }; - break; - } - - /* should never happen */ - if(!x->filep){ - x->state = SFPLAY_ERROR; - error("sfplay: playing but no buffer ???? play"); - return (w+4+c); + }; + break; + } + + /* should never happen */ + if(!x->filep) { + x->state = SFPLAY_ERROR; + error("sfplay: playing but no buffer ???? play"); + return (w+4+c); + } + + /* first read soundfile 16 bit*/ + if((j=fread(buf,sizeof(short),c*n,x->fp)) < n) { + + outlet_bang(x->bangout); + + if(feof(x->fp)) { + + while (n--) { + for (i=0; i<c; i++) { + if(--j > 0) { + s = *buf++; + if(swap) { + s = ((s & 0xFF)<< 8) | ((s& 0xFF00) >> 8); + } + *out[i]++ = s*(1./32768.); + } else { + *out[i]++ = 0; + } + } + } + + x->state = SFPLAY_STOP; + x->play = 0; + return(w+c+4); } - - /* first read soundfile 16 bit*/ - if((j=fread(buf,sizeof(short),c*n,x->fp)) < n) - { - - outlet_bang(x->bangout); - - if(feof(x->fp)){ - - while (n--) { - for (i=0;i<c;i++) { - if(--j > 0){ - s = *buf++; - if(swap) s = ((s & 0xFF)<< 8) | ((s& 0xFF00) >> 8); - *out[i]++ = s*(1./32768.); - } - else *out[i]++ = 0; - } - } - - x->state = SFPLAY_STOP; - x->play = 0; - return(w+c+4); - } - - /* or error if(ferror()) */ - x->state = SFPLAY_ERROR; - x->count = SFPLAY_WAITTICKS; + + /* or error if(ferror()) */ + x->state = SFPLAY_ERROR; + x->count = SFPLAY_WAITTICKS; #ifdef DEBUG_ME - post("play -> read error"); + post("play -> read error"); #endif - break; - }; - - /* copy 16 Bit to floats and swap if neccesairy */ - while (n--) { - for (i=0;i<c;i++) { - s = *buf++; - if(swap) s = ((s & 0xFF)<< 8) | ((s& 0xFF00) >> 8); - *out[i]++ = s*(1./32768.); - } + break; + }; + + /* copy 16 Bit to floats and swap if neccesairy */ + while (n--) { + for (i=0; i<c; i++) { + s = *buf++; + if(swap) { + s = ((s & 0xFF)<< 8) | ((s& 0xFF00) >> 8); + } + *out[i]++ = s*(1./32768.); } - return (w+c+4); /* dont zero out outs */ - - /* ok read error please close */ - case SFPLAY_ERROR: - - if(!(x->count--)){ - x->state = SFPLAY_CLOSE; - sfplay_close(x); + } + return (w+c+4); /* dont zero out outs */ + + /* ok read error please close */ + case SFPLAY_ERROR: + + if(!(x->count--)) { + x->state = SFPLAY_CLOSE; + sfplay_close(x); #ifdef DEBUG_ME - post("sfplay error reading sf: error -> close"); + post("sfplay error reading sf: error -> close"); #endif - x->count = SFPLAY_WAITTICKS; - } - break; - - /* in close state go to wait afterwards */ - case SFPLAY_CLOSE: - - x->please_close = 0; + x->count = SFPLAY_WAITTICKS; + } + break; + + /* in close state go to wait afterwards */ + case SFPLAY_CLOSE: - /* wait until ready for close operation */ - if(!(x->count--)){ + x->please_close = 0; - x->state = SFPLAY_WAIT; - x->count = SFPLAY_WAITTICKS; - - /* avoid openfiles */ - if(x->fp){fclose(x->fp);x->fp = NULL;}; + /* wait until ready for close operation */ + if(!(x->count--)) { + + x->state = SFPLAY_WAIT; + x->count = SFPLAY_WAITTICKS; + + /* avoid openfiles */ + if(x->fp) { + z_fclose(x->fp); + x->fp = NULL; + }; #ifdef DEBUG_ME - post("sfplay: close -> wait"); + post("sfplay: close -> wait"); #endif - } - break; - - }; /*case */ - - /* zero out outs */ - while (n--) { - for (i=0;i<c;i++) - *out[i]++ = 0.; - }; - - return(w+c+4); + } + break; + + }; /*case */ + + /* zero out outs */ + while (n--) { + for (i=0; i<c; i++) { + *out[i]++ = 0.; + } + }; + + return(w+c+4); } @@ -546,124 +552,146 @@ static void sfplay_dsp(t_sfplay *x, t_signal **sp) { #ifdef DEBUG_ME - post("sfplay: dsp"); + post("sfplay: dsp"); #endif - switch (x->x_channels) { - case 1: - dsp_add(sfplay_perform, 4, x, - sp[0]->s_vec, - sp[1]->s_vec, /* out 1 */ - sp[0]->s_n); - break; - case 2: - dsp_add(sfplay_perform, 5, x, - sp[0]->s_vec, /* out 1*/ - sp[1]->s_vec, /* out 2*/ - sp[2]->s_vec, - sp[0]->s_n); - break; - case 4: - dsp_add(sfplay_perform, 7, x, - sp[0]->s_vec, - sp[1]->s_vec, - sp[2]->s_vec, - sp[3]->s_vec, - sp[4]->s_vec, - sp[0]->s_n); - break; - case 8: - dsp_add(sfplay_perform, 11, x, - sp[0]->s_vec, - sp[1]->s_vec, - sp[2]->s_vec, - sp[3]->s_vec, - sp[4]->s_vec, - sp[5]->s_vec, - sp[6]->s_vec, - sp[7]->s_vec, - sp[8]->s_vec, - sp[0]->s_n); - break; - } + switch (x->x_channels) { + case 1: + dsp_add(sfplay_perform, 4, x, + sp[0]->s_vec, + sp[1]->s_vec, /* out 1 */ + sp[0]->s_n); + break; + case 2: + dsp_add(sfplay_perform, 5, x, + sp[0]->s_vec, /* out 1*/ + sp[1]->s_vec, /* out 2*/ + sp[2]->s_vec, + sp[0]->s_n); + break; + case 4: + dsp_add(sfplay_perform, 7, x, + sp[0]->s_vec, + sp[1]->s_vec, + sp[2]->s_vec, + sp[3]->s_vec, + sp[4]->s_vec, + sp[0]->s_n); + break; + case 8: + dsp_add(sfplay_perform, 11, x, + sp[0]->s_vec, + sp[1]->s_vec, + sp[2]->s_vec, + sp[3]->s_vec, + sp[4]->s_vec, + sp[5]->s_vec, + sp[6]->s_vec, + sp[7]->s_vec, + sp[8]->s_vec, + sp[0]->s_n); + break; + } } /* create sfplay with args <channels> <skip> */ static void *sfplay_new(t_floatarg chan,t_floatarg skip) { - t_sfplay *x = (t_sfplay *)pd_new(sfplay_class); - t_int c = chan; - - switch(c){ - /* ok */ - case 1: case 2: case 4: case 8: break; - /* try it, good luck ... */ - case 3: c = 2; break; - case 5: case 6: case 7: c=7; break; - default: c=1; break; - } - - floatinlet_new(&x->x_obj, &x->offset); /* inlet 2 */ - /* floatinlet_new(&x->x_obj, &x->speed); *//* inlet 3 */ - - x->x_channels = c; - x->x_skip = x->x_offset = skip; - x->offset = 0.; - x->skip = 1; - x->x_speed = 1.0; - x->play = 0; - x->please_stop = 0; - x->please_close = 0; - x->state = SFPLAY_WAIT; - x->count = 0; - x->filename = NULL; - x->fp = NULL; - x->swap = 1; - - while (c--) { - outlet_new(&x->x_obj, gensym("signal")); /* channels outlet */ - } - x->bangout = outlet_new(&x->x_obj, gensym("bang")); - - x->filep = t_getbytes(DACBLKSIZE*sizeof(short)*x->x_channels); - + t_sfplay *x = (t_sfplay *)pd_new(sfplay_class); + t_int c = chan; + + switch(c) { + /* ok */ + case 1: + case 2: + case 4: + case 8: + break; + /* try it, good luck ... */ + case 3: + c = 2; + break; + case 5: + case 6: + case 7: + c=7; + break; + default: + c=1; + break; + } + + floatinlet_new(&x->x_obj, &x->offset); /* inlet 2 */ + /* floatinlet_new(&x->x_obj, &x->speed); *//* inlet 3 */ + + x->x_channels = c; + x->x_skip = x->x_offset = skip; + x->offset = 0.; + x->skip = 1; + x->x_speed = 1.0; + x->play = 0; + x->please_stop = 0; + x->please_close = 0; + x->state = SFPLAY_WAIT; + x->count = 0; + x->filename = NULL; + x->fp = NULL; + x->swap = 1; + + while (c--) { + outlet_new(&x->x_obj, gensym("signal")); /* channels outlet */ + } + x->bangout = outlet_new(&x->x_obj, gensym("bang")); + + x->filep = t_getbytes(DACBLKSIZE*sizeof(short)*x->x_channels); + #ifdef DEBUG_ME - post("get_bytes DACBLKSIZE*%d*%d->%ld",sizeof(short),x->x_channels,x->filep); - post("sfplay: x_channels = %d, x_speed = %f, x_skip = %f",x->x_channels,x->x_speed,x->x_skip); + post("get_bytes DACBLKSIZE*%d*%d->%ld",sizeof(short),x->x_channels, + x->filep); + post("sfplay: x_channels = %d, x_speed = %f, x_skip = %f",x->x_channels, + x->x_speed,x->x_skip); #endif - - return (x); + + return (x); } static void sfplay_free(t_sfplay *x) { - freebytes(x->filep, DACBLKSIZE*sizeof(short)*x->x_channels); + freebytes(x->filep, DACBLKSIZE*sizeof(short)*x->x_channels); } void sfplay_setup(void) { - sfplay_class = class_new(gensym("sfplay"), (t_newmethod)sfplay_new, (t_method)sfplay_free, - sizeof(t_sfplay), 0, A_DEFFLOAT, A_DEFFLOAT,0); - class_addmethod(sfplay_class, nullfn, gensym("signal"), 0); - class_addmethod(sfplay_class, (t_method)sfplay_dsp, gensym("dsp"), A_CANT, 0); - - class_addmethod(sfplay_class, (t_method)sfplay_helper, gensym("help"), A_NULL); - class_sethelpsymbol(sfplay_class, gensym("sf-play_record")); - - /* method open with filename */ - class_addmethod(sfplay_class, (t_method)sfplay_open, gensym("open"), A_SYMBOL,A_SYMBOL,A_NULL); - class_addmethod(sfplay_class, (t_method)sfplay_close, gensym("close"), A_NULL); - - class_addmethod(sfplay_class, (t_method)sfplay_start, gensym("start"), A_NULL); - class_addmethod(sfplay_class, (t_method)sfplay_stop, gensym("stop"), A_NULL); - class_addmethod(sfplay_class, (t_method)sfplay_rewind, gensym("rewind"), A_NULL); - class_addmethod(sfplay_class, (t_method)sfplay_offset, gensym("goto"), A_DEFFLOAT, A_NULL); - - /* start stop with 0 and 1 */ - class_addfloat(sfplay_class, sfplay_float); - /* start with bang */ - class_addbang(sfplay_class,sfplay_bang); + sfplay_class = class_new(gensym("sfplay"), (t_newmethod)sfplay_new, + (t_method)sfplay_free, + sizeof(t_sfplay), 0, A_DEFFLOAT, A_DEFFLOAT,0); + class_addmethod(sfplay_class, nullfn, gensym("signal"), 0); + class_addmethod(sfplay_class, (t_method)sfplay_dsp, gensym("dsp"), 0); + + class_addmethod(sfplay_class, (t_method)sfplay_helper, gensym("help"), + A_NULL); + class_sethelpsymbol(sfplay_class, gensym("sf-play_record")); + + /* method open with filename */ + class_addmethod(sfplay_class, (t_method)sfplay_open, gensym("open"), + A_SYMBOL,A_SYMBOL,A_NULL); + class_addmethod(sfplay_class, (t_method)sfplay_close, gensym("close"), + A_NULL); + + class_addmethod(sfplay_class, (t_method)sfplay_start, gensym("start"), + A_NULL); + class_addmethod(sfplay_class, (t_method)sfplay_stop, gensym("stop"), + A_NULL); + class_addmethod(sfplay_class, (t_method)sfplay_rewind, gensym("rewind"), + A_NULL); + class_addmethod(sfplay_class, (t_method)sfplay_offset, gensym("goto"), + A_DEFFLOAT, A_NULL); + + /* start stop with 0 and 1 */ + class_addfloat(sfplay_class, sfplay_float); + /* start with bang */ + class_addbang(sfplay_class,sfplay_bang); zexy_register("sfplay"); } diff --git a/externals/zexy/src/sfrecord.c b/externals/zexy/src/sfrecord.c index c3d921a292588ef6f23981b8ea9d8694a14c58df..0256281fd78d9fee6d9138cba3e0d0841fbc668d 100644 --- a/externals/zexy/src/sfrecord.c +++ b/externals/zexy/src/sfrecord.c @@ -1,4 +1,4 @@ -/* +/* * sfrecord: multichannel soundfile recorder (try [writesf~] instead) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,18 +7,18 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ /* -sfplay.c - Author: Winfried Ritsch - IEM Graz 10.Mai 99 - +sfplay.c - Author: Winfried Ritsch - IEM Graz 10.Mai 99 - Modified: sfrecord.c - hacked from sfplay ::: 2308:forum::für::umläute:1999 @ iem @@ -55,31 +55,30 @@ zmoelnig@iem.kug.ac.at static t_class *sfrecord_class; -typedef struct _sfrecord -{ - t_object x_obj; - - void* filep; /* pointer to file data read in mem */ - t_symbol* filename; /* filename */ - - /* - because there is no command queue, - flags are used instead - */ - t_int write; /* write: 1, stop: 0 */ - t_int please_stop; /* can be reset only by stop-state itself */ - t_int please_close; /* can be reset only by close-state */ - t_int x_channels; /* channels to write */ - t_float x_offset; /* offset to start writing */ - t_float offset; /* inlet value offset in secs */ - t_float x_skip; /* skip bytes because header */ - t_int skip; /* pending skip if 1 */ - t_float x_speed; /* write speed, not supported in this version */ - t_int size; /* size of file (if memory mapped) */ - t_int swap; /* swap bytes from l->b or b->m */ - FILE *fp; /* file oper non-NULL of open */ - t_int state; /* which state is writer in */ - t_int count; /* count for ticks before next step */ +typedef struct _sfrecord { + t_object x_obj; + + void* filep; /* pointer to file data read in mem */ + t_symbol* filename; /* filename */ + + /* + because there is no command queue, + flags are used instead + */ + t_int write; /* write: 1, stop: 0 */ + t_int please_stop; /* can be reset only by stop-state itself */ + t_int please_close; /* can be reset only by close-state */ + t_int x_channels; /* channels to write */ + t_float x_offset; /* offset to start writing */ + t_float offset; /* inlet value offset in secs */ + t_float x_skip; /* skip bytes because header */ + t_int skip; /* pending skip if 1 */ + t_float x_speed; /* write speed, not supported in this version */ + t_int size; /* size of file (if memory mapped) */ + t_int swap; /* swap bytes from l->b or b->m */ + FILE *fp; /* file oper non-NULL of open */ + t_int state; /* which state is writer in */ + t_int count; /* count for ticks before next step */ } t_sfrecord; @@ -94,67 +93,71 @@ typedef struct _sfrecord #define SFRECORD_WAITTICKS 10 /* 1 tick of 64 Samples is ca.1.5ms on 441000 */ -/* split the os-calls in as many steps as possible +/* split the os-calls in as many steps as possible to split them on different ticks in steps of SFRECORD_WAITTICKS to avoid peak performance */ /* like the one from garray */ -static int sfrecord_am_i_big_endian(void) +static int sfrecord_am_i_big_endian(void) { - unsigned short s = 1; - unsigned char c = *(char *) (&s); + unsigned short s = 1; + unsigned char c = *(char *) (&s); #ifdef DEBUG_ME - post("i am %s-endian", c?"little":"big"); + post("i am %s-endian", c?"little":"big"); #endif - return(c==0); + return(c==0); } static void state_out(t_sfrecord *x, int state) -{ /* outlet the actual state */ - outlet_float(x->x_obj.ob_outlet, state); +{ + /* outlet the actual state */ + outlet_float(x->x_obj.ob_outlet, state); } /* METHOD: "open" file */ -/* this dont use memory map, because I dont know about this on NT ? -Use of the buffered functions fopen, fseek fread fclose instead the +/* this dont use memory map, because I dont know about this on NT ? +Use of the buffered functions fopen, fseek fread fclose instead the non buffered ones open read close */ -static void sfrecord_open(t_sfrecord *x,t_symbol *filename,t_symbol *endian) +static void sfrecord_open(t_sfrecord *x,t_symbol *filename, + t_symbol *endian) { - if(x->state != SFRECORD_WAIT) - { - post("sfrecord: first close %s before open %s",x->filename->s_name,filename->s_name); - return; - } - - /* test if big endian else asume little endian + if(x->state != SFRECORD_WAIT) { + post("sfrecord: first close %s before open %s",x->filename->s_name, + filename->s_name); + return; + } + + /* test if big endian else asume little endian * should be 'l' but could be anything */ - if(sfrecord_am_i_big_endian()) - x->swap = !(endian->s_name[0] == 'b'); - else - x->swap = (endian->s_name[0] == 'b'); - - /* - * skip header after open;; sometimes weŽll have to write a header using the x->skip; so donŽt delete it completely + if(sfrecord_am_i_big_endian()) { + x->swap = !(endian->s_name[0] == 'b'); + } else { + x->swap = (endian->s_name[0] == 'b'); + } + + /* + * skip header after open;; sometimes weŽll have to write a header using the x->skip; so donŽt delete it completely */ /* x->skip = 1; */ - x->filename = filename; + x->filename = filename; #ifdef DEBUG_ME - post("sfrecord: opening %s",x->filename->s_name); + post("sfrecord: opening %s",x->filename->s_name); #endif - if (x->fp != NULL)fclose(x->fp); /* should not happen */ + if (x->fp != NULL) { + z_fclose(x->fp); /* should not happen */ + } - if (!(x->fp = fopen(x->filename->s_name,BINWRITEMODE))) - { - error("sfrecord: can't open %s", x->filename->s_name); - } + if (!(x->fp = z_fopen(x->filename->s_name,BINWRITEMODE))) { + error("sfrecord: can't open %s", x->filename->s_name); + } } @@ -162,35 +165,37 @@ static void sfrecord_open(t_sfrecord *x,t_symbol *filename,t_symbol *endian) /* METHOD: close */ static void sfrecord_close(t_sfrecord *x) { - x->write = 0; - x->please_close = 1; + x->write = 0; + x->please_close = 1; - /* now in state machine - if(x->fp != NULL) - { - fclose(x->fp); - x->fp = NULL; - } - */ + /* now in state machine + if(x->fp != NULL) + { + z_fclose(x->fp); + x->fp = NULL; + } + */ #ifdef DEBUG_ME - post("sfrecord: closing "); + post("sfrecord: closing "); #endif - return; + return; } /* for skipping header of soundfile DonŽt use this for memory map */ static int sfrecord_skip(t_sfrecord *x) { - if(!x->skip) return 0; + if(!x->skip) { + return 0; + } #ifdef DEBUG_ME - post("sfrecord:skip to %f",x->x_skip); + post("sfrecord:skip to %f",x->x_skip); #endif - x->skip = 0; - return 1; + x->skip = 0; + return 1; } /* Input, method for Start stop */ @@ -198,35 +203,42 @@ static int sfrecord_skip(t_sfrecord *x) static void sfrecord_start(t_sfrecord *x) { #ifdef DEBUG_ME - post("sfrecord: start at %d", x->x_offset); + post("sfrecord: start at %d", x->x_offset); #endif - state_out(x, 1); - x->write=1; + state_out(x, 1); + x->write=1; } static void sfrecord_stop(t_sfrecord *x) { #ifdef DEBUG_ME - post("sfrecord: stop"); + post("sfrecord: stop"); #endif - state_out(x, 0); + state_out(x, 0); - x->write=0; - x->please_stop = 1; + x->write=0; + x->please_stop = 1; } static void sfrecord_float(t_sfrecord *x, t_floatarg f) { - int t = f; - if (t) sfrecord_start(x); - else sfrecord_stop(x); + int t = f; + if (t) { + sfrecord_start(x); + } else { + sfrecord_stop(x); + } } /* say what state weŽre in */ static void sfrecord_bang(t_sfrecord* x) { - if (x->state == SFRECORD_WRITE) state_out(x, 1); else state_out(x, 0); + if (x->state == SFRECORD_WRITE) { + state_out(x, 1); + } else { + state_out(x, 0); + } } /* ******************************************************************************** */ @@ -236,229 +248,227 @@ static void sfrecord_bang(t_sfrecord* x) static t_int *sfrecord_perform(t_int *w) { - t_sfrecord* x = (t_sfrecord*)(w[1]); - short* buf = x->filep; - short* bufstart = buf; - int c = x->x_channels; + t_sfrecord* x = (t_sfrecord*)(w[1]); + short* buf = x->filep; + short* bufstart = buf; + int c = x->x_channels; - int i,j,n, s_n; - t_float* in[MAX_CHANS]; + int i,j,n, s_n; + t_float* in[MAX_CHANS]; - short s; - int swap = x->swap; + short s; + int swap = x->swap; - for (i=0;i<c;i++) - in[i] = (t_float *)(w[2+i]); + for (i=0; i<c; i++) { + in[i] = (t_float *)(w[2+i]); + } - n = s_n = (int)(w[2+c]); + n = s_n = (int)(w[2+c]); - /* loop */ + /* loop */ - switch(x->state){ + switch(x->state) { - /* just wait */ - case SFRECORD_WAIT: + /* just wait */ + case SFRECORD_WAIT: - if(x->fp != NULL){ + if(x->fp != NULL) { #ifdef DEBUG_ME - post("wait -> open"); + post("wait -> open"); #endif - x->state = SFRECORD_OPEN; - x->count = SFRECORD_WAITTICKS; - }; - break; + x->state = SFRECORD_OPEN; + x->count = SFRECORD_WAITTICKS; + }; + break; - /* if in open state, already opened but wait for skip */ - case SFRECORD_OPEN: /* file has opened wait some time */ + /* if in open state, already opened but wait for skip */ + case SFRECORD_OPEN: /* file has opened wait some time */ - if(!(x->count--)){ + if(!(x->count--)) { #ifdef DEBUG_ME - post("open -> skip"); + post("open -> skip"); #endif - x->state = SFRECORD_SKIP; - x->count = SFRECORD_WAITTICKS; - }; + x->state = SFRECORD_SKIP; + x->count = SFRECORD_WAITTICKS; + }; - break; + break; - /* in skipmode wait until ready for stop */ - case SFRECORD_SKIP: + /* in skipmode wait until ready for stop */ + case SFRECORD_SKIP: - if(x->count == SFRECORD_WAITTICKS) - { - if(!x->fp) - { - x->state = SFRECORD_CLOSE; - x->count=1; + if(x->count == SFRECORD_WAITTICKS) { + if(!x->fp) { + x->state = SFRECORD_CLOSE; + x->count=1; #ifdef DEBUG_ME - post("skip -> close"); + post("skip -> close"); #endif - break; - } - sfrecord_skip(x); - } - if(!(x->count--)) - { + break; + } + sfrecord_skip(x); + } + if(!(x->count--)) { #ifdef DEBUG_ME - post("skip -> stop"); + post("skip -> stop"); #endif - x->state = SFRECORD_STOP; - x->count = SFRECORD_WAITTICKS; - }; - break; + x->state = SFRECORD_STOP; + x->count = SFRECORD_WAITTICKS; + }; + break; - case SFRECORD_STOP: /* in stop state mainly waits for write */ + case SFRECORD_STOP: /* in stop state mainly waits for write */ - x->please_stop = 0; + x->please_stop = 0; - if(x->please_close) - { - x->state = SFRECORD_CLOSE; - x->count = SFRECORD_WAITTICKS; + if(x->please_close) { + x->state = SFRECORD_CLOSE; + x->count = SFRECORD_WAITTICKS; #ifdef DEBUG_ME - post("stop -> close"); + post("stop -> close"); #endif - } - else if(x->skip) - { - x->state = SFRECORD_SKIP; - x->count = SFRECORD_WAITTICKS; + } else if(x->skip) { + x->state = SFRECORD_SKIP; + x->count = SFRECORD_WAITTICKS; #ifdef DEBUG_ME - post("stop -> skip"); + post("stop -> skip"); #endif - } - else if(x->write) - { + } else if(x->write) { #ifdef DEBUG_ME - post("stop -> write"); + post("stop -> write"); #endif - x->state = SFRECORD_WRITE; - state_out(x, 1); - } - break; - - case SFRECORD_WRITE: /* yes write now */ - - if(!x->write || x->please_stop) - { - /* if closing dont need to go to stop */ - if(x->please_close) { - x->state = SFRECORD_CLOSE; - x->count = SFRECORD_WAITTICKS; + x->state = SFRECORD_WRITE; + state_out(x, 1); + } + break; + + case SFRECORD_WRITE: /* yes write now */ + + if(!x->write || x->please_stop) { + /* if closing dont need to go to stop */ + if(x->please_close) { + x->state = SFRECORD_CLOSE; + x->count = SFRECORD_WAITTICKS; #ifdef DEBUG_ME - post("write -> close"); + post("write -> close"); #endif - state_out(x, 0); + state_out(x, 0); - } - else { - x->state = SFRECORD_STOP; + } else { + x->state = SFRECORD_STOP; #ifdef DEBUG_ME - post("write -> stop"); + post("write -> stop"); #endif - }; - break; - } - - /* should never happen */ - if(!x->filep){ - x->state = SFRECORD_ERROR; - error("sfrecord: writing but no buffer ???? write"); - return (w+4+c); - } - - /* copy float to 16 Bit and swap if neccesairy */ /* LATER treat overflows */ - while (n--) { - for (i=0;i<c;i++) { - s = *in[i]++ * 32768.; - if (swap) s = ((s & 0xFF)<< 8) | ((s& 0xFF00) >> 8); - *buf++ = s; - } - } - - /* then write soundfile 16 bit*/ - if ( (j = fwrite(bufstart, sizeof(short), c*s_n, x->fp)) < 1) { - x->state = SFRECORD_ERROR; - x->count = SFRECORD_WAITTICKS; + }; + break; + } + + /* should never happen */ + if(!x->filep) { + x->state = SFRECORD_ERROR; + error("sfrecord: writing but no buffer ???? write"); + return (w+4+c); + } + + /* copy float to 16 Bit and swap if neccesairy */ /* LATER treat overflows */ + while (n--) { + for (i=0; i<c; i++) { + s = *in[i]++ * 32768.; + if (swap) { + s = ((s & 0xFF)<< 8) | ((s& 0xFF00) >> 8); + } + *buf++ = s; + } + } + + /* then write soundfile 16 bit*/ + if ( (j = fwrite(bufstart, sizeof(short), c*s_n, x->fp)) < 1) { + x->state = SFRECORD_ERROR; + x->count = SFRECORD_WAITTICKS; #ifdef DEBUG_ME - post("write -> write error\t %xd\t%xd\t%d\t%d", x->filep, buf, c*s_n*sizeof(short), j); + post("write -> write error\t %xd\t%xd\t%d\t%d", x->filep, buf, + c*s_n*sizeof(short), j); #endif - break; - } + break; + } #if 0 - if((j=fwrite(buf,sizeof(short),c*n,x->fp)) < (unsigned int) n) - { - if(feof(x->fp)){ - - while (n--) { - for (i=0;i<c;i++) { - if(--j > 0){ - s = *buf++; - if(swap) s = ((s & 0xFF)<< 8) | ((s& 0xFF00) >> 8); - *out[i]++ = s*(1./32768.); - } - else - *out[i]++ = 0; - } - } - } - - x->state = SFRECORD_STOP; - x->write = 0; - return(w+c+3); - } - /* or error if(ferror()) */ - x->state = SFRECORD_ERROR; - x->count = SFRECORD_WAITTICKS; + if((j=fwrite(buf,sizeof(short),c*n,x->fp)) < (unsigned int) n) { + if(feof(x->fp)) { + + while (n--) { + for (i=0; i<c; i++) { + if(--j > 0) { + s = *buf++; + if(swap) { + s = ((s & 0xFF)<< 8) | ((s& 0xFF00) >> 8); + } + *out[i]++ = s*(1./32768.); + } else { + *out[i]++ = 0; + } + } + } + } + + x->state = SFRECORD_STOP; + x->write = 0; + return(w+c+3); + } + /* or error if(ferror()) */ + x->state = SFRECORD_ERROR; + x->count = SFRECORD_WAITTICKS; #ifdef DEBUG_ME - post("write -> write error"); + post("write -> write error"); #endif - break; - }; + break; + }; #endif /* 0 */ - return (w+c+3); /* writing was fine */ + return (w+c+3); /* writing was fine */ - /* ok :?: write error, please close */ - case SFRECORD_ERROR: + /* ok :?: write error, please close */ +case SFRECORD_ERROR: - if(!(x->count--)) { - x->state = SFRECORD_CLOSE; - sfrecord_close(x); + if(!(x->count--)) { + x->state = SFRECORD_CLOSE; + sfrecord_close(x); #ifdef DEBUG_ME - post("sfrecord error writing sf: error -> close"); + post("sfrecord error writing sf: error -> close"); #endif - x->count = SFRECORD_WAITTICKS; - } - break; + x->count = SFRECORD_WAITTICKS; + } + break; - /* in close state go to wait afterwards */ - case SFRECORD_CLOSE: + /* in close state go to wait afterwards */ +case SFRECORD_CLOSE: - x->please_close = 0; + x->please_close = 0; - /* wait until ready for close operation */ - if(!(x->count--)){ + /* wait until ready for close operation */ + if(!(x->count--)) { - x->state = SFRECORD_WAIT; - x->count = SFRECORD_WAITTICKS; + x->state = SFRECORD_WAIT; + x->count = SFRECORD_WAITTICKS; - /* avoid openfiles */ - if(x->fp){fclose(x->fp);x->fp = NULL;}; + /* avoid openfiles */ + if(x->fp) { + z_fclose(x->fp); + x->fp = NULL; + }; #ifdef DEBUG_ME - post("sfrecord: close -> wait"); + post("sfrecord: close -> wait"); #endif - } - break; + } + break; - }; /*case */ +}; /*case */ - return(w+c+3); +return(w+c+3); } @@ -470,139 +480,160 @@ static void sfrecord_dsp(t_sfrecord *x, t_signal **sp) { #ifdef DEBUG_ME - post("sfrecord: dsp"); - post("offset = %f\tspeed = %f\t", x->offset, x->x_speed); + post("sfrecord: dsp"); + post("offset = %f\tspeed = %f\t", x->offset, x->x_speed); #endif - switch (x->x_channels) { - case 1: - dsp_add(sfrecord_perform, 3, x, - sp[0]->s_vec, /* in 1 */ - sp[0]->s_n); - break; - case 2: - dsp_add(sfrecord_perform, 4, x, - sp[0]->s_vec, - sp[1]->s_vec, - sp[0]->s_n); - break; - case 4: - dsp_add(sfrecord_perform, 6, x, - sp[0]->s_vec, - sp[1]->s_vec, - sp[2]->s_vec, - sp[3]->s_vec, - sp[0]->s_n); - break; - case 8: - dsp_add(sfrecord_perform, 9, x, - sp[0]->s_vec, - sp[1]->s_vec, - sp[2]->s_vec, - sp[3]->s_vec, - sp[4]->s_vec, - sp[5]->s_vec, - sp[6]->s_vec, - sp[7]->s_vec, - sp[0]->s_n); - break; - } + switch (x->x_channels) { + case 1: + dsp_add(sfrecord_perform, 3, x, + sp[0]->s_vec, /* in 1 */ + sp[0]->s_n); + break; + case 2: + dsp_add(sfrecord_perform, 4, x, + sp[0]->s_vec, + sp[1]->s_vec, + sp[0]->s_n); + break; + case 4: + dsp_add(sfrecord_perform, 6, x, + sp[0]->s_vec, + sp[1]->s_vec, + sp[2]->s_vec, + sp[3]->s_vec, + sp[0]->s_n); + break; + case 8: + dsp_add(sfrecord_perform, 9, x, + sp[0]->s_vec, + sp[1]->s_vec, + sp[2]->s_vec, + sp[3]->s_vec, + sp[4]->s_vec, + sp[5]->s_vec, + sp[6]->s_vec, + sp[7]->s_vec, + sp[0]->s_n); + break; + } } /* create sfrecord with args <channels> <skip> */ static void *sfrecord_new(t_floatarg chan) { - t_sfrecord *x = (t_sfrecord *)pd_new(sfrecord_class); - t_int c = chan; - - switch(c){ - /* ok */ - case 1: case 2: case 4: case 8: break; - /* try it, good luck ... */ - case 3: c = 2; break; - case 5: case 6: case 7: c=7; break; - default: c=1; break; - } - - outlet_new(&x->x_obj, gensym("float")); - - x->x_channels = c; - x->x_skip = x->x_offset = 0; - x->skip = 1; - x->offset = 0.; - x->x_speed = 1.0; - x->write = 0; - x->please_stop = 0; - x->please_close = 0; - x->state = SFRECORD_WAIT; - x->count = 0; - x->filename = NULL; - x->fp = NULL; - x->swap = 1; - - c--; - - while (c--) { + t_sfrecord *x = (t_sfrecord *)pd_new(sfrecord_class); + t_int c = chan; + + switch(c) { + /* ok */ + case 1: + case 2: + case 4: + case 8: + break; + /* try it, good luck ... */ + case 3: + c = 2; + break; + case 5: + case 6: + case 7: + c=7; + break; + default: + c=1; + break; + } + + outlet_new(&x->x_obj, gensym("float")); + + x->x_channels = c; + x->x_skip = x->x_offset = 0; + x->skip = 1; + x->offset = 0.; + x->x_speed = 1.0; + x->write = 0; + x->please_stop = 0; + x->please_close = 0; + x->state = SFRECORD_WAIT; + x->count = 0; + x->filename = NULL; + x->fp = NULL; + x->swap = 1; + + c--; + + while (c--) { #ifdef DEBUG_ME - post("create extra channel #%d", c); + post("create extra channel #%d", c); #endif - inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); /* channels inlet */ - } + inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), + gensym("signal")); /* channels inlet */ + } - x->filep = t_getbytes(DACBLKSIZE*sizeof(short)*x->x_channels); + x->filep = t_getbytes(DACBLKSIZE*sizeof(short)*x->x_channels); #ifdef DEBUG_ME - post("get_bytes DACBLKSIZE*%d*%d->%ld",sizeof(short),x->x_channels,x->filep); - post("sfrecord: x_channels = %d, x_speed = %f, x_skip = %f",x->x_channels,x->x_speed,x->x_skip); + post("get_bytes DACBLKSIZE*%d*%d->%ld",sizeof(short),x->x_channels, + x->filep); + post("sfrecord: x_channels = %d, x_speed = %f, x_skip = %f",x->x_channels, + x->x_speed,x->x_skip); #endif - return (x); + return (x); } static void sfrecord_helper(void) { - post("\nsfplay :: a raw-data soundfile-recorder"); - post("\ncreation :: sfrecord <channels>\t: channels set the number of channels"); - post("\nopen [<path>]<filename> [<endianity>]\t:: open b(ig) or l(ittle) endian file" - "\nclose\t\t\t:: close file (aka eject)" - "\nstart\t\t\t:: start playing" - "\nstop\t\t\t:: stop playing" - "\nbang\t\t\t:: outputs the current state (1_recording, 0_not-recording)"); - - post("\n\nyou can also start recording with a '1', and stop with a '0'"); + post("\nsfplay :: a raw-data soundfile-recorder"); + post("\ncreation :: sfrecord <channels>\t: channels set the number of channels"); + post("\nopen [<path>]<filename> [<endianity>]\t:: open b(ig) or l(ittle) endian file" + "\nclose\t\t\t:: close file (aka eject)" + "\nstart\t\t\t:: start playing" + "\nstop\t\t\t:: stop playing" + "\nbang\t\t\t:: outputs the current state (1_recording, 0_not-recording)"); + + post("\n\nyou can also start recording with a '1', and stop with a '0'"); } static void sfrecord_free(t_sfrecord *x) { - freebytes(x->filep, DACBLKSIZE*sizeof(short)*x->x_channels); + freebytes(x->filep, DACBLKSIZE*sizeof(short)*x->x_channels); } void sfrecord_setup(void) { - sfrecord_class = class_new(gensym("sfrecord"), (t_newmethod)sfrecord_new, (t_method)sfrecord_free, - sizeof(t_sfrecord), 0, A_DEFFLOAT, A_DEFFLOAT,0); - class_addmethod(sfrecord_class, nullfn, gensym("signal"), 0); - class_addmethod(sfrecord_class, (t_method)sfrecord_dsp, gensym("dsp"), A_CANT, 0); - - /* method open with filename */ - class_addmethod(sfrecord_class, (t_method)sfrecord_open, gensym("open"), A_SYMBOL,A_SYMBOL,A_NULL); - class_addmethod(sfrecord_class, (t_method)sfrecord_close, gensym("close"), A_NULL); - - class_addmethod(sfrecord_class, (t_method)sfrecord_start, gensym("start"), A_NULL); - class_addmethod(sfrecord_class, (t_method)sfrecord_stop, gensym("stop"), A_NULL); - - /* start/stop with 0/1 */ - class_addfloat(sfrecord_class, sfrecord_float); - - /* bang out the current-state to the outlet*/ - class_addbang(sfrecord_class,sfrecord_bang); - - /* some help */ - class_addmethod(sfrecord_class, (t_method)sfrecord_helper, gensym("help"), A_NULL); - class_sethelpsymbol(sfrecord_class, gensym("sf-play_record")); + sfrecord_class = class_new(gensym("sfrecord"), (t_newmethod)sfrecord_new, + (t_method)sfrecord_free, + sizeof(t_sfrecord), 0, A_DEFFLOAT, A_DEFFLOAT,0); + class_addmethod(sfrecord_class, nullfn, gensym("signal"), 0); + class_addmethod(sfrecord_class, (t_method)sfrecord_dsp, gensym("dsp"), 0); + + /* method open with filename */ + class_addmethod(sfrecord_class, (t_method)sfrecord_open, gensym("open"), + A_SYMBOL,A_SYMBOL,A_NULL); + class_addmethod(sfrecord_class, (t_method)sfrecord_close, gensym("close"), + A_NULL); + + class_addmethod(sfrecord_class, (t_method)sfrecord_start, gensym("start"), + A_NULL); + class_addmethod(sfrecord_class, (t_method)sfrecord_stop, gensym("stop"), + A_NULL); + + /* start/stop with 0/1 */ + class_addfloat(sfrecord_class, sfrecord_float); + + /* bang out the current-state to the outlet*/ + class_addbang(sfrecord_class,sfrecord_bang); + + /* some help */ + class_addmethod(sfrecord_class, (t_method)sfrecord_helper, gensym("help"), + A_NULL); + class_sethelpsymbol(sfrecord_class, gensym("sf-play_record")); zexy_register("sfrecord"); } diff --git a/externals/zexy/src/sgn~.c b/externals/zexy/src/sgn~.c index 1b5ab96cfb45303a5af3fa3f8c7d69ac9ff51211..5dda84e93d75754e5f9cdc64fc8b2b6eaf9fe13d 100644 --- a/externals/zexy/src/sgn~.c +++ b/externals/zexy/src/sgn~.c @@ -1,4 +1,4 @@ -/* +/* * sgn~: sign of a signal * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,20 +7,19 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "zexySIMD.h" -typedef struct _sgnTilde -{ +typedef struct _sgnTilde { t_object x_obj; } t_sgnTilde; @@ -37,11 +36,15 @@ static t_int *sgnTilde_perform(t_int *w) t_sample x; while (n--) { x=*in++; - if (x>0.) *out++=1.; - else if (x<0.) *out++=-1.; - else *out++=0.; + if (x>0.) { + *out++=1.; + } else if (x<0.) { + *out++=-1.; + } else { + *out++=0.; + } } - + return (w+4); } static t_int *sgnTilde_perform8(t_int *w) @@ -51,26 +54,74 @@ static t_int *sgnTilde_perform8(t_int *w) int n = (int)(w[3])>>3; t_sample x; - while(n--){ + while(n--) { /* weirdly enough, the if/else/if/else is a lot faster than ()?:(()?:) */ - if ((x=in[0])>0.) out[0]=1.; else if(x<0.) out[0]=-1.; else out[0]=0.; - if ((x=in[1])>0.) out[1]=1.; else if(x<0.) out[1]=-1.; else out[1]=0.; - if ((x=in[2])>0.) out[2]=1.; else if(x<0.) out[2]=-1.; else out[2]=0.; - if ((x=in[3])>0.) out[3]=1.; else if(x<0.) out[3]=-1.; else out[3]=0.; - if ((x=in[4])>0.) out[4]=1.; else if(x<0.) out[4]=-1.; else out[4]=0.; - if ((x=in[5])>0.) out[5]=1.; else if(x<0.) out[5]=-1.; else out[5]=0.; - if ((x=in[6])>0.) out[6]=1.; else if(x<0.) out[6]=-1.; else out[6]=0.; - if ((x=in[7])>0.) out[7]=1.; else if(x<0.) out[7]=-1.; else out[7]=0.; + if ((x=in[0])>0.) { + out[0]=1.; + } else if(x<0.) { + out[0]=-1.; + } else { + out[0]=0.; + } + if ((x=in[1])>0.) { + out[1]=1.; + } else if(x<0.) { + out[1]=-1.; + } else { + out[1]=0.; + } + if ((x=in[2])>0.) { + out[2]=1.; + } else if(x<0.) { + out[2]=-1.; + } else { + out[2]=0.; + } + if ((x=in[3])>0.) { + out[3]=1.; + } else if(x<0.) { + out[3]=-1.; + } else { + out[3]=0.; + } + if ((x=in[4])>0.) { + out[4]=1.; + } else if(x<0.) { + out[4]=-1.; + } else { + out[4]=0.; + } + if ((x=in[5])>0.) { + out[5]=1.; + } else if(x<0.) { + out[5]=-1.; + } else { + out[5]=0.; + } + if ((x=in[6])>0.) { + out[6]=1.; + } else if(x<0.) { + out[6]=-1.; + } else { + out[6]=0.; + } + if ((x=in[7])>0.) { + out[7]=1.; + } else if(x<0.) { + out[7]=-1.; + } else { + out[7]=0.; + } in+=8; out+=8; } - + return (w+4); } #ifdef __SSE__ -static int l_bitmask[]={0x80000000, 0x80000000, 0x80000000, 0x80000000}; /* sign bitmask */ +static int l_bitmask[]= {0x80000000, 0x80000000, 0x80000000, 0x80000000}; /* sign bitmask */ static t_int *sgnTilde_performSSE(t_int *w) { __m128 *in = (__m128 *)(w[1]); @@ -111,14 +162,17 @@ static void sgnTilde_dsp(t_sgnTilde *x, t_signal **sp) { #ifdef __SSE__ if( - ZEXY_TYPE_EQUAL(t_sample, float) && /* currently SSE2 code is only for float (not for double) */ - zexy_testSSE(sgnTilde_perform, - sgnTilde_performSSE, - 1,1) - ) - { - dsp_add(sgnTilde_performSSE, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); - } else + Z_SIMD_CHKBLOCKSIZE(sp[0]->s_n) && + Z_SIMD_CHKALIGN(sp[0]->s_vec) && + Z_SIMD_CHKALIGN(sp[1]->s_vec) && + ZEXY_TYPE_EQUAL(t_sample, float) + && /* currently SSE2 code is only for float (not for double) */ + zexy_testSSE(sgnTilde_perform, + sgnTilde_performSSE, + 1,1) + ) { + dsp_add(sgnTilde_performSSE, 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); + } else #endif if (sp[0]->s_n & 7) { dsp_add(sgnTilde_perform , 3, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n); @@ -130,14 +184,14 @@ static void sgnTilde_dsp(t_sgnTilde *x, t_signal **sp) static void sgnTilde_helper(void) { - post("\n"HEARTSYMBOL" sgn~ \t\t:: sign of a signal"); + post("\n"HEARTSYMBOL " sgn~ \t\t:: sign of a signal"); } static void *sgnTilde_new(void) { t_sgnTilde *x = (t_sgnTilde *)pd_new(sgnTilde_class); outlet_new(&x->x_obj, gensym("signal")); - + return (x); } @@ -146,9 +200,10 @@ void sgn_tilde_setup(void) sgnTilde_class = class_new(gensym("sgn~"), (t_newmethod)sgnTilde_new, 0, sizeof(t_sgnTilde), 0, A_DEFFLOAT, 0); class_addmethod(sgnTilde_class, nullfn, gensym("signal"), 0); - class_addmethod(sgnTilde_class, (t_method)sgnTilde_dsp, gensym("dsp"), A_CANT, 0); - - class_addmethod(sgnTilde_class, (t_method)sgnTilde_helper, gensym("help"), 0); + class_addmethod(sgnTilde_class, (t_method)sgnTilde_dsp, gensym("dsp"), 0); + + class_addmethod(sgnTilde_class, (t_method)sgnTilde_helper, gensym("help"), + 0); class_sethelpsymbol(sgnTilde_class, gensym("zigbinops")); zexy_register("sgn~"); } diff --git a/externals/zexy/src/sigzero~.c b/externals/zexy/src/sigzero~.c index b675eea2b71236a1a7509d54f3a7f44ed866ac6e..1364382cc86ff2343ae11550cf1df3fcb0320977 100644 --- a/externals/zexy/src/sigzero~.c +++ b/externals/zexy/src/sigzero~.c @@ -1,4 +1,4 @@ -/* +/* * sigzero~: detect whether an entire signal vector is 0 * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -28,8 +28,7 @@ static t_class *sigzero_class; -typedef struct _sigzero -{ +typedef struct _sigzero { t_object x_obj; int activate; int current; /* 0 == (signalblock == 0); 1==(signalblock != 0) */ @@ -59,13 +58,12 @@ static t_int *sigzero_perform(t_int *w) int non_zero = 0; if (x->activate) { - while (n--) - { - if (*in++ != 0.) { - non_zero = 1; - break; - } + while (n--) { + if (*in++ != 0.) { + non_zero = 1; + break; } + } if (non_zero != x->current) { outlet_float(x->x_obj.ob_outlet, x->current = non_zero); } @@ -81,7 +79,7 @@ static void sigzero_dsp(t_sigzero *x, t_signal **sp) static void sigzero_tilde_helper(void) { - post("\n"HEARTSYMBOL" sigzero~-object :: for detecting whether a signal is currently zero or not"); + post("\n"HEARTSYMBOL " sigzero~-object :: for detecting whether a signal is currently zero or not"); post("'bang'\t: turn the detector on\n" "'off'\t: turn it off\n" "<1/0>\t: turn it on/off\n" @@ -106,8 +104,9 @@ void sigzero_tilde_setup(void) class_addmethod(sigzero_class, (t_method)sigzero_off, gensym("off"), 0); class_addmethod(sigzero_class, nullfn, gensym("signal"), 0); - class_addmethod(sigzero_class, (t_method)sigzero_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(sigzero_class, (t_method)sigzero_dsp, gensym("dsp"), 0); - class_addmethod(sigzero_class, (t_method)sigzero_tilde_helper, gensym("help"), 0); + class_addmethod(sigzero_class, (t_method)sigzero_tilde_helper, + gensym("help"), 0); zexy_register("sigzero~"); } diff --git a/externals/zexy/src/sleepgrain.c b/externals/zexy/src/sleepgrain.c index 8805ff8cd9bc329b3a77a724cf9f42fa533fb00f..8fe75ce9bf28bacc9b2042b4caae9e19153b996e 100644 --- a/externals/zexy/src/sleepgrain.c +++ b/externals/zexy/src/sleepgrain.c @@ -1,4 +1,4 @@ -/* +/* * sleepgrain : get (and set?) the sleepgrain of Pd * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -26,8 +26,7 @@ EXTERN int* get_sys_sleepgrain(void ) ; static t_class *sleepgrain_class; -typedef struct _sleepgrain -{ +typedef struct _sleepgrain { t_object x_obj; } t_sleepgrain; @@ -64,9 +63,10 @@ static void *sleepgrain_new(void) void sleepgrain_setup(void) { - sleepgrain_class = class_new(gensym("sleepgrain"), (t_newmethod)sleepgrain_new, - 0, sizeof(t_sleepgrain), 0, A_NULL); - + sleepgrain_class = class_new(gensym("sleepgrain"), + (t_newmethod)sleepgrain_new, + 0, sizeof(t_sleepgrain), 0, A_NULL); + class_addbang (sleepgrain_class, sleepgrain_bang); class_addfloat (sleepgrain_class, sleepgrain_float); zexy_register("sleepgrain"); diff --git a/externals/zexy/src/sort.c b/externals/zexy/src/sort.c index 0850445d27aa8e04db75d6170952908716799077..e0574a788147a3fe194d47da8d497a99040411c9 100644 --- a/externals/zexy/src/sort.c +++ b/externals/zexy/src/sort.c @@ -1,4 +1,4 @@ -/* +/* * sort : sort a list of floats * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -27,8 +27,7 @@ static t_class *sort_class; -typedef struct _sort -{ +typedef struct _sort { t_object x_obj; int bufsize; @@ -53,8 +52,12 @@ static void sort_buffer(t_sort *x, int argc, t_atom *argv) t_atom *atombuf = argv; if (argc != x->bufsize) { - if (x->buffer) freebytes(x->buffer, x->bufsize * sizeof(t_float)); - if (x->indices)freebytes(x->indices, x->bufsize * sizeof(t_int)); + if (x->buffer) { + freebytes(x->buffer, x->bufsize * sizeof(t_float)); + } + if (x->indices) { + freebytes(x->indices, x->bufsize * sizeof(t_int)); + } x->bufsize = argc; x->buffer = getbytes(x->bufsize * sizeof(t_float)); @@ -62,7 +65,7 @@ static void sort_buffer(t_sort *x, int argc, t_atom *argv) } buf = x->buffer; - while (n--){ + while (n--) { *buf++ = atom_getfloat(atombuf++); x->indices[n] = n; } @@ -101,17 +104,25 @@ static void sort_list(t_sort *x, t_symbol *s, int argc, t_atom *argv) } } - if (x->ascending) - for (n = 0; n < argc; n++) SETFLOAT(&atombuf[n], idx[n]); + if (x->ascending) + for (n = 0; n < argc; n++) { + SETFLOAT(&atombuf[n], idx[n]); + } else - for (n = 0, i=argc-1; n < argc; n++, i--) SETFLOAT(&atombuf[n], idx[i]); + for (n = 0, i=argc-1; n < argc; n++, i--) { + SETFLOAT(&atombuf[n], idx[i]); + } outlet_list(x->indexOut , gensym("list"), n, atombuf); - if (x->ascending) - for (n = 0; n < argc; n++) SETFLOAT(&atombuf[n], buf[n]); + if (x->ascending) + for (n = 0; n < argc; n++) { + SETFLOAT(&atombuf[n], buf[n]); + } else - for (n = 0, i=argc-1; n < argc; n++, i--) SETFLOAT(&atombuf[n], buf[i]); + for (n = 0, i=argc-1; n < argc; n++, i--) { + SETFLOAT(&atombuf[n], buf[i]); + } outlet_list(x->sortedOut, gensym("list"), n, atombuf); @@ -129,22 +140,24 @@ static void *sort_new(t_floatarg f) x->bufsize = 0; x->buffer = NULL; - inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("direction")); + inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), + gensym("direction")); return (x); } static void sort_help(t_sort*x) { - post("\n"HEARTSYMBOL" sort\t\t:: sort a list of numbers"); + post("\n"HEARTSYMBOL " sort\t\t:: sort a list of numbers"); } void sort_setup(void) { - sort_class = class_new(gensym("sort"), (t_newmethod)sort_new, + sort_class = class_new(gensym("sort"), (t_newmethod)sort_new, 0, sizeof(t_sort), 0, A_DEFFLOAT, 0); - + class_addlist (sort_class, sort_list); - class_addmethod (sort_class, (t_method)sort_dir, gensym("direction"), A_DEFFLOAT, 0); + class_addmethod (sort_class, (t_method)sort_dir, gensym("direction"), + A_DEFFLOAT, 0); class_addmethod(sort_class, (t_method)sort_help, gensym("help"), A_NULL); zexy_register("sort"); diff --git a/externals/zexy/src/step~.c b/externals/zexy/src/step~.c index 8407a1373a6702e0760fbe5079071686f2277f3f..6fed675d7684779f5d976f66081e4d746fd48f9e 100644 --- a/externals/zexy/src/step~.c +++ b/externals/zexy/src/step~.c @@ -1,4 +1,4 @@ -/* +/* * step~: unity step function * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,18 +7,18 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ /* - step~ : will make a unity step at a desired point in the signal-vector; the second input specifies a + step~ : will make a unity step at a desired point in the signal-vector; the second input specifies a length: after the so-specified time has elapsed, the step will toggle back to the previous value; the length can be passed as an argument when creating the object @@ -31,12 +31,11 @@ #include "zexy.h" -/* ------------------------ step~ ----------------------------- */ +/* ------------------------ step~ ----------------------------- */ static t_class *step_class; -typedef struct _step -{ +typedef struct _step { t_object x_obj; int position; int length; @@ -54,10 +53,10 @@ static void step_bang(t_step *x) static void step_float(t_step *x, t_float where) { - x->wait4stop = x->length + - (x->wait4start = - (x->position = (where>0)*where) - ); + x->wait4stop = x->length + + (x->wait4start = + (x->position = (where>0)*where) + ); } static void step_setlength(t_step *x, t_float arg) @@ -77,15 +76,17 @@ static t_int *step_perform(t_int *w) int wait4start = x->wait4start, wait4stop = x->wait4stop; - while (n--) - { - wait4stop--; - if (!wait4start--) toggle ^= 1; - else if (!wait4stop) toggle ^= 1; - - *out++ = toggle; + while (n--) { + wait4stop--; + if (!wait4start--) { + toggle ^= 1; + } else if (!wait4stop) { + toggle ^= 1; } + *out++ = toggle; + } + x->wait4start = wait4start; x->wait4stop = wait4stop; @@ -101,7 +102,7 @@ static void step_dsp(t_step *x, t_signal **sp) static void step_helper(void) { - post(""HEARTSYMBOL" step~-object :: generates a unity-step"); + post(""HEARTSYMBOL " step~-object :: generates a unity-step"); post("creation : \"dirac~ [<position> [<length>]]\" : create a rectangular window\n" "\t\t\tat specified position and with specified length (in samples)\n" "inlet1\t: <position>\t: create a rectangular window at new position\n" @@ -127,16 +128,17 @@ static void *step_new(t_floatarg farg) return (x); } - + void step_tilde_setup(void) { step_class = class_new(gensym("step~"), (t_newmethod)step_new, 0, sizeof(t_step), 0, A_DEFFLOAT, 0); class_addfloat(step_class, step_float); - class_addbang(step_class, step_bang); - class_addmethod(step_class, (t_method)step_setlength, gensym("ft1"), A_FLOAT, 0); - class_addmethod(step_class, (t_method)step_dsp, gensym("dsp"), A_CANT, 0); + class_addbang(step_class, step_bang); + class_addmethod(step_class, (t_method)step_setlength, gensym("ft1"), + A_FLOAT, 0); + class_addmethod(step_class, (t_method)step_dsp, gensym("dsp"), 0); class_addmethod(step_class, (t_method)step_helper, gensym("help"), 0); diff --git a/externals/zexy/src/strcmp.c b/externals/zexy/src/strcmp.c index bf5a4dcd7c46ab0ba41ef20a51f0d993ea0b8aab..69fe95357598adc14308a948335b2e99f8695935 100644 --- a/externals/zexy/src/strcmp.c +++ b/externals/zexy/src/strcmp.c @@ -1,4 +1,4 @@ -/* +/* * strcmp : compare 2 lists as if they were strings * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -29,8 +29,7 @@ static t_class *strcmp_class; static t_class *strcmp_proxy_class; -typedef struct _strcmp -{ +typedef struct _strcmp { t_object x_obj; struct _strcmp_proxy *x_proxy; @@ -39,8 +38,7 @@ typedef struct _strcmp int n1, n2; } t_strcmp; -typedef struct _strcmp_proxy -{ +typedef struct _strcmp_proxy { t_pd p_pd; t_strcmp *p_master; t_inlet *p_in; @@ -49,26 +47,31 @@ typedef struct _strcmp_proxy static void strcmp_bang(t_strcmp *x) { int result = 0; - if(x->str1){ - if(x->str2) + if(x->str1) { + if(x->str2) { result = strcmp(x->str1, x->str2); - else + } else { result = *x->str1; + } } else { - if(x->str2) + if(x->str2) { result = -*x->str2; - else + } else { result = 0; + } } outlet_float(x->x_obj.ob_outlet, result); } -static void list2binbuf(t_binbuf**bbuf, int *n, char**str, int argc, t_atom*argv) +static void list2binbuf(t_binbuf**bbuf, int *n, char**str, int argc, + t_atom*argv) { int i=0; char*s=0; - if(*str&&*n)freebytes(*str, *n); + if(*str&&*n) { + freebytes(*str, *n); + } binbuf_clear(*bbuf); binbuf_add(*bbuf, argc, argv); @@ -76,40 +79,51 @@ static void list2binbuf(t_binbuf**bbuf, int *n, char**str, int argc, t_atom*argv i=*n; s=*str; - if(' '==s[i])s[i]=0; + if(' '==s[i]) { + s[i]=0; + } } -static void strcmp_list(t_strcmp *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void strcmp_list(t_strcmp *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { list2binbuf(&x->bbuf1, &x->n1, &x->str1, argc, argv); strcmp_bang(x); } static void strcmp_symbol(t_strcmp *x, t_symbol *s) { - if(x->str1&&x->n1)freebytes(x->str1, x->n1); + if(x->str1&&x->n1) { + freebytes(x->str1, x->n1); + } x->n1=0; x->str1=s->s_name; strcmp_bang(x); } -static void strcmp_secondlist(t_strcmp *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void strcmp_secondlist(t_strcmp *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { list2binbuf(&x->bbuf2, &x->n2, &x->str2, argc, argv); } static void strcmp_secondsymbol(t_strcmp *x, t_symbol *s) { - if(x->str2&&x->n2)freebytes(x->str2, x->n2); + if(x->str2&&x->n2) { + freebytes(x->str2, x->n2); + } x->n2=0; x->str2=s->s_name; } -static void strcmp_proxy_list(t_strcmp_proxy *y, t_symbol *s, int argc, t_atom *argv) +static void strcmp_proxy_list(t_strcmp_proxy *y, t_symbol *s, int argc, + t_atom *argv) { strcmp_secondlist(y->p_master, s, argc, argv); } static void strcmp_proxy_symbol(t_strcmp_proxy *y, t_symbol *s) { - if(s)strcmp_secondsymbol(y->p_master, s); + if(s) { + strcmp_secondsymbol(y->p_master, s); + } } static void *strcmp_new(t_symbol* UNUSED(s), int argc, t_atom *argv) @@ -130,7 +144,9 @@ static void *strcmp_new(t_symbol* UNUSED(s), int argc, t_atom *argv) x->n1=0; x->n2=0; - if(argc)strcmp_secondlist(x, gensym("list"), argc, argv); + if(argc) { + strcmp_secondlist(x, gensym("list"), argc, argv); + } return (x); } @@ -139,8 +155,12 @@ static void strcmp_free(t_strcmp *x) { binbuf_free(x->bbuf1); binbuf_free(x->bbuf2); - if(x->str1&&x->n1)freebytes(x->str1, x->n1); - if(x->str2&&x->n2)freebytes(x->str2, x->n2); + if(x->str1&&x->n1) { + freebytes(x->str1, x->n1); + } + if(x->str2&&x->n2) { + freebytes(x->str2, x->n2); + } inlet_free(x->x_proxy->p_in); x->x_proxy->p_master=0; @@ -150,14 +170,14 @@ static void strcmp_free(t_strcmp *x) static void strcmp_help(t_strcmp*x) { - post("\n"HEARTSYMBOL" strcmp\t\t:: compare to lists as strings"); + post("\n"HEARTSYMBOL " strcmp\t\t:: compare to lists as strings"); } void strcmp_setup(void) { - strcmp_class = class_new(gensym("strcmp"), (t_newmethod)strcmp_new, - (t_method)strcmp_free, sizeof(t_strcmp), 0, A_GIMME, 0); + strcmp_class = class_new(gensym("strcmp"), (t_newmethod)strcmp_new, + (t_method)strcmp_free, sizeof(t_strcmp), 0, A_GIMME, 0); class_addbang (strcmp_class, strcmp_bang); class_addsymbol (strcmp_class, strcmp_symbol); @@ -168,6 +188,7 @@ void strcmp_setup(void) CLASS_PD | CLASS_NOINLET, 0); class_addsymbol(strcmp_proxy_class, strcmp_proxy_symbol); class_addlist(strcmp_proxy_class, strcmp_proxy_list); - class_addmethod(strcmp_class, (t_method)strcmp_help, gensym("help"), A_NULL); + class_addmethod(strcmp_class, (t_method)strcmp_help, gensym("help"), + A_NULL); zexy_register("strcmp"); } diff --git a/externals/zexy/src/sum.c b/externals/zexy/src/sum.c index 606e082cc500abecc147f174a21be6d9fd9b7afa..419b9d06cf1ed7dbe311200dca050e30b416a07a 100644 --- a/externals/zexy/src/sum.c +++ b/externals/zexy/src/sum.c @@ -1,4 +1,4 @@ -/* +/* * sum :: the sum of a list of floats * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -21,8 +21,7 @@ static t_class *sum_class; -typedef struct _sum -{ +typedef struct _sum { t_object x_obj; } t_sum; @@ -30,7 +29,9 @@ static void sum_list(t_sum *x, t_symbol* UNUSED(s), int argc, t_atom *argv) { t_float sum = 0.f; - while(argc--)sum+=atom_getfloat(argv++); + while(argc--) { + sum+=atom_getfloat(argv++); + } outlet_float(x->x_obj.ob_outlet,sum); } @@ -52,7 +53,7 @@ static void sum_help(void) void sum_setup(void) { sum_class = class_new(gensym("sum"), (t_newmethod)sum_new, 0, - sizeof(t_sum), 0, A_DEFFLOAT, 0); + sizeof(t_sum), 0, A_DEFFLOAT, 0); class_addlist(sum_class, (t_method)sum_list); class_addmethod(sum_class, (t_method)sum_help, gensym("help"), 0); diff --git a/externals/zexy/src/swap~.c b/externals/zexy/src/swap~.c index 189e6cf2a7131960368571d795095c2067ddd03f..c82b383e3fc658dc147a2d9bc246c191d79bad43 100644 --- a/externals/zexy/src/swap~.c +++ b/externals/zexy/src/swap~.c @@ -1,4 +1,4 @@ -/* +/* * swap~: byteswap a 16bit signal * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -32,8 +32,7 @@ static t_class *swap_class; -typedef struct _swap -{ +typedef struct _swap { t_object x_obj; int swapper; } t_swap; @@ -56,13 +55,16 @@ static t_int *swap_perform(t_int *w) int n = (int)(w[4]); - if (x->swapper) + if (x->swapper) while (n--) { - short dummy = FLOAT2SHORT * *in++; - *out++ = SHORT2FLOAT * (short)( ((dummy & 0xFF) << 8) | ((dummy & 0xFF00) >> 8) ); + short dummy = FLOAT2SHORT **in++; + *out++ = SHORT2FLOAT * (short)( ((dummy & 0xFF) << 8) | (( + dummy & 0xFF00) >> 8) ); } - else while (n--) *out++ = *in++; - + else while (n--) { + *out++ = *in++; + } + return (w+5); } @@ -73,7 +75,7 @@ static void swap_dsp(t_swap *x, t_signal **sp) static void swap_helper(void) { - post("\n"HEARTSYMBOL" swap~-object for byteswapping a signal"); + post("\n"HEARTSYMBOL " swap~-object for byteswapping a signal"); post("<1/0> : turn the swapper on/off\n" "'bang' : toggle the swapper on/off\n" "'help' : view this\n" @@ -92,13 +94,13 @@ static void *swap_new(void) void swap_tilde_setup(void) { swap_class = class_new(gensym("swap~"), (t_newmethod)swap_new, 0, - sizeof(t_swap), 0, A_NULL); + sizeof(t_swap), 0, A_NULL); class_addmethod(swap_class, nullfn, gensym("signal"), 0); - class_addmethod(swap_class, (t_method)swap_dsp, gensym("dsp"), A_CANT, 0); - + class_addmethod(swap_class, (t_method)swap_dsp, gensym("dsp"), 0); + class_addfloat(swap_class, swap_float); class_addbang(swap_class, swap_bang); - + class_addmethod(swap_class, (t_method)swap_helper, gensym("help"), 0); zexy_register("swap~"); } diff --git a/externals/zexy/src/symbol2list.c b/externals/zexy/src/symbol2list.c index 5d7e74a5fe87c695ffeeb3c4ddea30b4b40a3968..935b2be2e8344d179adb41deae75a61e0c5cdd37 100644 --- a/externals/zexy/src/symbol2list.c +++ b/externals/zexy/src/symbol2list.c @@ -1,4 +1,4 @@ -/* +/* * symbol2list: convert a symbol into a list (with given delimiters) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -25,19 +25,21 @@ static t_class *symbol2list_class; -typedef struct _symbol2list -{ +typedef struct _symbol2list { t_object x_obj; t_symbol *s, *delimiter; t_atom *argv; - int argc, argnum; /* "argnum" is the number of reserved atoms (might be >argc) */ + int argc, + argnum; /* "argnum" is the number of reserved atoms (might be >argc) */ } t_symbol2list; -static void symbol2list_delimiter(t_symbol2list *x, t_symbol *s){ +static void symbol2list_delimiter(t_symbol2list *x, t_symbol *s) +{ x->delimiter = s; } -STATIC_INLINE void string2atom(t_atom *ap, char* cp, int clen){ +STATIC_INLINE void string2atom(t_atom *ap, char* cp, int clen) +{ char *buffer=getbytes(sizeof(char)*(clen+1)); char *endptr[1]; t_float ftest; @@ -49,9 +51,9 @@ STATIC_INLINE void string2atom(t_atom *ap, char* cp, int clen){ * symbol "hallo 0x12" will become "list hallo 18" * do we want this ?? */ - if (buffer+clen!=*endptr){ + if (buffer+clen!=*endptr) { /* strtof() failed, we have a symbol */ - SETSYMBOL(ap, gensym(buffer)); + SETSYMBOL(ap, gensym(buffer)); } else { /* it is a number. */ SETFLOAT(ap,ftest); @@ -66,39 +68,41 @@ static void symbol2list_process(t_symbol2list *x) char *cp, *d; int i=1; - if (x->s==NULL){ + if (x->s==NULL) { x->argc=0; return; } cc=x->s->s_name; cp=cc; - - if (x->delimiter==NULL || x->delimiter==gensym("")){ + + if (x->delimiter==NULL || x->delimiter==gensym("")) { i=strlen(cc); - if(x->argnum<i){ + if(x->argnum<i) { freebytes(x->argv, x->argnum*sizeof(t_atom)); x->argnum=i+10; x->argv=getbytes(x->argnum*sizeof(t_atom)); } x->argc=i; - while(i--)string2atom(x->argv+i, cc+i, 1); + while(i--) { + string2atom(x->argv+i, cc+i, 1); + } return; } deli=x->delimiter->s_name; dell=strlen(deli); - + /* get the number of tokens */ - while((d=strstr(cp, deli))){ - if (d!=NULL && d!=cp){ + while((d=strstr(cp, deli))) { + if (d!=NULL && d!=cp) { i++; } cp=d+dell; } /* resize the list-buffer if necessary */ - if(x->argnum<i){ + if(x->argnum<i) { freebytes(x->argv, x->argnum*sizeof(t_atom)); x->argnum=i+10; x->argv=getbytes(x->argnum*sizeof(t_atom)); @@ -106,29 +110,37 @@ static void symbol2list_process(t_symbol2list *x) x->argc=i; /* parse the tokens into the list-buffer */ i=0; - - /* find the first token */ - cp=cc; - while(cp==(d=strstr(cp,deli))){cp+=dell;} - while((d=strstr(cp, deli))){ - if(d!=cp){ - string2atom(x->argv+i, cp, d-cp); - i++; - } - cp=d+dell; + + /* find the first token */ + cp=cc; + while(cp==(d=strstr(cp,deli))) { + cp+=dell; + } + while((d=strstr(cp, deli))) { + if(d!=cp) { + string2atom(x->argv+i, cp, d-cp); + i++; } + cp=d+dell; + } - if(cp)string2atom(x->argv+i, cp, strlen(cp)); + if(cp) { + string2atom(x->argv+i, cp, strlen(cp)); + } } -static void symbol2list_bang(t_symbol2list *x){ - if(!(x->s) || x->s==gensym("")){ +static void symbol2list_bang(t_symbol2list *x) +{ + if(!(x->s) || x->s==gensym("")) { outlet_bang(x->x_obj.ob_outlet); return; } symbol2list_process(x); - if(x->argc)outlet_list(x->x_obj.ob_outlet, 0, x->argc, x->argv); + if(x->argc) { + outlet_list(x->x_obj.ob_outlet, 0, x->argc, x->argv); + } } -static void symbol2list_symbol(t_symbol2list *x, t_symbol *s){ +static void symbol2list_symbol(t_symbol2list *x, t_symbol *s) +{ x->s = s; symbol2list_bang(x); } @@ -143,7 +155,7 @@ static void *symbol2list_new(t_symbol* UNUSED(s), int argc, t_atom *argv) x->argnum=16; x->argv=getbytes(x->argnum*sizeof(t_atom)); symbol2list_delimiter(x, (argc)?atom_getsymbol(argv):gensym(" ")); - + return (x); } @@ -152,19 +164,22 @@ static void symbol2list_free(t_symbol2list *x) static void symbol2list_help(t_symbol2list*x) { - post("\n"HEARTSYMBOL" symbol2list\t:: split a symbol into a list of atoms"); + post("\n"HEARTSYMBOL " symbol2list\t:: split a symbol into a list of atoms"); } void symbol2list_setup(void) { - symbol2list_class = class_new(gensym("symbol2list"), (t_newmethod)symbol2list_new, - (t_method)symbol2list_free, sizeof(t_symbol2list), 0, A_GIMME, 0); + symbol2list_class = class_new(gensym("symbol2list"), + (t_newmethod)symbol2list_new, + (t_method)symbol2list_free, sizeof(t_symbol2list), 0, A_GIMME, 0); class_addcreator((t_newmethod)symbol2list_new, gensym("s2l"), A_GIMME, 0); class_addsymbol (symbol2list_class, symbol2list_symbol); class_addbang (symbol2list_class, symbol2list_bang); - class_addmethod (symbol2list_class, (t_method)symbol2list_delimiter, gensym(""), A_SYMBOL, 0); - class_addmethod(symbol2list_class, (t_method)symbol2list_help, gensym("help"), A_NULL); + class_addmethod (symbol2list_class, (t_method)symbol2list_delimiter, + gensym(""), A_SYMBOL, 0); + class_addmethod(symbol2list_class, (t_method)symbol2list_help, + gensym("help"), A_NULL); zexy_register("symbol2list"); } diff --git a/externals/zexy/src/tabdump.c b/externals/zexy/src/tabdump.c index ad1b86f488457736d5da1ee1598864b5f2e25beb..03ef0614b7c9cb67906ab263758f7b645a05b5c8 100644 --- a/externals/zexy/src/tabdump.c +++ b/externals/zexy/src/tabdump.c @@ -1,4 +1,4 @@ -/* +/* * tabdump: get the content of a table as a list of floats * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -23,8 +23,7 @@ static t_class *tabdump_class; -typedef struct _tabdump -{ +typedef struct _tabdump { t_object x_obj; t_symbol *x_arrayname; t_int startindex, stopindex; @@ -36,32 +35,38 @@ static void tabdump_bang(t_tabdump *x) int npoints; zarray_t *vec; - if (!(A = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) + if (!(A = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) { error("%s: no such array", x->x_arrayname->s_name); - else if (!zarray_getarray(A, &npoints, &vec)) + } else if (!zarray_getarray(A, &npoints, &vec)) { error("%s: bad template for tabdump", x->x_arrayname->s_name); - else - { - int n; - t_atom *atombuf; - - int start=x->startindex; - int stop =x->stopindex; - if(start<0||start>stop)start=0; - if(stop<start||stop>npoints)stop=npoints; - npoints=stop-start; - - atombuf = (t_atom *)getbytes(sizeof(t_atom)*npoints); - for (n = 0; n < npoints; n++) SETFLOAT(&atombuf[n], zarray_getfloat(vec, start+n)); - outlet_list(x->x_obj.ob_outlet, gensym("list"), npoints, atombuf); - freebytes(atombuf,sizeof(t_atom)*npoints); + } else { + int n; + t_atom *atombuf; + + int start=x->startindex; + int stop =x->stopindex; + if(start<0||start>stop) { + start=0; + } + if(stop<start||stop>npoints) { + stop=npoints; } + npoints=stop-start; + + atombuf = (t_atom *)getbytes(sizeof(t_atom)*npoints); + for (n = 0; n < npoints; n++) { + SETFLOAT(&atombuf[n], zarray_getfloat(vec, start+n)); + } + outlet_list(x->x_obj.ob_outlet, gensym("list"), npoints, atombuf); + freebytes(atombuf,sizeof(t_atom)*npoints); + } } -static void tabdump_list(t_tabdump *x, t_symbol* UNUSED(s),int argc, t_atom*argv) +static void tabdump_list(t_tabdump *x, t_symbol* UNUSED(s),int argc, + t_atom*argv) { int a,b; - switch(argc){ + switch(argc) { case 2: a=atom_getint(argv); b=atom_getint(argv+1); @@ -92,7 +97,7 @@ static void *tabdump_new(t_symbol *s) static void tabdump_helper(void) { - post("\n"HEARTSYMBOL" tabdump - object : dumps a table as a package of floats"); + post("\n"HEARTSYMBOL " tabdump - object : dumps a table as a package of floats"); post("'set <table>'\t: read out another table\n" "'bang'\t\t: dump the table\n" "outlet\t\t: table-data as package of floats"); @@ -103,13 +108,14 @@ static void tabdump_helper(void) void tabdump_setup(void) { tabdump_class = class_new(gensym("tabdump"), (t_newmethod)tabdump_new, - 0, sizeof(t_tabdump), 0, A_DEFSYM, 0); + 0, sizeof(t_tabdump), 0, A_DEFSYM, 0); class_addbang(tabdump_class, (t_method)tabdump_bang); class_addlist(tabdump_class, (t_method)tabdump_list); class_addmethod(tabdump_class, (t_method)tabdump_set, gensym("set"), - A_SYMBOL, 0); + A_SYMBOL, 0); - class_addmethod(tabdump_class, (t_method)tabdump_helper, gensym("help"), 0); + class_addmethod(tabdump_class, (t_method)tabdump_helper, gensym("help"), + 0); zexy_register("tabdump"); } diff --git a/externals/zexy/src/tabminmax.c b/externals/zexy/src/tabminmax.c index 8353ae3d78ea28de6ec7a54cc74af1427d720b15..89d8026cbe0b88eaaa348d8416dd50087dc68578 100644 --- a/externals/zexy/src/tabminmax.c +++ b/externals/zexy/src/tabminmax.c @@ -1,4 +1,4 @@ -/* +/* * tabminmax: get minimum and maximum of a table * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -24,8 +24,7 @@ static t_class *tabminmax_class; -typedef struct _tabminmax -{ +typedef struct _tabminmax { t_object x_obj; t_outlet*min_out, *max_out; t_symbol *x_arrayname; @@ -38,55 +37,59 @@ static void tabminmax_bang(t_tabminmax *x) int npoints; zarray_t *vec; - if (!(A = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) + if (!(A = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) { error("%s: no such array", x->x_arrayname->s_name); - else if (!zarray_getarray(A, &npoints, &vec)) + } else if (!zarray_getarray(A, &npoints, &vec)) { error("%s: bad template for tabminmax", x->x_arrayname->s_name); - else - { - int n; - t_atom atombuf[2]; - t_float min, max; - int mindex, maxdex; - - int start=x->startindex; - int stop =x->stopindex; - if(start<0||start>stop)start=0; - if(stop<start||stop>npoints)stop=npoints; - npoints=stop-start; - - min=zarray_getfloat(vec, start); - max=min; - - mindex=start; - maxdex=start; - - for (n = 1; n < npoints; n++){ - t_float val=zarray_getfloat(vec, start+n); - if(val<min){ - mindex=start+n; - min=val; - } - if(val>max){ - maxdex=start+n; - max=val; - } + } else { + int n; + t_atom atombuf[2]; + t_float min, max; + int mindex, maxdex; + + int start=x->startindex; + int stop =x->stopindex; + if(start<0||start>stop) { + start=0; + } + if(stop<start||stop>npoints) { + stop=npoints; + } + npoints=stop-start; + + min=zarray_getfloat(vec, start); + max=min; + + mindex=start; + maxdex=start; + + for (n = 1; n < npoints; n++) { + t_float val=zarray_getfloat(vec, start+n); + if(val<min) { + mindex=start+n; + min=val; + } + if(val>max) { + maxdex=start+n; + max=val; } - - SETFLOAT(atombuf, max); - SETFLOAT(atombuf+1, maxdex); - outlet_list(x->max_out, gensym("list"), 2, atombuf); - - SETFLOAT(atombuf, min); - SETFLOAT(atombuf+1, mindex); - outlet_list(x->min_out, gensym("list"), 2, atombuf); } + + SETFLOAT(atombuf, max); + SETFLOAT(atombuf+1, maxdex); + outlet_list(x->max_out, gensym("list"), 2, atombuf); + + SETFLOAT(atombuf, min); + SETFLOAT(atombuf+1, mindex); + outlet_list(x->min_out, gensym("list"), 2, atombuf); + } } -static void tabminmax_list(t_tabminmax *x, t_symbol* UNUSED(s),int argc, t_atom*argv) +static void tabminmax_list(t_tabminmax *x, t_symbol* UNUSED(s),int argc, + t_atom*argv) { int a,b; - switch(argc){ + switch(argc) { case 2: a=atom_getint(argv); b=atom_getint(argv+1); @@ -118,7 +121,7 @@ static void *tabminmax_new(t_symbol *s) static void tabminmax_helper(void) { - post("\n"HEARTSYMBOL" tabminmax - object : dumps a table as a package of floats"); + post("\n"HEARTSYMBOL " tabminmax - object : dumps a table as a package of floats"); post("'set <table>'\t: read out another table\n" "'bang'\t\t: get min and max of the table\n" "outlet\t\t: table-data as package of floats"); @@ -128,14 +131,16 @@ static void tabminmax_helper(void) void tabminmax_setup(void) { - tabminmax_class = class_new(gensym("tabminmax"), (t_newmethod)tabminmax_new, - 0, sizeof(t_tabminmax), 0, A_DEFSYM, 0); + tabminmax_class = class_new(gensym("tabminmax"), + (t_newmethod)tabminmax_new, + 0, sizeof(t_tabminmax), 0, A_DEFSYM, 0); class_addbang(tabminmax_class, (t_method)tabminmax_bang); class_addlist(tabminmax_class, (t_method)tabminmax_list); class_addmethod(tabminmax_class, (t_method)tabminmax_set, gensym("set"), - A_SYMBOL, 0); + A_SYMBOL, 0); - class_addmethod(tabminmax_class, (t_method)tabminmax_helper, gensym("help"), 0); + class_addmethod(tabminmax_class, (t_method)tabminmax_helper, + gensym("help"), 0); zexy_register("tabminmax"); } diff --git a/externals/zexy/src/tabread4~~.c b/externals/zexy/src/tabread4~~.c index 375df38668800067096ff5b5dda97049a11bb209..96d2003deb920f0da66db09f5b6b745e1779218c 100644 --- a/externals/zexy/src/tabread4~~.c +++ b/externals/zexy/src/tabread4~~.c @@ -1,4 +1,4 @@ -/* +/* * tabread4~~: a tabread with 2 inputs for higher precision * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -25,8 +25,7 @@ static t_class *tabread4_tilde_class; -typedef struct _tabread4_tilde -{ +typedef struct _tabread4_tilde { t_object x_obj; int x_npoints; zarray_t *x_vec; @@ -53,64 +52,66 @@ static t_int *tabread4_tilde_perform(t_int *w) t_sample *in = (t_sample *)(w[2]); t_sample *in1 = (t_sample *)(w[3]); t_sample *out = (t_sample *)(w[4]); - int n = (int)(w[5]); + int n = (int)(w[5]); int maxindex; zarray_t *buf = x->x_vec, *wp; int i; - + maxindex = x->x_npoints - 3; - if (!buf){ - while (n--) *out++ = 0; + if (!buf) { + while (n--) { + *out++ = 0; + } return (w+6); } - for (i = 0; i < n; i++) - { - t_sample in0_s=*in++; - t_sample in1_s=*in1++; - double findex = (double)in0_s + (double)in1_s; - long int index = findex; - double frac; - t_sample a, b, c, d, cminusb; - if (index < 1) - index = 1, frac = 0; - else if (index > maxindex) - index = maxindex, frac = 1; - else frac = findex - index; - - wp = buf + index; - - a = zarray_getfloat(wp,-1); - b = zarray_getfloat(wp, 0); - c = zarray_getfloat(wp, 1); - d = zarray_getfloat(wp, 2); - - cminusb = c-b; - *out++ = b + frac * ( - cminusb - 0.1666667f * (1.-frac) * ( - (d - a - 3.0f * cminusb) * frac + (d + 2.0f*a - 3.0f*b) - ) - ); + for (i = 0; i < n; i++) { + t_sample in0_s=*in++; + t_sample in1_s=*in1++; + double findex = (double)in0_s + (double)in1_s; + long int index = findex; + double frac; + t_sample a, b, c, d, cminusb; + if (index < 1) { + index = 1, frac = 0; + } else if (index > maxindex) { + index = maxindex, frac = 1; + } else { + frac = findex - index; } + + wp = buf + index; + + a = zarray_getfloat(wp,-1); + b = zarray_getfloat(wp, 0); + c = zarray_getfloat(wp, 1); + d = zarray_getfloat(wp, 2); + + cminusb = c-b; + *out++ = b + frac * ( + cminusb - 0.1666667f * (1.-frac) * ( + (d - a - 3.0f * cminusb) * frac + (d + 2.0f*a - 3.0f*b) + ) + ); + } return (w+6); } static void tabread4_tilde_set(t_tabread4_tilde *x, t_symbol *s) { t_garray *a; - + x->x_arrayname = s; - if (!(a = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) - { - if (*s->s_name) - pd_error(x, "tabread4~~: %s: no such array", x->x_arrayname->s_name); - x->x_vec = 0; - } - else if (!zarray_getarray(a, &x->x_npoints, &x->x_vec)) - { - pd_error(x, "%s: bad template for tabread4~~", x->x_arrayname->s_name); - x->x_vec = 0; + if (!(a = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) { + if (*s->s_name) { + pd_error(x, "tabread4~~: %s: no such array", x->x_arrayname->s_name); } - else garray_usedindsp(a); + x->x_vec = 0; + } else if (!zarray_getarray(a, &x->x_npoints, &x->x_vec)) { + pd_error(x, "%s: bad template for tabread4~~", x->x_arrayname->s_name); + x->x_vec = 0; + } else { + garray_usedindsp(a); + } } static void tabread4_tilde_dsp(t_tabread4_tilde *x, t_signal **sp) @@ -133,7 +134,7 @@ void tabread4_tilde_tilde_setup(void) sizeof(t_tabread4_tilde), 0, A_DEFSYM, 0); CLASS_MAINSIGNALIN(tabread4_tilde_class, t_tabread4_tilde, x_f); class_addmethod(tabread4_tilde_class, (t_method)tabread4_tilde_dsp, - gensym("dsp"), A_CANT, 0); + gensym("dsp"), 0); class_addmethod(tabread4_tilde_class, (t_method)tabread4_tilde_set, gensym("set"), A_SYMBOL, 0); diff --git a/externals/zexy/src/tabset.c b/externals/zexy/src/tabset.c index f7b0eec9304e844a88a639008ddef41b341d25c5..70b87a04fdf07d90c466f290203bfa5cd4f43fd5 100644 --- a/externals/zexy/src/tabset.c +++ b/externals/zexy/src/tabset.c @@ -1,4 +1,4 @@ -/* +/* * tabset: set a table with a list of floats * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -26,8 +26,7 @@ static t_class *tabset_class; -typedef struct _tabset -{ +typedef struct _tabset { t_object x_obj; t_symbol *x_arrayname; } t_tabset; @@ -38,12 +37,12 @@ static void tabset_float(t_tabset *x, t_floatarg f) int npoints; zarray_t *vec; - if (!(A = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) + if (!(A = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) { error("%s: no such array", x->x_arrayname->s_name); - else if (!zarray_getarray(A, &npoints, &vec)) + } else if (!zarray_getarray(A, &npoints, &vec)) { error("%s: bad template for tabset", x->x_arrayname->s_name); - else { - while(npoints--){ + } else { + while(npoints--) { zarray_setfloat(vec, 0, f); vec++; } @@ -51,31 +50,32 @@ static void tabset_float(t_tabset *x, t_floatarg f) } } -static void tabset_list(t_tabset *x, t_symbol* UNUSED(s), int argc, t_atom* argv) +static void tabset_list(t_tabset *x, t_symbol* UNUSED(s), int argc, + t_atom* argv) { t_garray *A; int npoints; zarray_t *vec; - if (!(A = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) + if (!(A = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class))) { error("%s: no such array", x->x_arrayname->s_name); - else if (!zarray_getarray(A, &npoints, &vec)) + } else if (!zarray_getarray(A, &npoints, &vec)) { error("%s: bad template for tabset", x->x_arrayname->s_name); - else { + } else { if (argc>=npoints) - while(npoints--){ + while(npoints--) { t_float f= atom_getfloat(argv++); zarray_setfloat(vec, 0, f); vec++; } else { npoints-=argc; - while (argc--){ + while (argc--) { t_float f= atom_getfloat(argv++); zarray_setfloat(vec, 0, f); vec++; } - while (npoints--){ + while (npoints--) { zarray_setfloat(vec, 0, 0); vec++; } @@ -98,7 +98,7 @@ static void *tabset_new(t_symbol *s) static void tabset_helper(void) { - post("\n"HEARTSYMBOL" tabset - object : set a table with a package of floats"); + post("\n"HEARTSYMBOL " tabset - object : set a table with a package of floats"); post("'set <table>'\t: set another table\n" "<list>\t\t: set the table" "<float>\t\t: set the table to constant float\n"); @@ -108,11 +108,11 @@ static void tabset_helper(void) void tabset_setup(void) { tabset_class = class_new(gensym("tabset"), (t_newmethod)tabset_new, - 0, sizeof(t_tabset), 0, A_DEFSYM, 0); + 0, sizeof(t_tabset), 0, A_DEFSYM, 0); class_addfloat(tabset_class, (t_method)tabset_float); class_addlist (tabset_class, (t_method)tabset_list); class_addmethod(tabset_class, (t_method)tabset_set, gensym("set"), - A_SYMBOL, 0); + A_SYMBOL, 0); class_addmethod(tabset_class, (t_method)tabset_helper, gensym("help"), 0); zexy_register("tabset"); diff --git a/externals/zexy/src/tavg~.c b/externals/zexy/src/tavg~.c index 26712975b42f5de214c85886f60b3043134930e9..6d5ef51d4d17d6abdd97fab12871143a36fca035 100644 --- a/externals/zexy/src/tavg~.c +++ b/externals/zexy/src/tavg~.c @@ -1,4 +1,4 @@ -/* +/* * tavg~: arithmetic mean between last and current 'bang' (triggered average on signals) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -21,8 +21,7 @@ static t_class *tavg_class; -typedef struct _tavg -{ +typedef struct _tavg { t_object x_obj; t_sample n_inv; t_sample buf; @@ -47,7 +46,9 @@ static t_int *tavg_perform(t_int *w) int n = (int)(w[3]); t_sample buf = x->buf; - while (n--) buf += *in++; + while (n--) { + buf += *in++; + } x->buf = buf; x->blocks++; return (w+4); @@ -77,7 +78,7 @@ void tavg_tilde_setup(void) tavg_class = class_new(gensym("tavg~"), (t_newmethod)tavg_new, 0, sizeof(t_tavgtilde), 0, A_DEFFLOAT, 0); class_addmethod(tavg_class, nullfn, gensym("signal"), 0); - class_addmethod(tavg_class, (t_method)tavg_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(tavg_class, (t_method)tavg_dsp, gensym("dsp"), 0); class_addbang(tavg_class, tavg_bang); diff --git a/externals/zexy/src/time.c b/externals/zexy/src/time.c index 9db619590e484c09ee41484ae8d534364b5cfcf1..71317ab97a82d2a6bb4373e4380bf7c163cabf8b 100644 --- a/externals/zexy/src/time.c +++ b/externals/zexy/src/time.c @@ -1,4 +1,4 @@ -/* +/* * time:: gets the current time from the system * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,18 +7,18 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ -/* - * 1506:forum::für::umläute:2003: use timeb only if needed (like on windoze) +/* + * 1506:forum::für::umläute:2003: use timeb only if needed (like on windoze) */ #include "zexy.h" @@ -45,12 +45,11 @@ static t_class *time_class; -typedef struct _time -{ +typedef struct _time { t_object x_obj; - + int GMT; - + t_outlet *x_outlet1; t_outlet *x_outlet2; t_outlet *x_outlet3; @@ -61,19 +60,20 @@ static void *time_new(t_symbol* UNUSED(s), int argc, t_atom *argv) { t_time *x = (t_time *)pd_new(time_class); char buf[5]; - + x->GMT=0; if (argc) { atom_string(argv, buf, 5); - if (buf[0]=='G' && buf[1]=='M' && buf[2]=='T') + if (buf[0]=='G' && buf[1]=='M' && buf[2]=='T') { x->GMT = 1; + } } - + x->x_outlet1 = outlet_new(&x->x_obj, gensym("float")); x->x_outlet2 = outlet_new(&x->x_obj, gensym("float")); x->x_outlet3 = outlet_new(&x->x_obj, gensym("float")); x->x_outlet4 = outlet_new(&x->x_obj, gensym("float")); - + return (x); } @@ -94,13 +94,13 @@ static void time_bang(t_time *x) #endif outlet_float(x->x_outlet4, (t_float)(ms)); outlet_float(x->x_outlet3, (t_float)resolvetime->tm_sec); - outlet_float(x->x_outlet2, (t_float)resolvetime->tm_min); + outlet_float(x->x_outlet2, (t_float)resolvetime->tm_min); outlet_float(x->x_outlet1, (t_float)resolvetime->tm_hour); } static void help_time(t_time* UNUSED(x)) { - post("\n"HEARTSYMBOL" time\t\t:: get the current system time"); + post("\n"HEARTSYMBOL " time\t\t:: get the current system time"); post("\noutputs are\t: hour / minute / sec / msec"); post("\ncreation\t:: 'time [GMT]': show local time or GMT"); } @@ -108,11 +108,11 @@ static void help_time(t_time* UNUSED(x)) void time_setup(void) { time_class = class_new(gensym("time"), - (t_newmethod)time_new, 0, - sizeof(t_time), 0, A_GIMME, 0); - + (t_newmethod)time_new, 0, + sizeof(t_time), 0, A_GIMME, 0); + class_addbang(time_class, time_bang); - + class_addmethod(time_class, (t_method)help_time, gensym("help"), 0); zexy_register("time"); } diff --git a/externals/zexy/src/unpack.c b/externals/zexy/src/unpack.c index baf52469d250a8fb86eb720aa0fc8bebdf9905bc..79986166c5f6904f5f6ad64fb17eb26531299330 100644 --- a/externals/zexy/src/unpack.c +++ b/externals/zexy/src/unpack.c @@ -1,4 +1,4 @@ -/* +/* * unpack: a type-agnostic version of [unpack] * * (c) 2007-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -34,8 +34,7 @@ static t_class *zunpack_class; -typedef struct _zunpack -{ +typedef struct _zunpack { t_object x_obj; t_outlet**x_out; t_int x_numouts; @@ -74,7 +73,7 @@ static void zunpack_free(t_zunpack *x) freebytes(x->x_out, x->x_numouts*sizeof(t_outlet*)); x->x_numouts=0; - x->x_out=0; + x->x_out=0; } static void *zunpack_new(t_symbol*s, int argc, t_atom*argv) @@ -82,22 +81,22 @@ static void *zunpack_new(t_symbol*s, int argc, t_atom*argv) t_zunpack *x = (t_zunpack *)pd_new(zunpack_class); int count=(argc>0)?argc:2; int i=0; - + x->x_numouts=count; x->x_out=(t_outlet**)getbytes(count*sizeof(t_outlet*)); for(i=0; i<count; i++) { x->x_out[i] =outlet_new(&x->x_obj, 0); - } + } return (x); } void zunpack_setup(void) { - - zunpack_class = class_new(gensym("zexy/unpack"), - (t_newmethod)zunpack_new, (t_method)zunpack_free, sizeof(t_zunpack), + + zunpack_class = class_new(gensym("zexy/unpack"), + (t_newmethod)zunpack_new, (t_method)zunpack_free, sizeof(t_zunpack), 0, A_GIMME, 0); #if 0 /* oops Pd-0.42 allows us to override built-ins diff --git a/externals/zexy/src/unpack~.c b/externals/zexy/src/unpack~.c index 040ce64fb55a665edc5fb1e26ef9271113069587..091f9d362ada8390aec598ad3f0776aea9a4b569 100644 --- a/externals/zexy/src/unpack~.c +++ b/externals/zexy/src/unpack~.c @@ -1,4 +1,4 @@ -/* +/* * unpack~ :: convert (list-of-) float inputs to signals * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -21,8 +21,7 @@ static t_class *sigunpack_class; -typedef struct _sigunpack -{ +typedef struct _sigunpack { t_object x_obj; t_sample *buffer; t_sample *rp, *wp; @@ -34,19 +33,24 @@ static void sigunpack_float(t_sigunpack *x, t_float f) { if (x->wp + 1 != x->rp) { *(x->wp)++ = f; - if (x->wp == x->buffer + x->bufsize) x->wp = x->buffer; + if (x->wp == x->buffer + x->bufsize) { + x->wp = x->buffer; + } } } -static void sigunpack_list(t_sigunpack *x, t_symbol *s, int argc, t_atom *argv) +static void sigunpack_list(t_sigunpack *x, t_symbol *s, int argc, + t_atom *argv) { t_atom *ap = argv; int i; for (i = 0, ap = argv; i < argc; ap++, i++) { if (x->wp + 1 != x->rp) { *(x->wp)++ = atom_getfloat(ap); - if (x->wp == x->buffer + x->bufsize) x->wp = x->buffer; - } + if (x->wp == x->buffer + x->bufsize) { + x->wp = x->buffer; + } + } } } @@ -60,10 +64,16 @@ static t_int *sigunpack_perform(t_int *w) t_sample *buf = x->rp; int hitchhike = 0; - if ((x->wp >= x->rp) && (x->wp < x->rp+n)) hitchhike=1; + if ((x->wp >= x->rp) && (x->wp < x->rp+n)) { + hitchhike=1; + } x->rp += n; - if (x->rp == x->buffer + x->bufsize) x->rp = x->buffer; - if (hitchhike) x->wp = x->rp; + if (x->rp == x->buffer + x->bufsize) { + x->rp = x->buffer; + } + if (hitchhike) { + x->wp = x->rp; + } while (n--) { *out++ = *buf; @@ -93,8 +103,12 @@ static void *sigunpack_new(t_floatarg f) int suggestedsize = (int)f; int bufsize; - if (!suggestedsize) bufsize = 64; - else bufsize = (suggestedsize % 64)?(64*(1+(int)(suggestedsize/64))):suggestedsize; + if (!suggestedsize) { + bufsize = 64; + } else { + bufsize = (suggestedsize % 64)?(64*(1+(int)(suggestedsize/64))): + suggestedsize; + } x->buffer = (t_sample *)getbytes(bufsize * sizeof(*x->buffer)); x->bufsize = bufsize; @@ -112,13 +126,16 @@ static void sigunpack_help(void) void unpack_tilde_setup(void) { - sigunpack_class = class_new(gensym("unpack~"), (t_newmethod)sigunpack_new, 0, + sigunpack_class = class_new(gensym("unpack~"), (t_newmethod)sigunpack_new, + 0, sizeof(t_sigunpack), 0, A_DEFFLOAT, 0); - class_addmethod(sigunpack_class, (t_method)sigunpack_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(sigunpack_class, (t_method)sigunpack_dsp, gensym("dsp"), + 0); class_addfloat(sigunpack_class, (t_method)sigunpack_float); class_addlist (sigunpack_class, (t_method)sigunpack_list); - class_addmethod(sigunpack_class, (t_method)sigunpack_help, gensym("help"), 0); + class_addmethod(sigunpack_class, (t_method)sigunpack_help, gensym("help"), + 0); zexy_register("unpack~"); } diff --git a/externals/zexy/src/urn.c b/externals/zexy/src/urn.c index 602fd133119c0de6b9b9e84dc8ee7f26204439b1..a7dc2f04f4702a8be1c903bbf418e7db6078a1bc 100644 --- a/externals/zexy/src/urn.c +++ b/externals/zexy/src/urn.c @@ -1,4 +1,4 @@ -/* +/* * urn : "generate random numbers without duplicates" (very max-like) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -23,13 +23,13 @@ static t_class *urn_class; -typedef struct _urn -{ +typedef struct _urn { t_object x_obj; unsigned int x_seed; /* the seed of the generator */ unsigned int x_range; /* max. random-number + 1 */ - unsigned int x_count; /* how many random numbers have we generated ? */ + unsigned int + x_count; /* how many random numbers have we generated ? */ char *x_state; /* has this number been generated already ? */ t_outlet *x_floatout, *x_bangout; @@ -45,7 +45,9 @@ static int makeseed(void) static void makestate(t_urn *x, unsigned int newrange) { - if (x->x_range == newrange)return; + if (x->x_range == newrange) { + return; + } if (x->x_range && x->x_state) { freebytes(x->x_state, sizeof(char)*x->x_range); @@ -60,8 +62,12 @@ static void urn_clear(t_urn *x) { unsigned int i=x->x_range; char *dummy=x->x_state; - if (!dummy || !i)return; - while(i--)*dummy++=0; + if (!dummy || !i) { + return; + } + while(i--) { + *dummy++=0; + } x->x_count=0; } static void urn_bang(t_urn *x) @@ -71,17 +77,21 @@ static void urn_bang(t_urn *x) unsigned int nval=0, used=1; - if (x->x_count>=range){ + if (x->x_count>=range) { outlet_bang(x->x_bangout); - if (x->x_noauto)return; + if (x->x_noauto) { + return; + } urn_clear(x); } while (used) { randval = randval * 472940017 + 832416023; nval = ((double)range) * ((double)randval) - * (1./4294967296.); - if (nval >= range) nval = range-1; + * (1./4294967296.); + if (nval >= range) { + nval = range-1; + } used=x->x_state[nval]; } @@ -116,16 +126,20 @@ static void *urn_new(t_symbol* UNUSED(s), int argc, t_atom *argv) x->x_seed = makeseed(); x->x_noauto = 0; - while(argc--){ + while(argc--) { if (argv->a_type==A_SYMBOL) { if (atom_getsymbol(argv)==gensym("no_auto")) { - x->x_noauto=1; + x->x_noauto=1; } - } else f = atom_getfloat(argv); + } else { + f = atom_getfloat(argv); + } argv++; } - if (f<1.0)f=1.0; + if (f<1.0) { + f=1.0; + } makestate(x, f); x->x_range = f; urn_clear(x); @@ -135,19 +149,20 @@ static void *urn_new(t_symbol* UNUSED(s), int argc, t_atom *argv) static void urn_help(t_urn*x) { - post("\n"HEARTSYMBOL" urn\t\t:: generate randum numbers without repetition"); + post("\n"HEARTSYMBOL " urn\t\t:: generate randum numbers without repetition"); } void urn_setup(void) { - urn_class = class_new(gensym("urn"), (t_newmethod)urn_new, - 0, sizeof(t_urn), 0, A_GIMME, 0); - + urn_class = class_new(gensym("urn"), (t_newmethod)urn_new, + 0, sizeof(t_urn), 0, A_GIMME, 0); + class_addbang (urn_class, urn_bang); class_addmethod(urn_class, (t_method)urn_clear, gensym("clear"), 0); class_addmethod(urn_class, (t_method)urn_flt2, gensym(""), A_DEFFLOAT, 0); - class_addmethod(urn_class, (t_method)urn_seed, gensym("seed"), A_DEFFLOAT, 0); - + class_addmethod(urn_class, (t_method)urn_seed, gensym("seed"), A_DEFFLOAT, + 0); + class_addmethod(urn_class, (t_method)urn_help, gensym("help"), A_NULL); zexy_register("urn"); diff --git a/externals/zexy/src/winNT_portio.c b/externals/zexy/src/winNT_portio.c index 1138ca7120c583eaeca1264ecdf5d2cd68a2993b..b514912c58108cbc5b9649c5d2239747ce4bae20 100644 --- a/externals/zexy/src/winNT_portio.c +++ b/externals/zexy/src/winNT_portio.c @@ -19,17 +19,17 @@ static BOOL bPrivException = FALSE; int read_parport(int port) { - unsigned char value; + unsigned char value; #ifdef _MSC_VER - __asm mov edx,port - __asm in al,dx - __asm mov value,al + __asm mov edx,port + __asm in al,dx + __asm mov value,al #else - /* hmm, i should read some documentation about inline assembler */ - post("lpt: cannot read from parport (recompile!)"); - return 0; + /* hmm, i should read some documentation about inline assembler */ + post("lpt: cannot read from parport (recompile!)"); + return 0; #endif - return (int)value; + return (int)value; } void write_parport(int port, int invalue) @@ -41,88 +41,88 @@ void write_parport(int port, int invalue) __asm mov al,value __asm out dx,al #else - /* - * hmm, i should read some documentation about inline assembler - * and probably about assembler in general... - */ - post("lpt: cannot write to parport (recompile!)"); - /* - asm( - "mov %%edx,%0\n" - "mov %%al,%1\n" - "out %%dx,%%al\n" - : - : "a"(port),"b"(value) - ); - */ + /* + * hmm, i should read some documentation about inline assembler + * and probably about assembler in general... + */ + post("lpt: cannot write to parport (recompile!)"); + /* + asm( + "mov %%edx,%0\n" + "mov %%al,%1\n" + "out %%dx,%%al\n" + : + : "a"(port),"b"(value) + ); + */ #endif } static LONG WINAPI HandlerExceptionFilter ( EXCEPTION_POINTERS *pExPtrs ) { - if (pExPtrs->ExceptionRecord->ExceptionCode == EXCEPTION_PRIV_INSTRUCTION) - { - pExPtrs->ContextRecord->Eip ++; /* Skip the OUT or IN instruction that caused the exception */ - bPrivException = TRUE; - return EXCEPTION_CONTINUE_EXECUTION; - } - else - return EXCEPTION_CONTINUE_SEARCH; + if (pExPtrs->ExceptionRecord->ExceptionCode == + EXCEPTION_PRIV_INSTRUCTION) { + pExPtrs->ContextRecord->Eip + ++; /* Skip the OUT or IN instruction that caused the exception */ + bPrivException = TRUE; + return EXCEPTION_CONTINUE_EXECUTION; + } else { + return EXCEPTION_CONTINUE_SEARCH; + } } -static BOOL StartUpIoPorts(UINT PortToAccess, BOOL bShowMessageBox, HWND hParentWnd) +static BOOL StartUpIoPorts(UINT PortToAccess, BOOL bShowMessageBox, + HWND hParentWnd) { - HANDLE hUserPort; + HANDLE hUserPort; + + hUserPort = CreateFile("\\\\.\\UserPort", GENERIC_READ, 0, NULL, + OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + CloseHandle(hUserPort); /* Activate the driver */ + Sleep(100); /* We must make a process switch */ - hUserPort = CreateFile("\\\\.\\UserPort", GENERIC_READ, 0, NULL,OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); - CloseHandle(hUserPort); /* Activate the driver */ - Sleep(100); /* We must make a process switch */ + SetUnhandledExceptionFilter(HandlerExceptionFilter); - SetUnhandledExceptionFilter(HandlerExceptionFilter); - - bPrivException = FALSE; - read_parport(PortToAccess); /* Try to access the given port address */ + bPrivException = FALSE; + read_parport(PortToAccess); /* Try to access the given port address */ - if (bPrivException) - { - if (bShowMessageBox) - { + if (bPrivException) { + if (bShowMessageBox) { #if 0 - MessageBox(hParentWnd,"Privileged instruction exception has occured!\r\n\r\n" - "To use this external under Windows NT, 2000 or XP\r\n" - "you need to install the driver 'UserPort.sys' and grant\r\n" - "access to the ports used by this program.\r\n\r\n" - "See the file README for further information!\r\n", NULL, MB_OK); + MessageBox(hParentWnd, + "Privileged instruction exception has occured!\r\n\r\n" + "To use this external under Windows NT, 2000 or XP\r\n" + "you need to install the driver 'UserPort.sys' and grant\r\n" + "access to the ports used by this program.\r\n\r\n" + "See the file README for further information!\r\n", NULL, MB_OK); #endif - } - return FALSE; - } - return TRUE; + } + return FALSE; + } + return TRUE; } - /* check if we are running NT/2k/XP */ +/* check if we are running NT/2k/XP */ static int IsWinNT(void) { - OSVERSIONINFO OSVersionInfo; - OSVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); + OSVERSIONINFO OSVersionInfo; + OSVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); - GetVersionEx(&OSVersionInfo); + GetVersionEx(&OSVersionInfo); - return OSVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT; + return OSVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT; } - /* open parport */ +/* open parport */ int open_port(int port) { - if(IsWinNT()) /* we are under NT and need kernel driver */ - { - if(StartUpIoPorts(port, 1, 0)) - return(0); - return(-1); - } - else /* no need to use kernel driver */ - { - return(0); - } + if(IsWinNT()) { /* we are under NT and need kernel driver */ + if(StartUpIoPorts(port, 1, 0)) { + return(0); + } + return(-1); + } else { /* no need to use kernel driver */ + return(0); + } } #endif /* __WIN32__ & Z_WANT_LPT */ diff --git a/externals/zexy/src/wrap.c b/externals/zexy/src/wrap.c index 1ecc7c19b8d75cd127051078ec61d63da7b93ce8..f410fe3bc5e485cb04b458c6d013d021c0e847c7 100644 --- a/externals/zexy/src/wrap.c +++ b/externals/zexy/src/wrap.c @@ -1,4 +1,4 @@ -/* +/* * wrap: wrap floats between two limits * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -28,18 +28,22 @@ typedef struct _wrap { static void wrap_float(t_wrap *x, t_float f) { - if (x->f_lower==x->f_upper) + if (x->f_lower==x->f_upper) { outlet_float(x->x_obj.ob_outlet, x->f_lower); - else { + } else { t_float modulo = fmod((f-x->f_lower),(x->f_upper-x->f_lower)); - if (modulo<0)modulo+=(x->f_upper-x->f_lower); - + if (modulo<0) { + modulo+=(x->f_upper-x->f_lower); + } + outlet_float(x->x_obj.ob_outlet, x->f_lower+modulo); } } -static void wrap_set(t_wrap *x, t_symbol* UNUSED(s), int argc, t_atom *argv){ +static void wrap_set(t_wrap *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) +{ t_float f1, f2; - switch (argc){ + switch (argc) { case 0: f1=0.0; f2=1.0; @@ -69,14 +73,15 @@ static void *wrap_new(t_symbol *s, int argc, t_atom*argv) static void wrap_help(t_wrap*x) { - post("\n"HEARTSYMBOL" wrap\t\t:: wrap a float between to boundaries"); + post("\n"HEARTSYMBOL " wrap\t\t:: wrap a float between to boundaries"); } -void wrap_setup(void) { +void wrap_setup(void) +{ wrap_class = class_new(gensym("wrap"), - (t_newmethod)wrap_new, - 0, sizeof(t_wrap), - CLASS_DEFAULT, A_GIMME, A_NULL); + (t_newmethod)wrap_new, + 0, sizeof(t_wrap), + CLASS_DEFAULT, A_GIMME, A_NULL); class_addfloat (wrap_class, wrap_float); class_addmethod(wrap_class, (t_method)wrap_set, gensym("set"), A_GIMME, 0); diff --git a/externals/zexy/src/z_zexy.c b/externals/zexy/src/z_zexy.c index 4efc3d8593b4bcdbb7a1c818e661bb9f46cc4c8a..8a15960cdd083f7e0db0492d6ac8fbd50ac03384 100644 --- a/externals/zexy/src/z_zexy.c +++ b/externals/zexy/src/z_zexy.c @@ -7,90 +7,91 @@ void z_zexy_setup(void) { - setup_0x260x260x7e(); /* 0x260x260x7e */ - setup_0x2e(); /* 0x2e */ - setup_0x3c0x7e(); /* 0x3c0x7e */ - setup_0x3d0x3d0x7e(); /* 0x3d0x3d0x7e */ - setup_0x3e0x7e(); /* 0x3e0x7e */ - setup_0x7c0x7c0x7e(); /* 0x7c0x7c0x7e */ - a2l_setup(); /* a2l */ - abs_tilde_setup(); /* abs~ */ - absgn_tilde_setup(); /* absgn~ */ - atof_setup(); /* atof */ - atoi_setup(); /* atoi */ - avg_tilde_setup(); /* avg~ */ - blockmirror_tilde_setup(); /* blockmirror~ */ - blockshuffle_tilde_setup(); /* blockshuffle~ */ - blockswap_tilde_setup(); /* blockswap~ */ - date_setup(); /* date */ - demultiplex_tilde_setup(); /* demultiplex~ */ - demultiplex_setup(); /* demultiplex */ - dfreq_tilde_setup(); /* dfreq~ */ - dirac_tilde_setup(); /* dirac~ */ - drip_setup(); /* drip */ - envrms_tilde_setup(); /* envrms~ */ - fifop_setup(); /* fifop */ - freadln_setup(); /* freadln */ - fwriteln_setup(); /* fwriteln */ - glue_setup(); /* glue */ - index_setup(); /* index */ - length_setup(); /* length */ - lifop_setup(); /* lifop */ - limiter_tilde_setup(); /* limiter~ */ - list2int_setup(); /* list2int */ - list2lists_setup(); /* list2lists */ - list2symbol_setup(); /* list2symbol */ - lister_setup(); /* lister */ - listfind_setup(); /* listfind */ - liststorage_setup(); /* liststorage */ - longload_setup(); /* longload */ - lpt_setup(); /* lpt */ - makesymbol_setup(); /* makesymbol */ - matchbox_setup(); /* matchbox */ - mavg_setup(); /* mavg */ - minmax_setup(); /* minmax */ - msgfile_setup(); /* msgfile */ - multiline_tilde_setup(); /* multiline~ */ - multiplex_tilde_setup(); /* multiplex~ */ - multiplex_setup(); /* multiplex */ - multireceive_setup(); /* multireceive */ - niagara_setup(); /* niagara */ - noish_tilde_setup(); /* noish~ */ - noisi_tilde_setup(); /* noisi~ */ - operating_system_setup(); /* operating_system */ - pack_tilde_setup(); /* pack~ */ - pack_setup(); /* pack */ - packel_setup(); /* packel */ - pdf_tilde_setup(); /* pdf~ */ - prime_setup(); /* prime */ - quantize_tilde_setup(); /* quantize~ */ - rawprint_setup(); /* rawprint */ - regex_setup(); /* regex */ - relay_setup(); /* relay */ - repack_setup(); /* repack */ - repeat_setup(); /* repeat */ - route_tilde_setup(); /* route~ */ - sfplay_setup(); /* sfplay */ - sfrecord_setup(); /* sfrecord */ - sgn_tilde_setup(); /* sgn~ */ - sigzero_tilde_setup(); /* sigzero~ */ - sleepgrain_setup(); /* sleepgrain */ - sort_setup(); /* sort */ - step_tilde_setup(); /* step~ */ - strcmp_setup(); /* strcmp */ - sum_setup(); /* sum */ - swap_tilde_setup(); /* swap~ */ - symbol2list_setup(); /* symbol2list */ - tabdump_setup(); /* tabdump */ - tabminmax_setup(); /* tabminmax */ - tabread4_tilde_tilde_setup(); /* tabread4~~ */ - tabset_setup(); /* tabset */ - tavg_tilde_setup(); /* tavg~ */ - time_setup(); /* time */ - unpack_tilde_setup(); /* unpack~ */ - unpack_setup(); /* unpack */ - urn_setup(); /* urn */ - wrap_setup(); /* wrap */ - z_tilde_setup(); /* z~ */ + setup_0x260x260x7e(); /* 0x260x260x7e */ + setup_0x2e(); /* 0x2e */ + setup_0x3c0x7e(); /* 0x3c0x7e */ + setup_0x3d0x3d0x7e(); /* 0x3d0x3d0x7e */ + setup_0x3e0x7e(); /* 0x3e0x7e */ + setup_0x7c0x7c0x7e(); /* 0x7c0x7c0x7e */ + a2l_setup(); /* a2l */ + abs_tilde_setup(); /* abs~ */ + absgn_tilde_setup(); /* absgn~ */ + atof_setup(); /* atof */ + atoi_setup(); /* atoi */ + avg_tilde_setup(); /* avg~ */ + blockmirror_tilde_setup(); /* blockmirror~ */ + blockshuffle_tilde_setup(); /* blockshuffle~ */ + blockswap_tilde_setup(); /* blockswap~ */ + date_setup(); /* date */ + demultiplex_tilde_setup(); /* demultiplex~ */ + demultiplex_setup(); /* demultiplex */ + dfreq_tilde_setup(); /* dfreq~ */ + dirac_tilde_setup(); /* dirac~ */ + doublepole_tilde_setup(); /* doublepole~ */ + drip_setup(); /* drip */ + envrms_tilde_setup(); /* envrms~ */ + fifop_setup(); /* fifop */ + freadln_setup(); /* freadln */ + fwriteln_setup(); /* fwriteln */ + glue_setup(); /* glue */ + index_setup(); /* index */ + length_setup(); /* length */ + lifop_setup(); /* lifop */ + limiter_tilde_setup(); /* limiter~ */ + list2int_setup(); /* list2int */ + list2lists_setup(); /* list2lists */ + list2symbol_setup(); /* list2symbol */ + lister_setup(); /* lister */ + listfind_setup(); /* listfind */ + liststorage_setup(); /* liststorage */ + longload_setup(); /* longload */ + lpt_setup(); /* lpt */ + makesymbol_setup(); /* makesymbol */ + matchbox_setup(); /* matchbox */ + mavg_setup(); /* mavg */ + minmax_setup(); /* minmax */ + msgfile_setup(); /* msgfile */ + multiline_tilde_setup(); /* multiline~ */ + multiplex_tilde_setup(); /* multiplex~ */ + multiplex_setup(); /* multiplex */ + multireceive_setup(); /* multireceive */ + niagara_setup(); /* niagara */ + noish_tilde_setup(); /* noish~ */ + noisi_tilde_setup(); /* noisi~ */ + operating_system_setup(); /* operating_system */ + pack_tilde_setup(); /* pack~ */ + pack_setup(); /* pack */ + packel_setup(); /* packel */ + pdf_tilde_setup(); /* pdf~ */ + prime_setup(); /* prime */ + quantize_tilde_setup(); /* quantize~ */ + rawprint_setup(); /* rawprint */ + regex_setup(); /* regex */ + relay_setup(); /* relay */ + repack_setup(); /* repack */ + repeat_setup(); /* repeat */ + route_tilde_setup(); /* route~ */ + sfplay_setup(); /* sfplay */ + sfrecord_setup(); /* sfrecord */ + sgn_tilde_setup(); /* sgn~ */ + sigzero_tilde_setup(); /* sigzero~ */ + sleepgrain_setup(); /* sleepgrain */ + sort_setup(); /* sort */ + step_tilde_setup(); /* step~ */ + strcmp_setup(); /* strcmp */ + sum_setup(); /* sum */ + swap_tilde_setup(); /* swap~ */ + symbol2list_setup(); /* symbol2list */ + tabdump_setup(); /* tabdump */ + tabminmax_setup(); /* tabminmax */ + tabread4_tilde_tilde_setup(); /* tabread4~~ */ + tabset_setup(); /* tabset */ + tavg_tilde_setup(); /* tavg~ */ + time_setup(); /* time */ + unpack_tilde_setup(); /* unpack~ */ + unpack_setup(); /* unpack */ + urn_setup(); /* urn */ + wrap_setup(); /* wrap */ + z_tilde_setup(); /* z~ */ } diff --git a/externals/zexy/src/z_zexy.h b/externals/zexy/src/z_zexy.h index 26993612131807780f9f2cb408f9e1ea45ca3d1f..f8f6c55396993fd15dc73e022959e9769cb2e1a4 100644 --- a/externals/zexy/src/z_zexy.h +++ b/externals/zexy/src/z_zexy.h @@ -25,6 +25,7 @@ void demultiplex_tilde_setup(void); /* demultiplex~ */ void demultiplex_setup(void); /* demultiplex */ void dfreq_tilde_setup(void); /* dfreq~ */ void dirac_tilde_setup(void); /* dirac~ */ +void doublepole_tilde_setup(void); /* doublepole~ */ void drip_setup(void); /* drip */ void envrms_tilde_setup(void); /* envrms~ */ void fifop_setup(void); /* fifop */ diff --git a/externals/zexy/src/zexy.c b/externals/zexy/src/zexy.c index b8ef63a271ebba7dbbace18d15558e3f361fc268..e55f04dca29a4ad91baad3510abd839f4163439e 100644 --- a/externals/zexy/src/zexy.c +++ b/externals/zexy/src/zexy.c @@ -1,4 +1,4 @@ -/* +/* * zexy: the swiss army knife for Pure Data * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -34,8 +34,7 @@ /* do a little help thing */ -typedef struct zexy -{ +typedef struct zexy { t_object t_ob; } t_zexy; @@ -43,10 +42,11 @@ t_class *zexy_class; static void zexy_help(void) { - endpost(); endpost(); + endpost(); + endpost(); post("...this is the zexy external "VERSION"..."); endpost(); - post(""HEARTSYMBOL" handling signals"); + post(""HEARTSYMBOL " handling signals"); #if 0 post("streamout~\t:: stream signals via a LAN : (%c) gige 1999"); post("streamin~\t:: catch signals from a LAN : based on gige"); @@ -54,29 +54,34 @@ static void zexy_help(void) post("sfplay\t\t:: play back a (multichannel) soundfile : (c) ritsch 1999"); post("sfrecord\t:: record a (multichannel) soundfile : based on ritsch"); - endpost(); post(""HEARTSYMBOL" generating signals"); + endpost(); + post(""HEARTSYMBOL " generating signals"); post("noish~\t\t:: generate bandlimited noise"); post("noisi~\t\t:: generate bandlimited noise"); post("dirac~\t\t:: generate a dirac-pulse"); post("step~\t\t:: generate a unity-step"); post("dfreq~\t\t:: detect frequency by counting zero-crossings : (c) ritsch 1998"); - endpost(); post(""HEARTSYMBOL" manipulating signals"); + endpost(); + post(""HEARTSYMBOL " manipulating signals"); post("limiter~\t:: limit/compress one or more signals"); post("nop~\t\t:: pass through a signal (delay 1 block)"); post("z~\t\t:: samplewise delay"); post("swap~\t\t:: byte-swap a signal"); post("quantize~\t:: quantize a signal"); - endpost(); post(""HEARTSYMBOL" binary operations on signals"); + endpost(); + post(""HEARTSYMBOL " binary operations on signals"); post("abs~, sgn~, >~, <~, ==~, &&~, ||~"); - endpost(); post(""HEARTSYMBOL" multary operations on signals"); + endpost(); + post(""HEARTSYMBOL " multary operations on signals"); post("multiline~\t:: multiple line~ multiplication"); post("multiplex~\t:: multiplex 1 inlet~ to 1-of-various outlet~s"); post("demultiplex~\t:: demultiplex 1-of-various inlet~s to 1 outlet~"); - endpost(); post(""HEARTSYMBOL" investigating signals in message-domain"); + endpost(); + post(""HEARTSYMBOL " investigating signals in message-domain"); post("pack~\t\t:: convert a signal into a list of floats"); post("unpack~\t\t:: convert packages of floats into a signal"); @@ -85,8 +90,9 @@ static void zexy_help(void) post("tavg~\t\t:: outputs average of a signal between two bangs"); post("envrms~\t\t:: an env~-object that ouputs rms instead of db"); post("pdf~\t\t:: power density function"); - - endpost(); post(""HEARTSYMBOL" basic message objects"); + + endpost(); + post(""HEARTSYMBOL " basic message objects"); post("nop\t\t:: a no-operation"); post("lister\t\t:: stores lists"); post("any2list\t\t:: converts \"anything\" to lists"); @@ -104,7 +110,8 @@ static void zexy_help(void) post("segregate\t:: sort inputs by type"); post(".\t\t:: scalar multiplication of vectors (lists of floats)"); - endpost(); post(""HEARTSYMBOL" advanced message objects"); + endpost(); + post(""HEARTSYMBOL " advanced message objects"); post("tabread4\t:: 4-point interpolating table-read object"); post("tabdump\t\t:: dump the table as a list"); post("tabset\t\t:: set a table with a list"); @@ -124,7 +131,8 @@ static void zexy_help(void) post("urn\t\t:: unique random numbers"); post("operating_system\t:: information on the OS"); - endpost(); post("\n(l) forum::für::umläute except where indicated"); + endpost(); + post("\n(l) forum::für::umläute except where indicated"); post("this software is released under the GnuGPL that is provided with these files"); endpost(); } @@ -135,23 +143,28 @@ static void *zexy_new(void) return (x); } -void zexy_setup(void) +void zexy_setup(void) { int i; startpost("\n\t"); - for (i=0; i<3; i++) startpost(""HEARTSYMBOL""); + for (i=0; i<3; i++) { + startpost(""HEARTSYMBOL ""); + } endpost(); - post("\t"HEARTSYMBOL" the zexy external "VERSION); - post("\t"HEARTSYMBOL" (c) 1999-2012 IOhannes m zmölnig"); - post("\t"HEARTSYMBOL" forum::für::umläute"); - post("\t"HEARTSYMBOL" iem @ kug"); - post("\t"HEARTSYMBOL" compiled: "__DATE__); - post("\t"HEARTSYMBOL" send me a 'help' message"); + post("\t"HEARTSYMBOL " the zexy external "VERSION); + post("\t"HEARTSYMBOL " (c) 1999-2012 IOhannes m zmölnig"); + post("\t"HEARTSYMBOL " forum::für::umläute"); + post("\t"HEARTSYMBOL " iem @ kug"); + post("\t"HEARTSYMBOL " compiled "BUILD_DATE); + post("\t"HEARTSYMBOL " send me a 'help' message"); startpost("\t"); - for (i=0; i<3; i++) startpost(""HEARTSYMBOL""); - endpost(); endpost(); - + for (i=0; i<3; i++) { + startpost(""HEARTSYMBOL ""); + } + endpost(); + endpost(); + zexy_class = class_new(gensym("zexy"), zexy_new, 0, sizeof(t_zexy), 0, 0); class_addmethod(zexy_class, zexy_help, gensym("help"), 0); @@ -162,10 +175,11 @@ void zexy_setup(void) } #ifndef __WIN32__ -void verbose(int level, const char *fmt, ...){ +void verbose(int level, const char *fmt, ...) +{ char buf[MAXPDSTRING]; va_list ap; - + va_start(ap, fmt); vsnprintf(buf, MAXPDSTRING-1, fmt, ap); va_end(ap); diff --git a/externals/zexy/src/zexy.h b/externals/zexy/src/zexy.h index 42541a98d86e79e4a8c581d5bd472af8822f3308..ea6e2376307edccacde2e86ee961b1b4c26b10fc 100644 --- a/externals/zexy/src/zexy.h +++ b/externals/zexy/src/zexy.h @@ -18,7 +18,7 @@ http://puredata.info/community/projects/software/zexy/ ftp://iem.at/pd/Externals/ZEXY - * + * * ZEXY is published under the GNU GeneralPublicLicense, that must be shipped with ZEXY. * if you are using Debian GNU/linux, the GNU-GPL can be found under /usr/share/common-licenses/GPL * if you still haven't found a copy of the GNU-GPL, have a look at http://www.gnu.org @@ -40,7 +40,7 @@ # endif #endif -/* +/* * to use the zexyconf.h compile-time configurations, you have to set HAVE_CONFIG_H * usually this is done in Make.config by configure */ @@ -111,27 +111,35 @@ #define ZEXY_TYPE_EQUAL(type1, type2) (sizeof(type1) == sizeof(type2)) -typedef struct _mypdlist -{ +typedef struct _mypdlist { t_object x_obj; int x_n; t_atom *x_list; } t_mypdlist; +#ifndef BUILD_DATE +# define BUILD_DATE __DATE__ +#endif + + #ifndef ZEXY_LIBRARY -static void zexy_register(char*object){ - if(object!=0){ - post("[%s] part of zexy-%s (compiled: "__DATE__")", object, VERSION); +static void zexy_register(char*object) +{ + if(object!=0) { + post("[%s] part of zexy-%s (compiled "BUILD_DATE")", object, VERSION); post("\tCopyright (c) 1999-2012 IOhannes m zmölnig, forum::für::umläute & IEM"); } } #else -static void zexy_register(char*object){object=0;} +static void zexy_register(char*object) +{ + object=0; +} #endif /* ZEXY_LIBRARY */ #if (defined PD_MAJOR_VERSION && defined PD_MINOR_VERSION) && (PD_MAJOR_VERSION > 0 || PD_MINOR_VERSION > 38) -/* +/* * pd>=0.39 has a verbose() function; older versions don't * btw, this finally makes zexy binary incompatible with older version */ @@ -142,15 +150,28 @@ static void zexy_register(char*object){object=0;} * this should make zexy binary compatible with older pd versions again */ # ifndef __WIN32__ - void verbose(int level, const char *fmt, ...); +void verbose(int level, const char *fmt, ...); # endif #else -/* +/* * on older version we just shut up! */ # define z_verbose #endif +#if (defined PD_MAJOR_VERSION && defined PD_MINOR_VERSION) && (PD_MAJOR_VERSION > 0 || PD_MINOR_VERSION > 43) +# define z_open sys_open +# define z_close sys_close +# define z_fopen sys_fopen +# define z_fclose sys_fclose +#else +# define z_open open +# define z_close close +# define z_fopen fopen +# define z_fclose fclose +#endif + + #if (defined __x86_64__) && (defined PD_MAJOR_VERSION && defined PD_MINOR_VERSION) && (PD_MAJOR_VERSION > 0 || PD_MINOR_VERSION >= 41) # define zarray_t t_word # define zarray_getarray garray_getfloatwords diff --git a/externals/zexy/src/zexySIMD.h b/externals/zexy/src/zexySIMD.h index 893a85767225cb82038f9696a02374f15d95235b..a9048c04e1d235f42316f94bee46b4e422606025 100644 --- a/externals/zexy/src/zexySIMD.h +++ b/externals/zexy/src/zexySIMD.h @@ -17,10 +17,11 @@ typedef union { * runs a check whether the SSE-optimized perform routine returns the same result as the generic routine * if the results differ, the SSE-code is probably broken, so we should fallback to the generic code */ -static int zexy_testSSE(t_perfroutine genericperf, t_perfroutine sseperf, unsigned int numinchannels, unsigned int numoutchannels) +static int zexy_testSSE(t_perfroutine genericperf, t_perfroutine sseperf, + unsigned int numinchannels, unsigned int numoutchannels) { -/* this currently only works with single input, single output */ -/* LATER make it work truely multichannel */ + /* this currently only works with single input, single output */ + /* LATER make it work truely multichannel */ if(1==numinchannels && 1==numoutchannels) { t_int w1[4], w2[4]; t_sample4 in, in1[4], in2[4], out1[4], out2[4]; @@ -34,28 +35,43 @@ static int zexy_testSSE(t_perfroutine genericperf, t_perfroutine sseperf, unsign in.f[1]=5.; for(i=0; i<4; i++) { - in1[i].f[0]=in.f[i]; in1[i].f[1]=in.f[i]; in1[i].f[3]=in.f[i]; in1[i].f[2]=in.f[i]; + in1[i].f[0]=in.f[i]; + in1[i].f[1]=in.f[i]; + in1[i].f[3]=in.f[i]; + in1[i].f[2]=in.f[i]; out1[i].f[0]=out1[i].f[1]=out1[i].f[2]=out1[i].f[3]=0.f; - in2[i].f[0]=in.f[i]; in2[i].f[1]=in.f[i]; in2[i].f[3]=in.f[i]; in2[i].f[2]=in.f[i]; + in2[i].f[0]=in.f[i]; + in2[i].f[1]=in.f[i]; + in2[i].f[3]=in.f[i]; + in2[i].f[2]=in.f[i]; out2[i].f[0]=out2[i].f[1]=out2[i].f[2]=out2[i].f[3]=0.f; } - w1[0]=(t_int)0; w1[1]=(t_int)&in1; w1[2]=(t_int)&out1; w1[3]=(t_int)16; (*genericperf)(w1); - w2[0]=(t_int)0; w2[1]=(t_int)&in2; w2[2]=(t_int)&out2; w2[3]=(t_int)16; (*sseperf)(w2); + w1[0]=(t_int)0; + w1[1]=(t_int)&in1; + w1[2]=(t_int)&out1; + w1[3]=(t_int)16; + (*genericperf)(w1); + w2[0]=(t_int)0; + w2[1]=(t_int)&in2; + w2[2]=(t_int)&out2; + w2[3]=(t_int)16; + (*sseperf)(w2); for(i=0; i<4; i++) { for(j=0; j<4; j++) { - if(fabsf(out1[i].f[j]-out2[i].f[j])>1e-17) { - z_verbose(2, "generic and optimized routines return different results: skipping optimization"); - z_verbose(2, "[%d,%d]: ((%f->%f)!=(%f->%f))", - i, j, - in1[i].f[j], out1[i].f[j], - in2[i].f[j], out2[i].f[j] - ); - return 0; - } + if(fabsf(out1[i].f[j]-out2[i].f[j])>1e-17) { + z_verbose(2, + "generic and optimized routines return different results: skipping optimization"); + z_verbose(2, "[%d,%d]: ((%f->%f)!=(%f->%f))", + i, j, + in1[i].f[j], out1[i].f[j], + in2[i].f[j], out2[i].f[j] + ); + return 0; + } } } } else { diff --git a/externals/zexy/src/zexyconf.h b/externals/zexy/src/zexyconf.h index 2fca57b4b57ef5318cf0fc2eef87e66059ee9fb9..a592ae71a9e5b7bcf4b589d53af763da4e2d0331 100644 --- a/externals/zexy/src/zexyconf.h +++ b/externals/zexy/src/zexyconf.h @@ -7,7 +7,7 @@ /* Define if you have the <regex.h> header file. */ /* -#undef HAVE_REGEX_H +#undef HAVE_REGEX_H */ /* Define if you have the <alloca.h> header file. */ @@ -21,8 +21,8 @@ */ /* define if you have the <linux/ppdev.h> header file. - * (for parport _device_ support) - * you need Z_WANT_LPT for this to have an effect ! + * (for parport _device_ support) + * you need Z_WANT_LPT for this to have an effect ! */ /* #undef HAVE_LINUX_PPDEV_H diff --git a/externals/zexy/src/z~.c b/externals/zexy/src/z~.c index 5f6f4d3537b5a02dc93506cabd2a470de2e43a11..240bac63084d5d4647bedfb0ec56d157ab04e3da 100644 --- a/externals/zexy/src/z~.c +++ b/externals/zexy/src/z~.c @@ -1,5 +1,5 @@ -/* - * z~: samplewise delay (z^-N) +/* + * z~: samplewise delay (z^-N) * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) * @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -31,8 +31,7 @@ static t_class *zNdelay_class; -typedef struct _zNdelay -{ +typedef struct _zNdelay { t_object x_obj; t_sample *buf; @@ -43,8 +42,12 @@ typedef struct _zNdelay static void zdel_float(t_zNdelay *x, t_floatarg f) { int i = f+1; - if (i<1)i=1; - if (i==x->bufsize)return; + if (i<1) { + i=1; + } + if (i==x->bufsize) { + return; + } freebytes(x->buf, x->bufsize*sizeof(t_sample)); x->bufsize=i; x->buf=(t_sample *)getbytes(x->bufsize*sizeof(t_sample)); @@ -62,10 +65,12 @@ static t_int *zN_perform(t_int *w) int bufsize=x->bufsize, ph=x->phase; if (bufsize==1) { - if (in!=out)while(n--)*out++=*in++; + if (in!=out)while(n--) { + *out++=*in++; + } } else if (bufsize==2) { register t_sample f, last=*buf; - while(n--){ + while(n--) { f=*in++; *out++=last; last=f; @@ -87,13 +92,31 @@ static void zNdelay_dsp(t_zNdelay *x, t_signal **sp) dsp_add(zN_perform, 4, sp[0]->s_vec, sp[1]->s_vec, x, sp[0]->s_n); } -static void *zNdelay_new(t_floatarg f) +static void *zNdelay_new(t_symbol*s, int argc, t_atom*argv) { - t_zNdelay *x = (t_zNdelay *)pd_new(zNdelay_class); - int i = f; + t_zNdelay *x = 0; + int i = 0; t_sample *b; - if (i<=0) i=1; + switch (argc) { + case 0: + i=1; + break; + case 1: + if (argv->a_type == A_FLOAT) { + i=atom_getint(argv); + break; + } + default: + error("Bad arguments for [z~]: must be nought or initial delay [in samples]"); + return 0; + } + + x=(t_zNdelay *)pd_new(zNdelay_class); + + if (i<=0) { + i=0; + } i++; x->bufsize = i; @@ -105,7 +128,7 @@ static void *zNdelay_new(t_floatarg f) x->phase = 0; inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("ft1")); - outlet_new(&x->x_obj, gensym("signal")); + outlet_new(&x->x_obj, gensym("signal")); return (x); } @@ -117,20 +140,22 @@ static void zNdelay_free(t_zNdelay *x) static void zdel_helper(void) { - post("\n"HEARTSYMBOL" z~\t:: samplewise delay"); + post("\n"HEARTSYMBOL " z~\t:: samplewise delay"); post("creation :: 'z~ [<n>]' : creates a <n>-sample delay; default is 1"); } void z_tilde_setup(void) { - zNdelay_class = class_new(gensym("z~"), (t_newmethod)zNdelay_new, (t_method)zNdelay_free, - sizeof(t_zNdelay), 0, A_DEFFLOAT, 0); + zNdelay_class = class_new(gensym("z~"), (t_newmethod)zNdelay_new, + (t_method)zNdelay_free, + sizeof(t_zNdelay), 0, A_GIMME, 0); class_addmethod(zNdelay_class, nullfn, gensym("signal"), 0); - class_addmethod(zNdelay_class, (t_method)zNdelay_dsp, gensym("dsp"), A_CANT, 0); + class_addmethod(zNdelay_class, (t_method)zNdelay_dsp, gensym("dsp"), 0); class_addfloat(zNdelay_class, zdel_float); - class_addmethod(zNdelay_class, (t_method)zdel_float, gensym("ft1"), A_FLOAT, 0); + class_addmethod(zNdelay_class, (t_method)zdel_float, gensym("ft1"), + A_FLOAT, 0); class_addmethod(zNdelay_class, (t_method)zdel_helper, gensym("help"), 0); zexy_register("z~"); } diff --git a/externals/zexy/tests/Makefile.in b/externals/zexy/tests/Makefile.in deleted file mode 100644 index 5b4302d99c4fdfdc294636600e5e95b2c7c4e88c..0000000000000000000000000000000000000000 --- a/externals/zexy/tests/Makefile.in +++ /dev/null @@ -1,513 +0,0 @@ -# Makefile.in generated by automake 1.11.3 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = tests -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/iem_checkflags.m4 \ - $(top_srcdir)/m4/iem_fat.m4 \ - $(top_srcdir)/m4/iem_operatingsystem.m4 \ - $(top_srcdir)/m4/iem_parallelport.m4 \ - $(top_srcdir)/m4/iem_simd.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -SOURCES = -DIST_SOURCES = -am__tty_colors = \ -red=; grn=; lgn=; blu=; std= -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -ARCH_FLAG = @ARCH_FLAG@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTENSION = @EXTENSION@ -EXTRA_LTFLAGS = @EXTRA_LTFLAGS@ -FGREP = @FGREP@ -GREP = @GREP@ -INCLUDES = @INCLUDES@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIBTOOL_DEPS = @LIBTOOL_DEPS@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = foreign -TESTS_ENVIRONMENT = RUNTESTS_NOLOG=yes TESTDIR=$(srcdir) -TESTS = runtests.sh -EXTRA_DIST = README.txt runtests.sh runtests.bat runtests_nogui.pd \ - runtests.pd testunit.pd msgfile/CR.txt msgfile/msgfile.txt \ - testtests/README.txt absgn~/abs.pd absgn~/sgn.pd \ - abs~/simple.pd and~/dualnoise.pd and~/singlenoise.pd \ - eq~/dualnoise.pd eq~/singlenoise.pd gt~/dualnoise.pd \ - gt~/singlenoise.pd help-msg/0x260x260x7e.pd help-msg/0x2e.pd \ - help-msg/0x3c0x7e.pd help-msg/0x3d0x3d0x7e.pd \ - help-msg/0x3e0x7e.pd help-msg/0x7c0x7c0x7e.pd help-msg/a2l.pd \ - help-msg/absgn~.pd help-msg/abs~.pd help-msg/atoi.pd \ - help-msg/avg~.pd help-msg/blockmirror~.pd \ - help-msg/blockswap~.pd help-msg/date.pd \ - help-msg/demultiplex~.pd help-msg/demultiplex.pd \ - help-msg/dfreq~.pd help-msg/dirac~.pd help-msg/drip.pd \ - help-msg/envrms~.pd help-msg/fifop.pd help-msg/glue.pd \ - help-msg/index.pd help-msg/length.pd help-msg/lifop.pd \ - help-msg/limiter~.pd help-msg/list2int.pd \ - help-msg/list2symbol.pd help-msg/lister.pd help-msg/lpt.pd \ - help-msg/makesymbol.pd help-msg/mavg.pd help-msg/minmax.pd \ - help-msg/msgfile.pd help-msg/multiline~.pd \ - help-msg/multiplex~.pd help-msg/multiplex.pd \ - help-msg/niagara.pd help-msg/noish~.pd help-msg/noisi~.pd \ - help-msg/operating_system.pd help-msg/packel.pd \ - help-msg/pack~.pd help-msg/pdf~.pd help-msg/prime.pd \ - help-msg/quantize~.pd help-msg/regex.pd help-msg/relay.pd \ - help-msg/repack.pd help-msg/repeat.pd help-msg/sfplay.pd \ - help-msg/sfrecord.pd help-msg/sgn~.pd help-msg/sigzero~.pd \ - help-msg/sort.pd help-msg/step~.pd help-msg/strcmp.pd \ - help-msg/sum.pd help-msg/swap~.pd help-msg/symbol2list.pd \ - help-msg/tabdump.pd help-msg/tabminmax.pd help-msg/tabset.pd \ - help-msg/tavg~.pd help-msg/time.pd help-msg/unpack~.pd \ - help-msg/urn.pd help-msg/wrap.pd help-msg/zexy_.pd \ - help-msg/z~.pd l2s/argument.pd l2s/delimiter.pd \ - list2lists/negativelength.pd lister/inline2.pd \ - lister/inline.pd lt~/dualnoise.pd lt~/singlenoise.pd \ - msgfile/add2.pd msgfile/empty_at_end.pd \ - msgfile/emptyreplace.pd msgfile/loadingCR.pd \ - msgfile/loading.pd msgfile/prev_from_end.pd \ - msgfile/reentrant.pd or~/dualnoise.pd or~/singlenoise.pd \ - repeat/noargs.pd s2l/numsymbols.pd sgn~/simple.pd \ - testtests/fail_noresult.pd testtests/fail.pd \ - testtests/fail_wait0.pd testtests/fail_wait10.pd \ - testtests/pass.pd testtests/pass_wait0.pd \ - testtests/pass_wait10.pd -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign tests/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; \ - srcdir=$(srcdir); export srcdir; \ - list=' $(TESTS) '; \ - $(am__tty_colors); \ - if test -n "$$list"; then \ - for tst in $$list; do \ - if test -f ./$$tst; then dir=./; \ - elif test -f $$tst; then dir=; \ - else dir="$(srcdir)/"; fi; \ - if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *[\ \ ]$$tst[\ \ ]*) \ - xpass=`expr $$xpass + 1`; \ - failed=`expr $$failed + 1`; \ - col=$$red; res=XPASS; \ - ;; \ - *) \ - col=$$grn; res=PASS; \ - ;; \ - esac; \ - elif test $$? -ne 77; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *[\ \ ]$$tst[\ \ ]*) \ - xfail=`expr $$xfail + 1`; \ - col=$$lgn; res=XFAIL; \ - ;; \ - *) \ - failed=`expr $$failed + 1`; \ - col=$$red; res=FAIL; \ - ;; \ - esac; \ - else \ - skip=`expr $$skip + 1`; \ - col=$$blu; res=SKIP; \ - fi; \ - echo "$${col}$$res$${std}: $$tst"; \ - done; \ - if test "$$all" -eq 1; then \ - tests="test"; \ - All=""; \ - else \ - tests="tests"; \ - All="All "; \ - fi; \ - if test "$$failed" -eq 0; then \ - if test "$$xfail" -eq 0; then \ - banner="$$All$$all $$tests passed"; \ - else \ - if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ - banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ - fi; \ - else \ - if test "$$xpass" -eq 0; then \ - banner="$$failed of $$all $$tests failed"; \ - else \ - if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ - banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ - fi; \ - fi; \ - dashes="$$banner"; \ - skipped=""; \ - if test "$$skip" -ne 0; then \ - if test "$$skip" -eq 1; then \ - skipped="($$skip test was not run)"; \ - else \ - skipped="($$skip tests were not run)"; \ - fi; \ - test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$skipped"; \ - fi; \ - report=""; \ - if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ - report="Please report to $(PACKAGE_BUGREPORT)"; \ - test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$report"; \ - fi; \ - dashes=`echo "$$dashes" | sed s/./=/g`; \ - if test "$$failed" -eq 0; then \ - col="$$grn"; \ - else \ - col="$$red"; \ - fi; \ - echo "$${col}$$dashes$${std}"; \ - echo "$${col}$$banner$${std}"; \ - test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \ - test -z "$$report" || echo "$${col}$$report$${std}"; \ - echo "$${col}$$dashes$${std}"; \ - test "$$failed" -eq 0; \ - else :; fi - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am - $(MAKE) $(AM_MAKEFLAGS) check-TESTS -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-local mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: check-am install-am install-strip - -.PHONY: all all-am check check-TESTS check-am clean clean-generic \ - clean-libtool clean-local distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - uninstall uninstall-am - - -clean-local: - -rm -f runtests.txt - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/externals/zexy/zexy-meta.pd.in b/externals/zexy/zexy-meta.pd.in index 69b6db70f236fc610157ef285cef1ca2460fb4af..ff8774ae67b5a70ba0031c606f8ea9963f083b5f 100644 --- a/externals/zexy/zexy-meta.pd.in +++ b/externals/zexy/zexy-meta.pd.in @@ -303,5 +303,5 @@ the type; #X text 10 90 DESCRIPTION the swiss army knife for Pd; #X restore 23 27 pd META; #X text 228 7 the zexy external; -#X text 429 66 (c) forum::für::umlute 1999-2012; +#X text 429 66 (c) forum::für::umläute 1999-2012; #X connect 1 0 0 0;