From 5427a199aac32acf3c99f4381c694db5ab88e9f2 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 20 Dec 2006 16:24:29 +0000 Subject: fixed sloppy global variable declarations so that things compile properly with full compiler optimizations svn path=/trunk/externals/hcs/hid/; revision=7038 --- hid.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'hid.c') diff --git a/hid.c b/hid.c index 5711ea3..d8598b1 100644 --- a/hid.c +++ b/hid.c @@ -53,6 +53,21 @@ static void hid_open(t_hid *x, t_symbol *s, int argc, t_atom *argv); //static void hid_float(t_hid* x, t_floatarg f); +/*------------------------------------------------------------------------------ + * GLOBAL VARIABLES DECLARED extern IN hid.h + */ +t_int hid_instance_count; +unsigned short device_count; + +/* this is used to test for the first instance to execute */ +double last_execute_time[MAX_DEVICES]; + +/* store element structs to eliminate symbol table lookups, etc. */ +t_hid_element *element[MAX_DEVICES][MAX_ELEMENTS]; +/* number of active elements per device */ +unsigned short element_count[MAX_DEVICES]; + + /*------------------------------------------------------------------------------ * SUPPORT FUNCTIONS */ -- cgit v1.2.1