pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.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: builtin_functions.c,v 1.449 2002/10/25 13:13:57 marcus Exp $ + || $Id: builtin_functions.c,v 1.450 2002/11/24 14:57:05 marcus Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.449 2002/10/25 13:13:57 marcus Exp $"); + RCSID("$Id: builtin_functions.c,v 1.450 2002/11/24 14:57:05 marcus Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:4473:    {    case T_STRING:    i=does_match(Pike_sp[1-args].u.string,0,glob,0);    pop_n_elems(2);    push_int(i);    break;       case T_ARRAY:    a=Pike_sp[1-args].u.array;    matches=0; +  check_stack(a->size);    for(i=0;i<a->size;i++)    {    if(ITEM(a)[i].type != T_STRING)    SIMPLE_BAD_ARG_ERROR("glob", 2, "string|array(string)");       if(does_match(ITEM(a)[i].u.string,0,glob,0))    {    add_ref(ITEM(a)[i].u.string);    push_string(ITEM(a)[i].u.string);    matches++;