[PD-cvs] pd/src desire.c,1.1.2.60,1.1.2.61

Thomas Grill xovo at users.sourceforge.net
Fri Nov 25 00:18:04 CET 2005


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19474/src

Modified Files:
      Tag: devel_0_39
	desire.c 
Log Message:
fixes for Windows

Index: desire.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v
retrieving revision 1.1.2.60
retrieving revision 1.1.2.61
diff -C2 -d -r1.1.2.60 -r1.1.2.61
*** desire.c	24 Nov 2005 21:36:03 -0000	1.1.2.60
--- desire.c	24 Nov 2005 23:18:02 -0000	1.1.2.61
***************
*** 24,35 ****
  #include "m_simd.h"
  
  #define L fprintf(stderr,"%s:%d in %s\n",__FILE__,__LINE__,__PRETTY_FUNCTION__);
  #define LS fprintf(stderr,"%s:%d in %s (self=%lx\n",__FILE__,__LINE__,__PRETTY_FUNCTION__,(long)self);\
  	fprintf(stderr,"class=%s)\n",((t_gobj *)self)->g_pd->c_name->s_name);
  
- #ifdef _MSC_VER
- // we don't have macro varargs here....
- #define sys_vgui
- #else
  #define sys_vgui(args...) do { \
  	fprintf(stderr,"\e[0;1;31m"); \
--- 24,40 ----
  #include "m_simd.h"
  
+ #ifdef _MSC_VER
+ /*
+ #define L fprintf(stderr,"%s:%d\n",__FILE__,__LINE__);
+ #define LS fprintf(stderr,"%s:%d (self=%lx\n",__FILE__,__LINE__,(long)self);\
+ 	fprintf(stderr,"class=%s)\n",((t_gobj *)self)->g_pd->c_name->s_name);
+ */
+ /* no sys_vgui logging for MSVC... we have no vararg macros */
+ 
+ #else
  #define L fprintf(stderr,"%s:%d in %s\n",__FILE__,__LINE__,__PRETTY_FUNCTION__);
  #define LS fprintf(stderr,"%s:%d in %s (self=%lx\n",__FILE__,__LINE__,__PRETTY_FUNCTION__,(long)self);\
  	fprintf(stderr,"class=%s)\n",((t_gobj *)self)->g_pd->c_name->s_name);
  
  #define sys_vgui(args...) do { \
  	fprintf(stderr,"\e[0;1;31m"); \
***************
*** 161,169 ****
  void manager_call (void *foo) {
  	t_manager *self = (t_manager *)foo;
! 	//if (self->q->len) post("manager_call: %d notices",self->q->len);
  	while (!queue_empty(self->q)) {
  		t_gobj *o = (t_gobj *)queue_get(self->q);
  		if (!o->g_adix->dirtyc) continue;
! 		//post("UPLOADING a %s",o->g_pd->c_name->s_name);
  		pd_upload(o);
  		o->g_adix->dirtyc = 0;
--- 166,174 ----
  void manager_call (void *foo) {
  	t_manager *self = (t_manager *)foo;
! 	if (self->q->len) post("manager_call: %d notices",self->q->len);
  	while (!queue_empty(self->q)) {
  		t_gobj *o = (t_gobj *)queue_get(self->q);
  		if (!o->g_adix->dirtyc) continue;
! 		post("UPLOADING a %s",o->g_pd->c_name->s_name);
  		pd_upload(o);
  		o->g_adix->dirtyc = 0;
***************
*** 174,179 ****
  void manager_notice (t_gobj *self_, t_gobj *origin, int argc, t_atom *argv) {
  	t_manager *self = (t_manager *)self_;
- 	//post("manager_notice(%p,%p,%d,...)",self,origin,argc);
  	t_appendix *a = (t_appendix *)origin->g_adix;
  	if (!a->dirtyc) {
  		queue_put(self->q,origin);
--- 179,184 ----
  void manager_notice (t_gobj *self_, t_gobj *origin, int argc, t_atom *argv) {
  	t_manager *self = (t_manager *)self_;
  	t_appendix *a = (t_appendix *)origin->g_adix;
+ 	post("manager_notice(%p,%p,%d,...)",self,origin,argc);
  	if (!a->dirtyc) {
  		queue_put(self->q,origin);





More information about the Pd-cvs mailing list