[PD-cvs] SF.net SVN: pure-data: [10084] branches/pd-extended/v0-40/externals/hcs/hid /hid.c

eighthave at users.sourceforge.net eighthave at users.sourceforge.net
Tue Jun 24 19:47:09 CEST 2008


Revision: 10084
          http://pure-data.svn.sourceforge.net/pure-data/?rev=10084&view=rev
Author:   eighthave
Date:     2008-06-24 10:47:09 -0700 (Tue, 24 Jun 2008)

Log Message:
-----------
updated init of global_debug_level so that it is only init'ed when the objectclass is loaded, not on each new instance

Modified Paths:
--------------
    branches/pd-extended/v0-40/externals/hcs/hid/hid.c

Modified: branches/pd-extended/v0-40/externals/hcs/hid/hid.c
===================================================================
--- branches/pd-extended/v0-40/externals/hcs/hid/hid.c	2008-06-24 17:31:10 UTC (rev 10083)
+++ branches/pd-extended/v0-40/externals/hcs/hid/hid.c	2008-06-24 17:47:09 UTC (rev 10084)
@@ -38,7 +38,7 @@
 #define DEBUG(x)
 //#define DEBUG(x) x 
 
-unsigned short global_debug_level;
+unsigned short global_debug_level = 0; /* higher numbers means more messages */
 
 static t_class *hid_class;
 
@@ -452,7 +452,6 @@
 #endif
 
   /* init vars */
-  global_debug_level = 0; /* high numbers here means see more messages */
   x->x_has_ff = 0;
   x->x_device_open = 0;
   x->x_started = 0;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list