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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:18:   #include "backend.h"   #include "fd_control.h"   #include "file_machine.h"   #include "file.h"   #include "whitespace.h"   #include "pike_types.h"   #include "pike_threadlib.h"   #include "buffer.h"   #include "module_support.h"    + #ifdef HAVE_ARPA_INET_H   #include <arpa/inet.h> -  + #endif +    #undef MP_INT   #include <gmp.h>    -  + #ifndef HAVE_SSIZE_T + #define ssize_t SIZE_T + #endif /* HAVE_SSIZE_T */ +    #define DEFAULT_CMOD_STORAGE static   DECLARATIONS      struct sysmem {    unsigned char *p;    size_t size;   };      static struct program *buffer_error_program;   
pike.git/src/modules/_Stdio/buffer.cmod:365:    err = clone_object(io->error_mode,2);    }    else    err = clone_object(io->error_mode,1);       push_object(err);    f_throw(1);    }    }    -  static struct pike_string *io_read_string( Buffer *io, ssize_t len ) -  ATTRIBUTE((noclone,noinline)); +  static struct pike_string *io_read_string( Buffer *io, ssize_t len ) ATTRIBUTE((noclone,noinline)); +     static size_t io_rewind( Buffer *io, INT_TYPE n );       static void io_do_rewind_on_error( struct rewind_to *e )    {    e->io->locked_move--;    e->io->offset = e->rewind_to;    free( e );    }       static void io_rewind_on_error( Buffer *io, ONERROR *x )