Branch: Tag:

2001-09-04

2001-09-04 19:26:54 by Martin Stjernholm <mast@lysator.liu.se>

Fixed _next() to loop through all strings, not just the following strings
in the same hash bucket.

Rev: src/builtin_functions.c:1.405
Rev: src/stralloc.c:1.132
Rev: src/stralloc.h:1.62

5:   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.404 2001/08/30 23:48:30 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.405 2001/09/04 19:26:54 mast Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
5536:    case T_MAPPING: tmp.u.mapping=tmp.u.mapping->next; break;    case T_MULTISET:tmp.u.multiset=tmp.u.multiset->next; break;    case T_PROGRAM: tmp.u.program=tmp.u.program->next; break; -  case T_STRING: tmp.u.string=tmp.u.string->next; break; +  case T_STRING: tmp.u.string=next_pike_string(tmp.u.string); break;    default:    SIMPLE_BAD_ARG_ERROR("_next", 1,    "object|array|mapping|multiset|program|string");