pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:17:   #include "dynamic_buffer.h"   #include "error.h"   #include "operators.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "fsort.h"   #include "threads.h"   #include "stuff.h"   #include "version.h"    - RCSID("$Id: encode.c,v 1.38 1999/09/21 21:16:26 hubbe Exp $"); + RCSID("$Id: encode.c,v 1.39 1999/09/22 19:01:27 grubba Exp $");      #ifdef _AIX   #include <net/nh.h>   #endif      #ifdef HAVE_NETINET_IN_H   #include <netinet/in.h>   #endif      #include <math.h>
pike.git/src/encode.c:1258:    struct decode_data d, *data;    data=&d;    data->counter.type=T_INT;    data->counter.u.integer=COUNTER_START;    data->data=(unsigned char *)tmp->str;    data->len=tmp->len;    data->ptr=0;    data->codec=codec;    data->pickyness=0;    +  if (tmp->size_shift) return 0;    if(data->len < 5) return 0;    if(GETC() != 182 ||    GETC() != 'k' ||    GETC() != 'e' ||    GETC() != '0')    return 0;       data->decoded=allocate_mapping(128);       SET_ONERROR(err, free_decode_data, data);
pike.git/src/encode.c:1382:    default:    error("Format error. Unknown type\n");    }   }      void f_decode_value(INT32 args)   {    struct pike_string *s;    struct object *codec;    -  check_all_args("decode_value",args, BIT_STRING, BIT_VOID | BIT_OBJECT | BIT_INT, 0); +  check_all_args("decode_value", args, +  BIT_STRING, BIT_VOID | BIT_OBJECT | BIT_INT, 0);       s = sp[-args].u.string;    if(args<2)    {    codec=get_master();    }    else if(sp[1-args].type == T_OBJECT)    {    codec=sp[1-args].u.object;    }