char * filename2 = PL_strrchr(name2, '\\'); if(filename2 != nsnull) filename2++; else filename2 = name2;
char * filename1 = nsnull; char * filename2 = nsnull;
static PRBool areTheSameFileNames(char * name1, char * name2){  if((name1 == nsnull) || (name2 == nsnull))    return PR_FALSE;  char * filename1 = PL_strrchr(name1, '\\');	if(filename1 != nsnull)		filename1++;	else		filename1 = name1;  char * filename2 = PL_strrchr(name2, '\\');	if(filename2 != nsnull)		filename2++;	else		filename2 = name2;  if(PL_strlen(filename1) != PL_strlen(filename2))    return PR_FALSE;  // this one MUST be case insensitive for Windows and MUST be case sensitive  // for Unix. How about Win2000?  return (nsnull == PL_strncasecmp(filename1, filename2, PL_strlen(filename1)));}