From e50bf5fa3c18516c4bbebb0149cdee83d2c8ae57 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Mon, 2 May 2005 14:48:25 +0000 Subject: fixed compiling failure ... added support for flext build system ... thnx thomas svn path=/trunk/externals/tb/; revision=2881 --- sc4pd/source/support.cpp | 8 ++++---- sc4pd/source/support.hpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'sc4pd/source') diff --git a/sc4pd/source/support.cpp b/sc4pd/source/support.cpp index 69aaf2b..e753056 100644 --- a/sc4pd/source/support.cpp +++ b/sc4pd/source/support.cpp @@ -39,7 +39,7 @@ #include -bool sc_add (flext::AtomList a) +bool sc_add (flext::AtomList& a) { for (int i = 0; i!=a.Count();++i) { @@ -54,7 +54,7 @@ bool sc_add (flext::AtomList a) return false; } -float sc_getfloatarg (flext::AtomList a,int i) +float sc_getfloatarg (flext::AtomList& a,int i) { if (a.Count() > 0 && a.Count() > i) return flext::GetAFloat(a[i]); @@ -62,7 +62,7 @@ float sc_getfloatarg (flext::AtomList a,int i) return 0; } -bool sc_ar(flext::AtomList a) +bool sc_ar(flext::AtomList& a) { for (int i = 0; i!=a.Count();++i) { @@ -77,7 +77,7 @@ bool sc_ar(flext::AtomList a) return false; } -bool sc_inv(flext::AtomList a) +bool sc_inv(flext::AtomList& a) { for (int i = 0; i!=a.Count();++i) { diff --git a/sc4pd/source/support.hpp b/sc4pd/source/support.hpp index c9cedae..12885cb 100644 --- a/sc4pd/source/support.hpp +++ b/sc4pd/source/support.hpp @@ -47,10 +47,10 @@ /* for argument parsing */ -bool sc_add (flext::AtomList a); -float sc_getfloatarg (flext::AtomList a,int i); -bool sc_ar(flext::AtomList a); -bool sc_inv(flext::AtomList a); +bool sc_add (flext::AtomList& a); +float sc_getfloatarg (flext::AtomList& a,int i); +bool sc_ar(flext::AtomList& a); +bool sc_inv(flext::AtomList& a); /* for rngs */ -- cgit v1.2.1