Branch: Tag:

2003-09-04

2003-09-04 16:00:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few typos.

Rev: src/builtin_functions.c:1.505

2:   || 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.504 2003/09/04 15:03:11 grubba Exp $ + || $Id: builtin_functions.c,v 1.505 2003/09/04 16:00:29 grubba Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.504 2003/09/04 15:03:11 grubba Exp $"); + RCSID("$Id: builtin_functions.c,v 1.505 2003/09/04 16:00:29 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
775:    return;       case T_OBJECT: -  if (Pike_sp[-args].u.object->program) { +  if (Pike_sp[-args].u.object->prog) {    struct object *o = Pike_sp[-args].u.object; -  struct program *p = o->program; +  struct program *p = o->prog;    /* NOTE: Fake lfun! */ -  int id = low_find_lfun(p, LFUN__STATIC); +  int id = low_find_lfun(p, LFUN__SEARCH);    int next, ind;       /* First try lfun::_search(). */
790:    }       /* Check if we have an iterator. */ -  if (((id = find_identifier(p, "value")) >= 0) && -  ((next = find_identifier(p, "next")) >= 0) && -  ((ind = find_identifier(p, "index")) >= 0)) { +  if (((id = find_identifier("value", p)) >= 0) && +  ((next = find_identifier("next", p)) >= 0) && +  ((ind = find_identifier("index", p)) >= 0)) {    /* We have an iterator. */       /* Set the start position if needed. */