Branch: Tag:

2007-04-15

2007-04-15 12:18:21 by Peter Bortas <zino@lysator.liu.se>

Split paths on both / and \ to make -t work on win32.

Allow for 99 char long file names in the trace, up from 39.

Rev: src/interpret.c:1.354

2:   || 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: interpret.c,v 1.353 2004/09/30 15:28:08 mast Exp $ + || $Id: interpret.c,v 1.354 2007/04/15 12:18:21 peter Exp $   */      #include "global.h" - RCSID("$Id: interpret.c,v 1.353 2004/09/30 15:28:08 mast Exp $"); + RCSID("$Id: interpret.c,v 1.354 2007/04/15 12:18:21 peter Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"
1422:    file = "...";    else {    file = filep->str; -  while((f=STRCHR(file,'/'))) +  while((f=STRCHR(file,'/')) || (f=STRCHR(file,'\\')))    file=f+1;    }    }else{
1431:    }       { -  char buf[40]; +  char buf[100];    if (linep)    SNPRINTF(buf, sizeof (buf), "%s:%ld:", file, (long)linep);    else