[PD-cvs] externals/grill/flext/source flattr_ed.cpp,1.23,1.24 flqueue.cpp,1.19,1.20

Thomas Grill xovo at users.sourceforge.net
Sun Nov 7 04:30:48 CET 2004


Update of /cvsroot/pure-data/externals/grill/flext/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2616/source

Modified Files:
	flattr_ed.cpp flqueue.cpp 
Log Message:
more character escaping for attribute editor
made queue length longer and added overflow checks
reoccuring fix....


Index: flqueue.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/flqueue.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** flqueue.cpp	26 Sep 2004 22:55:15 -0000	1.19
--- flqueue.cpp	7 Nov 2004 03:30:45 -0000	1.20
***************
*** 27,31 ****
  
  
! #define QUEUE_LENGTH 256
  #define QUEUE_ATOMS 1024
  
--- 27,31 ----
  
  
! #define QUEUE_LENGTH 512
  #define QUEUE_ATOMS 1024
  
***************
*** 147,157 ****
      t_atom *GetAtoms(int argc)
      {
-         // \todo check for available space
- 
          if(atail+argc >= QUEUE_ATOMS) {
              atail = argc;
              return atoms;
          }
          else {
              t_atom *at = atoms+atail;
              atail += argc;
--- 147,157 ----
      t_atom *GetAtoms(int argc)
      {
          if(atail+argc >= QUEUE_ATOMS) {
+             FLEXT_ASSERT(ahead > argc);
              atail = argc;
              return atoms;
          }
          else {
+             FLEXT_ASSERT(ahead <= atail || ahead > atail+argc);
              t_atom *at = atoms+atail;
              atail += argc;

Index: flattr_ed.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/flattr_ed.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** flattr_ed.cpp	4 Nov 2004 03:30:38 -0000	1.23
--- flattr_ed.cpp	7 Nov 2004 03:30:42 -0000	1.24
***************
*** 428,432 ****
  {
      int ret = 0;
!     for(char *d = dst; *src && (d-dst) < (int)maxlen; ++src) {
          if(*src == '%')
              *(d++) = '%',*(d++) = '%';
--- 428,433 ----
  {
      int ret = 0;
!     char *d;
!     for(d = dst; *src && (d-dst) < (int)maxlen; ++src) {
          if(*src == '%')
              *(d++) = '%',*(d++) = '%';





More information about the Pd-cvs mailing list