# HG changeset patch # User mas01cr # Date 1246892995 0 # Node ID ae2eeec4d41d9989461dd7820da81226b3a53678 # Parent 7293a11b0fecbd78695b1b211621814bb121188f No more warnings in the PD external with -Wall Include necessary headers; remove initializer for spec (I confess, I'm not sure why); add a create method in the class. diff -r 7293a11b0fec -r ae2eeec4d41d bindings/pd/adbpd.c --- a/bindings/pd/adbpd.c Mon Jul 06 15:09:54 2009 +0000 +++ b/bindings/pd/adbpd.c Mon Jul 06 15:09:55 2009 +0000 @@ -6,7 +6,7 @@ #include #include #include - +#include #include @@ -171,7 +171,7 @@ adb_query_id_t qid = {0}; adb_query_parameters_t params = {0}; adb_query_refine_t refine = {0}; - adb_query_spec_t spec = {0}; + adb_query_spec_t spec; // Configure the start+length of the query, and zero // the flags initially. @@ -406,6 +406,7 @@ class_addfloat(adbpd_class, adbpd_setsequencelength); class_addmethod(adbpd_class, (t_method)adbpd_setname, gensym("set"), A_GIMME, 0); class_addmethod(adbpd_class, (t_method)adbpd_getname, gensym("get"), A_NULL); + class_addmethod(adbpd_class, (t_method)adbpd_create, gensym("create"), A_NULL); class_addmethod(adbpd_class, (t_method)adbpd_open, gensym("open"), A_NULL); class_addmethod(adbpd_class, (t_method)adbpd_status, gensym("status"), A_NULL); class_addmethod(adbpd_class, (t_method)adbpd_l2norm, gensym("l2norm"), A_NULL);