#include <stdio.h>
#include <setjmp.h>
#include <string.h>
-#include <alloc.h>
#include "asm.h"
/* Return basic file name without path or extension */
char* BaseFileName( int fileNumber )
{
static int prevFile = -1;
- static char baseName[ FILSPC ];
+ static char baseName[ PATH_MAX ];
char *p1, *p2;
/* Name starts after any colon or backslash (DOS) */
p2 = strrchr( p1, '\\' );
+ if (p2 == NULL) p2 = strrchr( p1, '/' );
if (p2 == NULL) p2 = strrchr( p1, ':' );
if (p2 == NULL) p2 = p1-1;
strcpy( baseName, p2+1 );
{
static int prevFile = -1;
static struct area *pPrevArea = NULL;
- static char baseName[ FILSPC ];
+ static char baseName[ PATH_MAX ];
int j;
char *p1, *p2;