pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:1194: Inside #if defined(PIKE_PORTABLE_BYTECODE)
  #endif /* 0 */    }    }   #endif /* PIKE_PORTABLE_BYTECODE */    /* Dump the identifiers in a portable manner... */    {    int inherit_num = 1;    struct svalue str_sval;    char *id_dumped = alloca(p->num_identifiers);    int d_min = 0; -  MEMSET(id_dumped,0,p->num_identifiers); +  memset(id_dumped,0,p->num_identifiers);    SET_SVAL(str_sval, T_STRING, 0, string, NULL);       EDB(2,    fprintf(stderr, "%*sencode: encoding references\n",    data->depth, ""));      #ifdef ENCODE_DEBUG    data->depth += 2;   #endif   
pike.git/src/encode.c:4643:    switch (args) {    default:   #ifdef ENCODE_DEBUG    debug = Pike_sp[2-args].u.integer;    /* Fall through. */    case 2:   #endif    if (TYPEOF(Pike_sp[1-args]) == T_OBJECT) {    if (SUBTYPEOF(Pike_sp[1-args])) {    struct decode_data data; -  MEMSET (&data, 0, sizeof (data)); +  memset (&data, 0, sizeof (data));    data.data_str = s; /* Not refcounted. */    decode_error(&data, NULL,    "The codec may not be a subtyped object yet.\n");    }    codec = Pike_sp[1-args].u.object;    break;    }    /* Fall through. */    case 1:    if (!get_master()) {
pike.git/src/encode.c:4673: Inside #if defined(ENCODE_DEBUG)
   if(!my_decode(s, codec   #ifdef ENCODE_DEBUG    , debug   #endif    ))    {    char *v=s->str;    ptrdiff_t l=s->len;    struct decode_data data;    ONERROR uwp; -  MEMSET (&data, 0, sizeof (data)); +  memset (&data, 0, sizeof (data));    data.data_str = s; /* Not refcounted. */    SET_ONERROR (uwp, restore_current_decode, current_decode);    current_decode = &data;    rec_restore_value(&v, &l);    CALL_AND_UNSET_ONERROR (uwp);    }    assign_svalue(Pike_sp-args-1, Pike_sp-1);    pop_n_elems(args);   }