pike.git / src / main.c

version» Context lines:

pike.git/src/main.c:27:   #include "cpp.h"   #include "main.h"   #include "operators.h"   #include "rbtree.h"   #include "constants.h"   #include "version.h"   #include "program.h"   #include "pike_rusage.h"   #include "module_support.h"   #include "opcodes.h" + #include "buffer.h"      #include "pike_embed.h"      #ifdef LIBPIKE   #if defined(HAVE_DLOPEN) && defined(HAVE_DLFCN_H)   #include <dlfcn.h>   #undef LIBPIKE   #endif   #endif   
pike.git/src/main.c:633:    {    num=throw_value.u.integer;    }else{    if (TYPEOF(throw_value) == T_OBJECT &&    throw_value.u.object->prog == master_load_error_program &&    !get_master()) {    /* Report this specific error in a nice way. Since there's no    * master it'd be reported with a raw error dump otherwise. */    struct generic_error_struct *err;    -  dynamic_buffer buf; -  dynbuf_string s; +  struct byte_buffer buf = BUFFER_INIT();    struct svalue t;       move_svalue (Pike_sp++, &throw_value);    mark_free_svalue (&throw_value);    err =    get_storage (Pike_sp[-1].u.object, generic_error_program);       SET_SVAL(t, PIKE_T_STRING, 0, string, err->error_message);    -  init_buf(&buf); -  describe_svalue(&t,0,0); -  s=complex_free_buf(&buf); -  buffer_add_char(&s, 0); -  fputs(buffer_ptr(&s), stderr); -  buffer_free(&s); +  describe_svalue(&buf, &t,0,0); +  fputs(buffer_get_string(&buf), stderr); +  buffer_free(&buf);    }    else    call_handle_error();    num=10;    }    }else{    struct object *m;       back.severity=THROW_EXIT;