pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:173:    if (data->codec) return data->codec;    MAKE_CONST_STRING (encoder_str, "Encoder");    return data->codec = lookup_codec (encoder_str);   }      /* Convert to/from forward reference ID. */   #define CONVERT_ENTRY_ID(ID) (-((ID) - COUNTER_START) - (-COUNTER_START + 1))      static void encode_value2(struct svalue *val, struct encode_data *data, int force_encode);    - #ifdef PIKE_DEBUG + #ifdef ENCODE_DEBUG   static void debug_dump_mem(size_t offset, const unsigned char *bytes,    size_t len)   {    size_t i;    for (i = 0; i < len; i += 8) {    size_t j;    fprintf(stderr, " %08x: ", offset + i);    for (j = 0; (i+j < len) && (j < 8); j++) {    fprintf(stderr, "%02x", bytes[i+j]);    }
pike.git/src/encode.c:1977:    return data->codec = lookup_codec (decoder_str);   }      static void decode_value2(struct decode_data *data);      static int my_extract_char(struct decode_data *data)   {    if(data->ptr >= data->len)    Pike_error("Not enough data in string.\n");    - #ifdef PIKE_DEBUG + #ifdef ENCODE_DEBUG    if (data->debug >= 6) {    debug_dump_mem(data->ptr, data->data + data->ptr, 1);    }   #endif /* PIKE_DEBUG */    return data->data [ data->ptr++ ];   }      static DECLSPEC(noreturn) void decode_error (    struct decode_data *data, struct svalue *decoding, const char *msg, ...)    ATTRIBUTE((noinline,noreturn));