Branch: Tag:

2014-09-08

2014-09-08 16:20:37 by Henrik Grubbström (Grubba) <grubba@grubba.org>

IOBuffer: Survive cyclic arrays.

8:   #include "sscanf.h"   #include "builtin_functions.h"   #include "interpret.h" + #include "cyclic.h"   #include "backend.h"   #include "fd_control.h"   #include "file_machine.h"
750:    {    struct array *argp = p->u.array;    INT_TYPE i; +  DECLARE_CYCLIC(); +  +  if (BEGIN_CYCLIC(io, argp)) +  Pike_error("Attempt to append a cyclic array to a buffer.\n"); +     for(i=0; i<argp->size; i++ )    io_append_svalue( io, argp->item+i ); -  +  +  END_CYCLIC();    }    break;    case PIKE_T_OBJECT: