Update of /cvsroot/pure-data/externals/miXed/shared/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4606/shared/common
Modified Files: binport.c dict.c mifi.c port.c props.c vefl.c Log Message: restricted debug garbage to krzYszcz, few fixes in toxy
Index: vefl.c =================================================================== RCS file: /cvsroot/pure-data/externals/miXed/shared/common/vefl.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** vefl.c 23 May 2003 12:29:52 -0000 1.1.1.1 --- vefl.c 10 Dec 2004 20:47:03 -0000 1.2 *************** *** 20,29 **** #include "common/vefl.h"
! #if 1 ! #define VEFL_VERBOSE ! #if 0 ! #define VEFL_DEBUG ! #endif #endif
/* on failure *vszp is not modified */ --- 20,27 ---- #include "common/vefl.h"
! #ifdef KRZYSZCZ ! //#define VEFL_DEBUG #endif + #define VEFL_VERBOSE
/* on failure *vszp is not modified */
Index: binport.c =================================================================== RCS file: /cvsroot/pure-data/externals/miXed/shared/common/binport.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** binport.c 8 Dec 2004 15:40:12 -0000 1.6 --- binport.c 10 Dec 2004 20:47:03 -0000 1.7 *************** *** 29,35 **** #include "unstable/standalone.h"
! #define BINPORT_VERBOSE //#define BINPORT_DEBUG #endif
#include "common/lex.h" --- 29,37 ---- #include "unstable/standalone.h"
! #ifdef KRZYSZCZ //#define BINPORT_DEBUG #endif + #define BINPORT_VERBOSE + #endif
#include "common/lex.h"
Index: port.c =================================================================== RCS file: /cvsroot/pure-data/externals/miXed/shared/common/port.c,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** port.c 8 Dec 2004 15:40:12 -0000 1.14 --- port.c 10 Dec 2004 20:47:03 -0000 1.15 *************** *** 27,31 **** --- 27,33 ---- #include "common/port.h"
+ #ifdef KRZYSZCZ //#define PORT_DEBUG + #endif #define PORT_LOG #define PORT_DUMP /* fill separate files with ignored data, e.g. pictures */
Index: props.c =================================================================== RCS file: /cvsroot/pure-data/externals/miXed/shared/common/props.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** props.c 3 Oct 2003 12:08:31 -0000 1.2 --- props.c 10 Dec 2004 20:47:03 -0000 1.3 *************** *** 8,12 **** --- 8,14 ---- #include "common/props.h"
+ #ifdef KRZYSZCZ //#define PROPS_DEBUG + #endif
#define PROPS_INISIZE 32 /* LATER rethink */
Index: mifi.c =================================================================== RCS file: /cvsroot/pure-data/externals/miXed/shared/common/mifi.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mifi.c 8 Dec 2004 15:40:12 -0000 1.3 --- mifi.c 10 Dec 2004 20:47:03 -0000 1.4 *************** *** 70,74 **** --- 70,76 ---- #endif
+ #ifdef KRZYSZCZ #define MIFI_DEBUG + #endif #define MIFI_VERBOSE
Index: dict.c =================================================================== RCS file: /cvsroot/pure-data/externals/miXed/shared/common/dict.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** dict.c 8 Dec 2004 15:40:12 -0000 1.2 --- dict.c 10 Dec 2004 20:47:03 -0000 1.3 *************** *** 11,16 **** #include "common/dict.h"
! #define DICT_VERBOSE //#define DICT_DEBUG
#define DICT_HASHSIZE_DEFAULT 1024 --- 11,18 ---- #include "common/dict.h"
! #ifdef KRZYSZCZ //#define DICT_DEBUG + #endif + #define DICT_VERBOSE
#define DICT_HASHSIZE_DEFAULT 1024 *************** *** 63,67 **** if (sz <= hashsize) break; #ifdef DICT_DEBUG ! post("allocating dictionary with %d-element hashtable", sz); #endif if (x->d_hashtable = --- 65,70 ---- if (sz <= hashsize) break; #ifdef DICT_DEBUG ! fprintf(stderr, ! "allocating dictionary with %d-element hashtable\n", sz); #endif if (x->d_hashtable = *************** *** 92,96 **** int mask = x->d_hashsize - 1; #ifdef DICT_DEBUG ! startpost("make symbol-key from "%s"", s); #endif while (*s2) --- 95,99 ---- int mask = x->d_hashsize - 1; #ifdef DICT_DEBUG ! fprintf(stderr, "make symbol-key from "%s"", s); #endif while (*s2) *************** *** 103,117 **** sym1 = x->d_hashtable + (hash2 & mask); #ifdef DICT_DEBUG ! post(" in slot %d", (hash2 & mask)); #endif while (sym2 = *sym1) { #ifdef DICT_DEBUG ! post("try "%s"", sym2->s_name); #endif if (!strcmp(sym2->s_name, s)) { #ifdef DICT_DEBUG ! post("found at address %x", (int)sym2); #endif return(sym2); --- 106,120 ---- sym1 = x->d_hashtable + (hash2 & mask); #ifdef DICT_DEBUG ! fprintf(stderr, " in slot %d\n", (hash2 & mask)); #endif while (sym2 = *sym1) { #ifdef DICT_DEBUG ! fprintf(stderr, "try "%s"\n", sym2->s_name); #endif if (!strcmp(sym2->s_name, s)) { #ifdef DICT_DEBUG ! fprintf(stderr, "found at address %x\n", (int)sym2); #endif return(sym2); *************** *** 130,134 **** *sym1 = sym2; #ifdef DICT_DEBUG ! post("appended at address %x", (int)sym2); #endif return (sym2); --- 133,137 ---- *sym1 = sym2; #ifdef DICT_DEBUG ! fprintf(stderr, "appended at address %x\n", (int)sym2); #endif return (sym2); *************** *** 145,154 **** { #ifdef DICT_DEBUG ! post("bind %x to "%s" at %x", (int)obj, s->s_name, (int)s); #endif if (s->s_thing) { #ifdef DICT_DEBUG ! post("(next one)"); #endif if (*s->s_thing == x->d_bindlist_class) --- 148,157 ---- { #ifdef DICT_DEBUG ! fprintf(stderr, "bind %x to "%s" at %x\n", (int)obj, s->s_name, (int)s); #endif if (s->s_thing) { #ifdef DICT_DEBUG ! fprintf(stderr, "(next one)\n"); #endif if (*s->s_thing == x->d_bindlist_class) *************** *** 184,188 **** { #ifdef DICT_DEBUG ! post("unbind %x from "%s" at %x", (int)obj, s->s_name, (int)s); #endif if (s->s_thing == obj) s->s_thing = 0; --- 187,192 ---- { #ifdef DICT_DEBUG ! fprintf(stderr, "unbind %x from "%s" at %x\n", ! (int)obj, s->s_name, (int)s); #endif if (s->s_thing == obj) s->s_thing = 0;