aboutsummaryrefslogtreecommitdiff
path: root/shared/common
diff options
context:
space:
mode:
Diffstat (limited to 'shared/common')
-rw-r--r--shared/common/binport.c4
-rw-r--r--shared/common/dict.c24
-rw-r--r--shared/common/mifi.c2
-rw-r--r--shared/common/port.c2
-rw-r--r--shared/common/props.c2
-rw-r--r--shared/common/vefl.c8
6 files changed, 26 insertions, 16 deletions
diff --git a/shared/common/binport.c b/shared/common/binport.c
index cb3d201..4fe46e8 100644
--- a/shared/common/binport.c
+++ b/shared/common/binport.c
@@ -28,9 +28,11 @@
#include "unstable/standalone.h"
-#define BINPORT_VERBOSE
+#ifdef KRZYSZCZ
//#define BINPORT_DEBUG
#endif
+#define BINPORT_VERBOSE
+#endif
#include "common/lex.h"
#include "binport.h"
diff --git a/shared/common/dict.c b/shared/common/dict.c
index 0871f81..f2dd838 100644
--- a/shared/common/dict.c
+++ b/shared/common/dict.c
@@ -10,8 +10,10 @@
#include "m_pd.h"
#include "common/dict.h"
-#define DICT_VERBOSE
+#ifdef KRZYSZCZ
//#define DICT_DEBUG
+#endif
+#define DICT_VERBOSE
#define DICT_HASHSIZE_DEFAULT 1024
#define DICT_HASHSIZE_MIN 8
@@ -62,7 +64,8 @@ t_dict *dict_new(size_t hashsize)
else for (sz = DICT_HASHSIZE_MAX; sz > DICT_HASHSIZE_MIN; sz >>= 1)
if (sz <= hashsize) break;
#ifdef DICT_DEBUG
- post("allocating dictionary with %d-element hashtable", sz);
+ fprintf(stderr,
+ "allocating dictionary with %d-element hashtable\n", sz);
#endif
if (x->d_hashtable =
getbytes((x->d_hashsize = sz) * sizeof(*x->d_hashtable)))
@@ -91,7 +94,7 @@ t_symbol *dict_dokey(t_dict *x, char *s, t_symbol *oldsym)
char *s2 = s;
int mask = x->d_hashsize - 1;
#ifdef DICT_DEBUG
- startpost("make symbol-key from \"%s\"", s);
+ fprintf(stderr, "make symbol-key from \"%s\"", s);
#endif
while (*s2)
{
@@ -102,17 +105,17 @@ t_symbol *dict_dokey(t_dict *x, char *s, t_symbol *oldsym)
}
sym1 = x->d_hashtable + (hash2 & mask);
#ifdef DICT_DEBUG
- post(" in slot %d", (hash2 & mask));
+ fprintf(stderr, " in slot %d\n", (hash2 & mask));
#endif
while (sym2 = *sym1)
{
#ifdef DICT_DEBUG
- post("try \"%s\"", sym2->s_name);
+ fprintf(stderr, "try \"%s\"\n", sym2->s_name);
#endif
if (!strcmp(sym2->s_name, s))
{
#ifdef DICT_DEBUG
- post("found at address %x", (int)sym2);
+ fprintf(stderr, "found at address %x\n", (int)sym2);
#endif
return(sym2);
}
@@ -129,7 +132,7 @@ t_symbol *dict_dokey(t_dict *x, char *s, t_symbol *oldsym)
}
*sym1 = sym2;
#ifdef DICT_DEBUG
- post("appended at address %x", (int)sym2);
+ fprintf(stderr, "appended at address %x\n", (int)sym2);
#endif
return (sym2);
}
@@ -144,12 +147,12 @@ t_symbol *dict_key(t_dict *x, char *s)
void dict_bind(t_dict *x, t_pd *obj, t_symbol *s)
{
#ifdef DICT_DEBUG
- post("bind %x to \"%s\" at %x", (int)obj, s->s_name, (int)s);
+ fprintf(stderr, "bind %x to \"%s\" at %x\n", (int)obj, s->s_name, (int)s);
#endif
if (s->s_thing)
{
#ifdef DICT_DEBUG
- post("(next one)");
+ fprintf(stderr, "(next one)\n");
#endif
if (*s->s_thing == x->d_bindlist_class)
{
@@ -183,7 +186,8 @@ void dict_bind(t_dict *x, t_pd *obj, t_symbol *s)
void dict_unbind(t_dict *x, t_pd *obj, t_symbol *s)
{
#ifdef DICT_DEBUG
- post("unbind %x from \"%s\" at %x", (int)obj, s->s_name, (int)s);
+ 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;
else if (s->s_thing && *s->s_thing == x->d_bindlist_class)
diff --git a/shared/common/mifi.c b/shared/common/mifi.c
index 1b9d367..ac491f5 100644
--- a/shared/common/mifi.c
+++ b/shared/common/mifi.c
@@ -69,7 +69,9 @@ typedef unsigned char uchar;
#endif
#endif
+#ifdef KRZYSZCZ
#define MIFI_DEBUG
+#endif
#define MIFI_VERBOSE
#define MIFI_SHORTESTEVENT 2 /* singlebyte delta and one databyte */
diff --git a/shared/common/port.c b/shared/common/port.c
index 99f8211..5c14acb 100644
--- a/shared/common/port.c
+++ b/shared/common/port.c
@@ -26,7 +26,9 @@
#include "common/binport.h"
#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 */
diff --git a/shared/common/props.c b/shared/common/props.c
index 6079308..f5f2763 100644
--- a/shared/common/props.c
+++ b/shared/common/props.c
@@ -7,7 +7,9 @@
#include "common/grow.h"
#include "common/props.h"
+#ifdef KRZYSZCZ
//#define PROPS_DEBUG
+#endif
#define PROPS_INISIZE 32 /* LATER rethink */
#define PROPS_MAXOTHERS 32
diff --git a/shared/common/vefl.c b/shared/common/vefl.c
index 19f37a2..b7230d5 100644
--- a/shared/common/vefl.c
+++ b/shared/common/vefl.c
@@ -19,12 +19,10 @@
#include "common/loud.h"
#include "common/vefl.h"
-#if 1
-#define VEFL_VERBOSE
-#if 0
-#define VEFL_DEBUG
-#endif
+#ifdef KRZYSZCZ
+//#define VEFL_DEBUG
#endif
+#define VEFL_VERBOSE
/* on failure *vszp is not modified */
t_float *vefl_get(t_symbol *name, int *vszp, int indsp, t_pd *complain)