From 0d8513a9086f284cb2cd33beacfd4e8d64adcc44 Mon Sep 17 00:00:00 2001 From: Bryan Jurish Date: Thu, 26 Jul 2007 12:20:50 +0000 Subject: pdstring v0.05 + added persistent string buffer to any2string + added initial buffer size and eos-character arguments to any2string, string2any - defaults are backwards-compatible but ugly + added --enable-object-externals option to configure svn path=/trunk/externals/moocow/pdstring/; revision=8247 --- src/pdstring.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/pdstring.c') diff --git a/src/pdstring.c b/src/pdstring.c index c77b68e..37bd4ff 100644 --- a/src/pdstring.c +++ b/src/pdstring.c @@ -54,8 +54,15 @@ typedef struct _pdstring /*===================================================================== * External declarations *=====================================================================*/ -extern void any2string_setup(void); -extern void string2any_setup(void); +#ifndef PDSTRING_OBJECT_EXTERNALS +/* +extern void any2string_setup_guts(void); +extern void string2any_setup_guts(void); +*/ +#include "any2string.c" +#include "string2any.c" + +#endif /*-------------------------------------------------------------------- * new @@ -81,8 +88,10 @@ void pdstring_setup(void) { post(pdstring_version); - any2string_setup(); - string2any_setup(); +#ifndef PDSTRING_OBJECT_EXTERNALS + any2string_setup_guts(); + string2any_setup_guts(); +#endif pdstring_class = class_new(gensym("pdstring"), (t_newmethod)pdstring_new, -- cgit v1.2.1