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

5:   \*/      /* -  * $Id: program.h,v 1.137 2001/07/12 23:15:41 hubbe Exp $ +  * $Id: program.h,v 1.138 2001/07/13 11:26:39 grubba Exp $    */   #ifndef PROGRAM_H   #define PROGRAM_H
386:   struct program *id_to_program(INT32 id);   void optimize_program(struct program *p);   int program_function_index_compare(const void *a,const void *b); - char *find_program_name(struct program *p, INT32 *line); + struct pike_string *find_program_name(struct program *p, INT32 *line);   void fixate_program(void);   struct program *low_allocate_program(void);   void low_start_new_program(struct program *p,
511:   int get_small_number(char **q);   void start_line_numbering(void);   void store_linenumber(INT32 current_line, struct pike_string *current_file); - PMOD_EXPORT char *get_program_line(struct program *prog,INT32 *linep); - PMOD_EXPORT char *get_line(PIKE_OPCODE_T *pc, struct program *prog, + PMOD_EXPORT struct pike_string *get_program_line(struct program *prog,    INT32 *linep); -  + PMOD_EXPORT struct pike_string *get_line(PIKE_OPCODE_T *pc, +  struct program *prog, +  INT32 *linep);   void my_yyerror(char *fmt,...) ATTRIBUTE((format(printf,1,2)));   struct program *compile(struct pike_string *prog,    struct object *handler,