pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:1986:   #define DECODE(Z) do { \    EDB(5, \    fprintf(stderr,"%*sdecode(%s) at %d: ", \    data->depth,"",(Z),__LINE__)); \    what=GETC(); \    e=what>>SIZE_SHIFT; \    if(what & TAG_SMALL) { \    num=e; \    } else { \    num = 0; \ -  while(e-->=0) num = ((unsigned INT64)num<<8) \ +  while(e-->=0) num = ((UINT64)num<<8) \    + (GETC()+1); \    num += MAX_SMALL - 1; \    } \    if(what & TAG_NEG) { \    num = ~num; \    } \    EDB(5, \    fprintf(stderr,"type=%d (%s), num=%ld\n", \    (what & TAG_MASK), \    get_name_of_type(tag_to_type(what & TAG_MASK)), \
pike.git/src/encode.c:2058:    sz, data->len - data->ptr); \    STR=make_shared_binary_string((char *)(data->data + data->ptr), sz); \    data->ptr += sz; \    } \   }while(0)      #define decode_number(X,data) do { \    INT32 what, e; \    INT64 num; \    DECODE("decode_number"); \ -  X=(what & TAG_MASK) | ((unsigned INT64)num<<4); \ +  X=(what & TAG_MASK) | ((UINT64)num<<4); \    EDB(5, fprintf(stderr, "%*s ==>%ld\n", \    data->depth, "", (long) X)); \    }while(0) \         static void restore_type_stack(struct pike_type **old_stackp)   {   #ifdef PIKE_DEBUG    if (old_stackp > Pike_compiler->type_stackp) {    Pike_fatal("type stack out of sync!\n");