aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/6.externs
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-09-23 00:21:28 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-09-23 00:21:28 +0000
commit64fdb009695828b788fce074135b20a5e52c5fc4 (patch)
treea05144197dd339721b6d4a3a0927f7596e8872b6 /pd/doc/6.externs
parenta30193fcd726552364de74984b200be2c30723e7 (diff)
imported version 0.37-0
svn path=/trunk/; revision=1016
Diffstat (limited to 'pd/doc/6.externs')
-rw-r--r--pd/doc/6.externs/foo1.c37
-rw-r--r--pd/doc/6.externs/foo2.c49
-rw-r--r--pd/doc/6.externs/test-foo1.pd6
-rw-r--r--pd/doc/6.externs/test-foo2.pd8
4 files changed, 0 insertions, 100 deletions
diff --git a/pd/doc/6.externs/foo1.c b/pd/doc/6.externs/foo1.c
deleted file mode 100644
index 48d0d344..00000000
--- a/pd/doc/6.externs/foo1.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/* code for foo1 pd class */
-
-#include "m_pd.h"
-
-typedef struct foo1
-{
- t_object t_ob;
-} t_foo1;
-
-void foo1_float(t_foo1 *x, t_floatarg f)
-{
- post("foo1: %f", f);
-}
-
-void foo1_rats(t_foo1 *x)
-{
- post("foo1: rats");
-}
-
-t_class *foo1_class;
-
-void *foo1_new(void)
-{
- t_foo1 *x = (t_foo1 *)pd_new(foo1_class);
- post("foo1_new");
- return (void *)x;
-}
-
-void foo1_setup(void)
-{
- post("foo1_setup");
- foo1_class = class_new(gensym("foo1"), (t_newmethod)foo1_new, 0,
- sizeof(t_foo1), 0, 0);
- class_addmethod(foo1_class, (t_method)foo1_rats, gensym("rats"), 0);
- class_addfloat(foo1_class, foo1_float);
-}
-
diff --git a/pd/doc/6.externs/foo2.c b/pd/doc/6.externs/foo2.c
deleted file mode 100644
index e68ed996..00000000
--- a/pd/doc/6.externs/foo2.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* code for foo2 pd class */
-
-#include "m_pd.h"
-
-typedef struct foo2
-{
- t_object t_ob;
-} t_foo2;
-
-void foo2_float(t_foo2 *x, t_floatarg f)
-{
- post("foo2: %f", f);
-}
-
-void foo2_rats(t_foo2 *x)
-{
- post("foo2: rats");
-}
-
-void foo2_ft1(t_foo2 *x, t_floatarg g)
-{
- post("ft1: %f", g);
-}
-
-void foo2_free(void)
-{
- post("foo2_free");
-}
-
-t_class *foo2_class;
-
-void *foo2_new(void)
-{
- t_foo2 *x = (t_foo2 *)pd_new(foo2_class);
- inlet_new(&x->t_ob, &x->t_ob.ob_pd, gensym("float"), gensym("ft1"));
- post("foo2_new");
- return (void *)x;
-}
-
-void foo2_setup(void)
-{
- post("foo2_setup");
- foo2_class = class_new(gensym("foo2"), (t_newmethod)foo2_new,
- (t_method)foo2_free, sizeof(t_foo2), 0, 0);
- class_addmethod(foo2_class, (t_method)foo2_rats, gensym("rats"), 0);
- class_addmethod(foo2_class, (t_method)foo2_ft1, gensym("ft1"), A_FLOAT, 0);
- class_addfloat(foo2_class, foo2_float);
-}
-
diff --git a/pd/doc/6.externs/test-foo1.pd b/pd/doc/6.externs/test-foo1.pd
deleted file mode 100644
index 280be821..00000000
--- a/pd/doc/6.externs/test-foo1.pd
+++ /dev/null
@@ -1,6 +0,0 @@
-#N canvas 68 38 269 168 10;
-#X obj 68 90 foo1;
-#X msg 68 52 5;
-#X msg 100 52 rats;
-#X connect 1 0 0 0;
-#X connect 2 0 0 0;
diff --git a/pd/doc/6.externs/test-foo2.pd b/pd/doc/6.externs/test-foo2.pd
deleted file mode 100644
index be62e140..00000000
--- a/pd/doc/6.externs/test-foo2.pd
+++ /dev/null
@@ -1,8 +0,0 @@
-#N canvas 171 53 269 164 10;
-#X msg 100 52 rats;
-#X obj 68 90 foo2;
-#X msg 155 55 7;
-#X msg 68 52 4;
-#X connect 0 0 1 0;
-#X connect 2 0 1 1;
-#X connect 3 0 1 0;