aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-08-21 19:14:19 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-08-21 19:14:19 +0000
commitef58f9caaa803c1d42b8c5b9b6e0a208968478ac (patch)
tree0f106b201c79d01119ae958d24c15de0472b6e73
parent65a9802fa801fafa37f7864eceeed28fafe0c2e0 (diff)
add template.c and fix warning in mycobject.c
svn path=/trunk/externals/template/; revision=13879
-rw-r--r--mycobject.c2
-rw-r--r--template.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/mycobject.c b/mycobject.c
index 0020de5..20dad23 100644
--- a/mycobject.c
+++ b/mycobject.c
@@ -15,12 +15,14 @@ typedef struct mycobject
void mycobject_float(t_mycobject *x, t_floatarg f)
{
post("mycobject: %f", f);
+ x=NULL; /* don't warn about unused variables */
}
/* this is called when mycobject gets the message, "rats". */
void mycobject_rats(t_mycobject *x)
{
post("mycobject: rats");
+ x=NULL; /* don't warn about unused variables */
}
/* this is a pointer to the class for "mycobject", which is created in the
diff --git a/template.c b/template.c
new file mode 100644
index 0000000..98f1b7f
--- /dev/null
+++ b/template.c
@@ -0,0 +1,8 @@
+/* glue code for compiling "template" as a library
+ * this calls the setup function of each object
+ */
+void mycobject_setup(void);
+
+void template_setup(void) {
+ mycobject_setup();
+}