pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:18:   #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"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.65 2000/08/10 13:23:59 grubba Exp $"); + RCSID("$Id: encode.c,v 1.66 2000/08/15 16:15:43 grubba Exp $");      /* #define ENCODE_DEBUG */      #ifdef ENCODE_DEBUG   #define EDB(X) X   #else   #define EDB(X)   #endif      /* The sp macro conflicts with Solaris 2.5.1's <sys/conf.h>. */
pike.git/src/encode.c:1647:    if(*l < t) error("Format error, string to short\n");    push_string(make_shared_binary_string(*v, t));    (*l)-= t;    (*v)+= t;    return;       case TAG_ARRAY:    if(t<0) error("Format error, length of array is negative.\n");    check_stack(t);    for(i=0;i<t;i++) rec_restore_value(v,l); -  f_aggregate(t); +  f_aggregate(DO_NOT_WARN(t));    return;       case TAG_MULTISET:    if(t<0) error("Format error, length of multiset is negative.\n");    check_stack(t);    for(i=0;i<t;i++) rec_restore_value(v,l); -  f_aggregate_multiset(t); +  f_aggregate_multiset(DO_NOT_WARN(t));    return;       case TAG_MAPPING:    if(t<0) error("Format error, length of mapping is negative.\n");    check_stack(t*2);    for(i=0;i<t;i++)    {    rec_restore_value(v,l);    rec_restore_value(v,l);    } -  f_aggregate_mapping(t*2); +  f_aggregate_mapping(DO_NOT_WARN(t*2));    return;       case TAG_OBJECT:    if(t<0) error("Format error, length of object is negative.\n");    if(*l < t) error("Format error, string to short\n");    push_string(make_shared_binary_string(*v, t));    (*l) -= t; (*v) += t;    APPLY_MASTER("objectof", 1);    return;   
pike.git/src/encode.c:1722:    codec=Pike_sp[1-args].u.object;    }    else    {    codec=0;    }       if(!my_decode(s, codec))    {    char *v=s->str; -  INT32 l=s->len; +  ptrdiff_t l=s->len;    rec_restore_value(&v, &l);    }    assign_svalue(Pike_sp-args-1, Pike_sp-1);    pop_n_elems(args);   }