pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: opcodes.c,v 1.142 2003/03/06 15:29:56 grubba Exp $ + || $Id: opcodes.c,v 1.143 2003/03/14 15:50:45 grubba Exp $   */      #include "global.h"   #include <errno.h>   #include <math.h>   #include <ctype.h>   #include "interpret.h"   #include "svalue.h"   #include "array.h"   #include "stralloc.h"
pike.git/src/opcodes.c:23:   #include "fd_control.h"   #include "cyclic.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "security.h"   #include "bignum.h"   #include "operators.h"      #define sp Pike_sp    - RCSID("$Id: opcodes.c,v 1.142 2003/03/06 15:29:56 grubba Exp $"); + RCSID("$Id: opcodes.c,v 1.143 2003/03/14 15:50:45 grubba Exp $");      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {    INT32 i;      #ifdef PIKE_SECURITY    if(what->type <= MAX_COMPLEX)    if(!CHECK_DATA_SECURITY(what->u.array, SECURITY_BIT_INDEX))    Pike_error("Index permission denied.\n");   #endif
pike.git/src/opcodes.c:132:   }      void o_index(void)   {    struct svalue s;    index_no_free(&s,sp-2,sp-1);    pop_n_elems(2);    *sp=s;    dmalloc_touch_svalue(sp);    sp++; +  dmalloc_touch_svalue(Pike_sp-1);   }      /*! @class MasterObject    */      /*! @decl object cast_to_object(string str, string|void current_file)    *!    *! Called by the Pike runtime to cast strings to objects.    *!    *! @param str
pike.git/src/opcodes.c:1640:    while(field_length-- >= 0) \    { \    push_int(input[eye]); \    convert_stack_top_to_bignum(); \    push_int(pos); \    o_lsh(); \    o_or(); \    pos+=8; \    eye++; \    } \ +  dmalloc_touch_svalue(Pike_sp-1); \    sval=*--sp; \    break; \    } \    ); \    sval.u.integer|=x<<pos; \    \    pos+=8; \    eye++; \    } \    } \
pike.git/src/opcodes.c:1667:    convert_stack_top_to_bignum(); \    \    while(field_length-- >= 0) \    { \    push_int(8); \    o_lsh(); \    push_int(input[eye]); \    o_or(); \    eye++; \    } \ +  dmalloc_touch_svalue(Pike_sp-1); \    sval=*--sp; \    break; \    } \    ); \    sval.u.integer<<=8; \    sval.u.integer |= input[eye]; \    eye++; \    } \    break; \    } \
pike.git/src/opcodes.c:2041:    break; \    } \    matches++; \    \    if(no_assign) \    { \    free_svalue(&sval); \    }else{ \    check_stack(1); \    *sp++=sval; \ +  dmalloc_touch_svalue(Pike_sp-1); \    DO_IF_DEBUG(sval.type=99); \    } \    } \    chars_matched[0]=eye; \    success[0]=1; \    return matches; \   }         /* Confusing? Yes - Hubbe */