aboutsummaryrefslogtreecommitdiff
path: root/toxy
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-08-01 17:35:10 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-08-01 17:35:10 +0000
commit095e10a6a17420dd31d1f5f592b639f100275057 (patch)
tree7b1c278604a4a5feeb896f9fe2ab4ab2d23393d5 /toxy
parent47c48c71f7b95aee1347fa4e02c0de09eef1234d (diff)
replace .x%x 32-bit only canvas id with .x%lx canvas id which supports 32-bit and 64-bit
svn path=/trunk/externals/miXed/; revision=15186
Diffstat (limited to 'toxy')
-rw-r--r--toxy/tot.c10
-rw-r--r--toxy/widget.c6
2 files changed, 8 insertions, 8 deletions
diff --git a/toxy/tot.c b/toxy/tot.c
index 0fb5763..58a21b9 100644
--- a/toxy/tot.c
+++ b/toxy/tot.c
@@ -157,7 +157,7 @@ static t_symbol *tot_dogetpathname(t_tot *x, int visedonly, int complain)
else
{
char buf[32];
- sprintf(buf, ".x%x.c", (int)cv);
+ sprintf(buf, ".x%lx.c", (int)cv);
return (gensym(buf));
}
}
@@ -399,7 +399,7 @@ static void tot_detach(t_tot *x)
t_pd *gc;
t_symbol *target;
char buf[64];
- sprintf(buf, ".x%x", (int)cv);
+ sprintf(buf, ".x%lx", (int)cv);
target = gensym(buf);
if (!tot_guiconnect_class)
{
@@ -426,7 +426,7 @@ static void tot_attach(t_tot *x)
t_pd *gc;
t_symbol *target;
char buf[64];
- sprintf(buf, ".x%x", (int)cv);
+ sprintf(buf, ".x%lx", (int)cv);
target = gensym(buf);
if (gc = pd_findbyclass(target, tot_guiconnect_class))
{
@@ -461,7 +461,7 @@ static void tot_capture(t_tot *x, t_symbol *s, t_floatarg f)
{
char buf[64];
ts->ts_cv = cv;
- sprintf(buf, ".x%x", (int)cv);
+ sprintf(buf, ".x%lx", (int)cv);
pd_bind((t_pd *)ts, ts->ts_target = gensym(buf));
}
}
@@ -592,7 +592,7 @@ static void *tot_new(t_symbol *s1, t_symbol *s2)
glist = tot_getglist(x);
if (glist == x->x_glist)
{
- sprintf(buf, ".x%x.c", (int)glist);
+ sprintf(buf, ".x%lx.c", (int)glist);
x->x_cvpathname = gensym(buf);
}
else x->x_cvpathname = 0;
diff --git a/toxy/widget.c b/toxy/widget.c
index 71c24a8..c2306f9 100644
--- a/toxy/widget.c
+++ b/toxy/widget.c
@@ -204,7 +204,7 @@ static t_symbol *widget_getcvpathname(t_widget *x, t_glist *glist)
else
{
char buf[32];
- sprintf(buf, ".x%x.c", (int)cv);
+ sprintf(buf, ".x%lx.c", (int)cv);
return (gensym(buf));
}
}
@@ -1145,9 +1145,9 @@ static void *widget_new(t_symbol *s, int ac, t_atom *av)
if (!(x->x_tkclass = widgettype_tkclass(x->x_typedef)))
x->x_tkclass = x->x_type;
- sprintf(buf, ".x%x.c", (int)x->x_glist);
+ sprintf(buf, ".x%lx.c", (int)x->x_glist);
x->x_cvpathname = gensym(buf);
- sprintf(buf, ".x%x", (int)x->x_glist);
+ sprintf(buf, ".x%lx", (int)x->x_glist);
x->x_cvtarget = gensym(buf);
sprintf(buf, "::toxy::v%x", (int)x);
x->x_varname = gensym(buf);