aboutsummaryrefslogtreecommitdiff
path: root/src/pdstring.c
diff options
context:
space:
mode:
authorBryan Jurish <mukau@users.sourceforge.net>2007-07-26 12:20:50 +0000
committerBryan Jurish <mukau@users.sourceforge.net>2007-07-26 12:20:50 +0000
commit0d8513a9086f284cb2cd33beacfd4e8d64adcc44 (patch)
treea2712f9623790f7fecc8e0c4d52529f6e20382dc /src/pdstring.c
parent4613a9c711dfd5882bc1e1ce561bcff83097e33e (diff)
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
Diffstat (limited to 'src/pdstring.c')
-rw-r--r--src/pdstring.c17
1 files changed, 13 insertions, 4 deletions
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,