Branch: Tag:

1997-02-17

1997-02-17 05:12:04 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

program and object loading now relative to loading object rather than
getcwd()

Rev: lib/master.pike:1.27
Rev: src/opcodes.c:1.3

320:    switch(sp[-1].type)    {    case T_STRING: -  APPLY_MASTER("cast_to_object",1); +  if(fp->pc) +  { +  INT32 lineno; +  push_text(get_line(fp->pc, fp->context.prog, &lineno)); +  }else{ +  push_int(0); +  } +  APPLY_MASTER("cast_to_object",2);    break;       case T_FUNCTION:
330:    break;       case T_PROGRAM: -  APPLY_MASTER("cast_to_program",1); +  if(fp->pc) +  { +  INT32 lineno; +  push_text(get_line(fp->pc, fp->context.prog, &lineno)); +  }else{ +  push_int(0); +  } +  APPLY_MASTER("cast_to_program",2);    break;       case T_FUNCTION: