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.607 2006/03/09 20:31:26 grubba Exp $ + || $Id: builtin_functions.c,v 1.608 2006/03/10 09:08:41 grubba Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:3335:    match = d;    match_len = v[d].ind->len;    break;    }    }    }    a = c+1;    }    else if(tmp>0)    { -  fprintf(stderr, "v[%d] == \"%s\" > \"%s\"\n", -  c, v[c].ind->str, str); +     b=c;    }    else    { -  fprintf(stderr, "v[%d] == \"%s\" is prefix to \"%s\"\n", -  c, v[c].ind->str, str); +     a=c+1; /* There might still be a better match... */    match=c;    match_len = v[c].ind->len;    }    } -  fprintf(stderr, "Result: %d\n", match); +     return match;   }         static int replace_sortfun(struct tupel *a,struct tupel *b)   {    return DO_NOT_WARN((int)my_quick_strcmp(a->ind, b->ind));   }      struct replace_many_context