Branch: Tag:

2016-12-31

2016-12-31 01:48:34 by Martin Nilsson <nilsson@fastmail.com>

File name and line number hasn't been used in new_error since 1998. Remove.

327:   PMOD_EXPORT DECLSPEC(noreturn) void new_error(const char *name,    const char *text,    struct svalue *oldsp, -  INT32 args, -  const char *file, -  int line) ATTRIBUTE((noreturn)) +  INT32 args) ATTRIBUTE((noreturn))   {    int i;   
356:       fprintf(stderr,"No error recovery context!\n%s():%s",    name ? name : "<unknown>", text); -  if(file) -  fprintf(stderr,"at %s:%d\n",file,line); +     exit(99);    }   
365:       f_backtrace(0);    -  if (file) { -  push_text(file); -  push_int(line); -  } else { +     push_int(0);    push_int(0); -  } +        if (name)    push_text(name);