On Monday 14 March 2011 21:19:52, Kai Tietz wrote:
> @@ -1572,6 +1579,12 @@ get_file_realbasename (const input_file
> {
> const char *f = get_input_file_name (inpf);
> const char *lastslash = strrchr (f, '/');
> +#ifdef HAVE_DOS_BASED_FILE_SYSTEM
> + const char *lastslash2 = strrchr (f, '\\');
> +
> + if (!lastslash || (lastslash2 && lastslash2 > lastslash))
> + lastslash = lastslash2;
> +#endif
>
> return (lastslash != NULL) ? lastslash + 1 : f;
All of this is just
return lbasename (get_input_file_name (inpf));
There are other similar cases in the patch.
--
Pedro Alves