Revision: 10562 http://pure-data.svn.sourceforge.net/pure-data/?rev=10562&view=rev Author: mukau Date: 2009-01-17 12:54:30 +0000 (Sat, 17 Jan 2009)
Log Message: ----------- + changed default output of [any2string] to (unsigned char) - fixes sourceforge bug #2501709, reported by Roman Haefeli
Modified Paths: -------------- trunk/externals/moocow/pdstring/Changes trunk/externals/moocow/pdstring/configure.in trunk/externals/moocow/pdstring/src/any2string.c trunk/externals/moocow/pdstring/src/pdstring.c
Modified: trunk/externals/moocow/pdstring/Changes =================================================================== --- trunk/externals/moocow/pdstring/Changes 2009-01-17 11:27:38 UTC (rev 10561) +++ trunk/externals/moocow/pdstring/Changes 2009-01-17 12:54:30 UTC (rev 10562) @@ -1,5 +1,9 @@ Change log for PD external 'pdstring'
+v0.07 + + changed default output of [any2string] to "unsigned char" + - fixes sourceforge bug #2501709, reported by Roman Haefeli + v0.06 + fixed asymmetricity bug (thanks to iohannes for the report)
Modified: trunk/externals/moocow/pdstring/configure.in =================================================================== --- trunk/externals/moocow/pdstring/configure.in 2009-01-17 11:27:38 UTC (rev 10561) +++ trunk/externals/moocow/pdstring/configure.in 2009-01-17 12:54:30 UTC (rev 10562) @@ -4,7 +4,7 @@
dnl Some handy macros define([THE_PACKAGE_NAME], [pdstring]) -define([THE_PACKAGE_VERSION], [0.06]) +define([THE_PACKAGE_VERSION], [0.07]) define([THE_PACKAGE_AUTHOR], [moocow@ling.uni-potsdam.de])
AC_INIT(THE_PACKAGE_NAME, THE_PACKAGE_VERSION, THE_PACKAGE_AUTHOR) @@ -172,8 +172,13 @@ fi AC_SUBST(DEBUG)
+##vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv +## compiled +AC_DEFINE_UNQUOTED(PDSTRING_DATE, "`date`", [Date this external was configured]) +AC_DEFINE_UNQUOTED(PDSTRING_USER, "$USER", [User who configured this external]) +## /compiled +##^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- dnl dnl machine-dependent variables dnl
Modified: trunk/externals/moocow/pdstring/src/any2string.c =================================================================== --- trunk/externals/moocow/pdstring/src/any2string.c 2009-01-17 11:27:38 UTC (rev 10561) +++ trunk/externals/moocow/pdstring/src/any2string.c 2009-01-17 12:54:30 UTC (rev 10562) @@ -1,10 +1,10 @@ /* -*- Mode: C -*- */ /*=============================================================================*\ - * File: any2string_dynamic.c + * File: any2string.c * Author: Bryan Jurish moocow@ling.uni-potsdam.de * Description: convert pd messages to strings (dynamic allocation) * - * Copyright (c) 2004 - 2008 Bryan Jurish. + * Copyright (c) 2004 - 2009 Bryan Jurish. * * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file "COPYING", in this distribution. @@ -85,7 +85,7 @@ static void any2string_anything(t_any2string *x, t_symbol *sel, int argc, t_atom *argv) { t_atom *ap; - char *s, *s_max; + unsigned char *s, *s_max; int len;
A2SDEBUG(post("-------any2string_anything(%p,...)---------", x)); @@ -130,8 +130,8 @@ /*-- atom buffer: binbuf text --*/ A2SDEBUG(post("any2string[%p]: atom buffer: for {...}", x)); ap = x->x_argv; - s_max = x->x_text+len; - for (s=x->x_text; s < s_max; s++, ap++) { + s_max = ((unsigned char *)x->x_text)+len; + for (s=((unsigned char *)x->x_text); s < s_max; s++, ap++) { A2SDEBUG(post("any2string[%p]: atom buffer[%d]: SETFLOAT(a,%d='%c')", x, (ap-x->x_argv), *s, *s)); SETFLOAT(ap,*s); } @@ -167,7 +167,7 @@ }
//-- allocate - x->x_text = (char *)getbytes(x->x_alloc*sizeof(char)); + x->x_text = getbytes(x->x_alloc*sizeof(char)); x->x_argc = 0; x->x_argv = (t_atom *)getbytes(x->x_alloc*sizeof(t_atom)); x->x_binbuf = binbuf_new();
Modified: trunk/externals/moocow/pdstring/src/pdstring.c =================================================================== --- trunk/externals/moocow/pdstring/src/pdstring.c 2009-01-17 11:27:38 UTC (rev 10561) +++ trunk/externals/moocow/pdstring/src/pdstring.c 2009-01-17 12:54:30 UTC (rev 10562) @@ -4,7 +4,7 @@ * Author: Bryan Jurish moocow@ling.uni-potsdam.de * Description: pd string conversions : library * - * Copyright (c) 2004-2008 Bryan Jurish. + * Copyright (c) 2004-2009 Bryan Jurish. * * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file "COPYING", in this distribution. @@ -38,7 +38,6 @@ /*===================================================================== * Constants *=====================================================================*/ -static char *pdstring_version = "\npdstring version " PACKAGE_VERSION " by Bryan Jurish";
/*===================================================================== * Structures and Types: pdstring [dummy] @@ -78,7 +77,9 @@ */ static void pdstring_help(t_pdstring *x) { - post(pdstring_version); + post(""); + post("pdstring: byte-string externals version " PACKAGE_VERSION " by Bryan Jurish"); + post("pdstring: compiled by " PDSTRING_USER " on " PDSTRING_DATE); }
/*===================================================================== @@ -86,7 +87,7 @@ *=====================================================================*/ void pdstring_setup(void) { - post(pdstring_version); + pdstring_help(NULL);
#ifndef PDSTRING_OBJECT_EXTERNALS any2string_setup_guts();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.