aboutsummaryrefslogtreecommitdiff
path: root/shared/unstable
diff options
context:
space:
mode:
Diffstat (limited to 'shared/unstable')
-rw-r--r--shared/unstable/forky.c11
-rw-r--r--shared/unstable/forky.h1
2 files changed, 9 insertions, 3 deletions
diff --git a/shared/unstable/forky.c b/shared/unstable/forky.c
index be4dced..100f0af 100644
--- a/shared/unstable/forky.c
+++ b/shared/unstable/forky.c
@@ -10,6 +10,11 @@
#if FORKY_VERSION < 37
/* need this for t_class::c_wb field access */
#include "unstable/pd_imp.h"
+
+t_pd *pd_newest(void)
+{
+ return (0);
+}
#endif
#define FORKY_DEBUG
@@ -27,10 +32,10 @@ void forky_setsavefn(t_class *c, t_forkysavefn fn)
post("cloning widgetbehavior...");
#endif
*wb = *c->c_wb;
- wb->w_savefn = sf;
+ wb->w_savefn = fn;
class_setwidget(c, wb);
}
- else c->c_wb->w_savefn = sf;
+ else c->c_wb->w_savefn = fn;
#endif
}
@@ -42,7 +47,7 @@ void forky_setpropertiesfn(t_class *c, t_forkypropertiesfn fn)
/* assuming wb has already been either cloned (in forky_setsavefn),
or defined from scratch -- it is unlikely to ever need props without
a specialized save (always be sure to set props after save, though). */
- c->c_wb->w_propertiesfn = pf;
+ c->c_wb->w_propertiesfn = fn;
#endif
}
diff --git a/shared/unstable/forky.h b/shared/unstable/forky.h
index cd0dbd8..a32f8d6 100644
--- a/shared/unstable/forky.h
+++ b/shared/unstable/forky.h
@@ -17,6 +17,7 @@
#define FORKY_WIDGETPADDING
#else
#define FORKY_WIDGETPADDING 0,0
+t_pd *pd_newest(void);
#endif
typedef void (*t_forkysavefn)(t_gobj *x, t_binbuf *bb);