[PD-cvs] pd/src kernel.c,1.1.2.54,1.1.2.55

Mathieu Bouchard matju at users.sourceforge.net
Sun Jul 15 07:37:40 CEST 2007


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

Modified Files:
      Tag: desiredata
	kernel.c 
Log Message:
removed stack decls now in desire.h


Index: kernel.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/kernel.c,v
retrieving revision 1.1.2.54
retrieving revision 1.1.2.55
diff -C2 -d -r1.1.2.54 -r1.1.2.55
*** kernel.c	15 Jul 2007 03:43:32 -0000	1.1.2.54
--- kernel.c	15 Jul 2007 05:37:38 -0000	1.1.2.55
***************
*** 469,479 ****
  static void stackerror(t_pd *x) {pd_error(x,"stack overflow");}
  
- #define STACKSIZE 1024
- struct t_call {
- 	t_pd *self;  /* receiver */
- 	t_symbol *s; /* selector */
- 	/* insert temporary profiling variables here */
- };
- 
  /* to enable multithreading, make those variables "thread-local". this means that they have to go in
     a thread-specific place instead of plain global. do not ever use tim's atomic counters for this,
--- 469,472 ----
***************
*** 481,485 ****
     use of the desiredata-specific stack[] variable. */
  t_call pd_stack[STACKSIZE];
! int pd_stackn = 0; /* iteration counter */
  
  #define ENTER(SELECTOR) if(pd_stackn >= STACKSIZE) {stackerror(x); LEAVE; return;} \
--- 474,478 ----
     use of the desiredata-specific stack[] variable. */
  t_call pd_stack[STACKSIZE];
! int pd_stackn = 0; /* how much of the stack is in use */
  
  #define ENTER(SELECTOR) if(pd_stackn >= STACKSIZE) {stackerror(x); LEAVE; return;} \





More information about the Pd-cvs mailing list