pike.git / src / modules / _Stdio / buffer.h

version» Context lines:

pike.git/src/modules/_Stdio/buffer.h:5:    size_t offset; /* reading */    size_t len, allocated; /* writing */       struct object *this;    struct program *error_mode;       union {    struct pike_string *str; /* PIKE_T_STRING */    struct object *obj; /* PIKE_T_OBJECT */    struct _Buffer *parent; /* PIKE_T_MIXED */ -  struct object *output; /* PIKE_T_FUNCTION */ +     } source; -  INT32 sourcetype; /* type for the source union */ +  int sourcetype; /* type for the source union */    -  +  struct svalue output; +     INT32 locked, locked_move;    float max_waste;      #ifdef PIKE_DEBUG    INT_TYPE num_malloc, num_move; /* debug mainly, for testsuite*/   #endif   };      struct rewind_to {    struct _Buffer *io;
pike.git/src/modules/_Stdio/buffer.h:71:   PIKE_UNUSED_ATTRIBUTE   static INT_TYPE io_consume( Buffer *io, ptrdiff_t num )   {    io->offset += num;    return io_len(io);   }      PIKE_UNUSED_ATTRIBUTE   static void io_trigger_output( Buffer *io )   { -  if (UNLIKELY(io->sourcetype == PIKE_T_FUNCTION)) +  if( UNLIKELY(io->output.u.object) )    io_actually_trigger_output(io);   }