Branch: Tag:

2001-07-13

2001-07-13 11:26:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>

get_{program_,}line() now returns a pike_string.
store_linenumber() is now wide string safe.
Added some more debug to store_linenumber().
Fixes [bug 1866 (#1866)].

Rev: src/builtin.cmod:1.59
Rev: src/builtin_functions.c:1.394
Rev: src/gc.c:1.169
Rev: src/interpret.c:1.219
Rev: src/interpreter.h:1.68
Rev: src/object.c:1.179
Rev: src/opcodes.c:1.113
Rev: src/program.c:1.353
Rev: src/program.h:1.138

27:   #include "bignum.h"   #include "operators.h"    - RCSID("$Id: opcodes.c,v 1.112 2001/06/17 19:15:15 grubba Exp $"); + RCSID("$Id: opcodes.c,v 1.113 2001/07/13 11:26:40 grubba Exp $");      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {
518:    if(Pike_fp->pc)    {    INT32 lineno; -  push_text(get_line(Pike_fp->pc, Pike_fp->context.prog, &lineno)); +  push_string(get_line(Pike_fp->pc, +  Pike_fp->context.prog, +  &lineno));    }else{    push_int(0);    }
545:    if(Pike_fp->pc)    {    INT32 lineno; -  push_text(get_line(Pike_fp->pc, Pike_fp->context.prog, &lineno)); +  push_string(get_line(Pike_fp->pc, Pike_fp->context.prog, &lineno));    }else{    push_int(0);    }