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.125 2002/10/11 01:39:34 nilsson Exp $ + || $Id: opcodes.c,v 1.126 2002/10/28 13:04:09 nilsson 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.125 2002/10/11 01:39:34 nilsson Exp $"); + RCSID("$Id: opcodes.c,v 1.126 2002/10/28 13:04:09 nilsson 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:1748:   MK_VERY_LOW_SSCANF(1,1)   MK_VERY_LOW_SSCANF(2,1)   MK_VERY_LOW_SSCANF(1,2)   MK_VERY_LOW_SSCANF(2,2)      void o_sscanf(INT32 args)   {   #ifdef PIKE_DEBUG    extern int t_flag;   #endif -  INT32 e, i=0; +  INT32 i=0;    int x;    ptrdiff_t matched_chars;    struct svalue *save_sp=sp;       if(sp[-args].type != T_STRING)    Pike_error("Bad argument 1 to sscanf().\n");       if(sp[1-args].type != T_STRING)    Pike_error("Bad argument 1 to sscanf().\n");   
pike.git/src/opcodes.c:1884:    *! useful for user-defined sscanf strings.    *!    *! @seealso    *! @[sscanf()], @[`/()]    */   PMOD_EXPORT void f_sscanf(INT32 args)   {   #ifdef PIKE_DEBUG    extern int t_flag;   #endif -  INT32 e,i; +  INT32 i;    int x;    ptrdiff_t matched_chars;    struct svalue *save_sp=sp;    struct array *a;       check_all_args("array_sscanf",args,BIT_STRING, BIT_STRING,0);       switch(sp[-args].u.string->size_shift*3 + sp[1-args].u.string->size_shift) {    /* input_shift : match_shift */    case 0: