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.129 2003/01/05 00:58:37 nilsson Exp $ + || $Id: opcodes.c,v 1.130 2003/01/08 19:35:42 mast 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.129 2003/01/05 00:58:37 nilsson Exp $"); + RCSID("$Id: opcodes.c,v 1.130 2003/01/08 19:35:42 mast 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:1792:   #undef CHAROPT2   #define CHAROPT2(X) X      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 i=0;    int x;    ptrdiff_t matched_chars;    struct svalue *save_sp=sp;       if(sp[-args].type != T_STRING)    SIMPLE_BAD_ARG_ERROR("sscanf", 1, "string");       if(sp[1-args].type != T_STRING)    SIMPLE_BAD_ARG_ERROR("sscanf", 2, "string");
pike.git/src/opcodes.c:1928:    *!    *! This function works just like @[sscanf()], but returns the matched    *! results in an array instead of assigning them to lvalues. This is often    *! useful for user-defined sscanf strings.    *!    *! @seealso    *! @[sscanf()], @[`/()]    */   PMOD_EXPORT void f_sscanf(INT32 args)   { - #ifdef PIKE_DEBUG -  extern int t_flag; - #endif +     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 */