pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:2122:    if (sz < 0) \    decode_error (data, NULL, "Illegal negative size %td.\n", sz); \    if (sz > data->len - data->ptr) \    decode_error (data, NULL, "Too large size %td (max is %td).\n", \    sz, data->len - data->ptr); \    STR=make_shared_binary_string((char *)(data->data + data->ptr), sz); \    data->ptr += sz; \    } \   }while(0)    - #define getdata(X) do { \ -  long length; \ -  decode_entry(TAG_STRING, length,data); \ -  if(data->pass == 1) \ -  get_string_data(X, length, data); \ -  else \ -  data->ptr+=length; \ -  }while(0) -  - #define getdata3(X) do { \ -  INT32 what, e; \ -  INT64 num; \ -  DECODE("getdata3"); \ -  switch(what & TAG_MASK) \ -  { \ -  case TAG_INT: \ -  X=0; \ -  break; \ -  \ -  case TAG_STRING: \ -  get_string_data(X,num,data); \ -  break; \ -  \ -  default: \ -  decode_error (data, NULL, "Tag is wrong: %d\n", what & TAG_MASK); \ -  } \ - }while(0) -  +    #define decode_number(X,data) do { \    INT32 what, e; \    INT64 num; \    DECODE("decode_number"); \    X=(what & TAG_MASK) | ((unsigned INT64)num<<4); \    EDB(5, fprintf(stderr, "%*s ==>%ld\n", \    data->depth, "", (long) X)); \    }while(0) \