bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minor build fixes


From: Eli Zaretskii
Subject: Re: Minor build fixes
Date: Fri, 03 Oct 2014 09:31:30 +0300

> Date: Thu, 02 Oct 2014 18:55:29 -0400
> From: Ken Brown <address@hidden>
> Cc: Texinfo <address@hidden>
> 
> On 10/2/2014 6:24 PM, Ken Brown wrote:
> > I think it's all OK, but I have to think a little more about comparison of 
> > file
> > names.  I'll get back to you on that.
> 
> I'm not sure about comparison of file names, so maybe it would be safer to 
> use 
> case-insensitive comparison as before.  This requires adding the following 
> hunk 
> to the previous patch:
> 
> @@ -187,8 +184,13 @@
>   # define HAS_SLASH(s)  (strchr ((s), '/'))
>   # define HAVE_DRIVE(n) (0)
>   # define IS_ABSOLUTE(n)        ((n)[0] == '/')
> -# define FILENAME_CMP  strcmp
> -# define FILENAME_CMPN strncmp
> +# ifdef __CYGWIN__
> +#  define FILENAME_CMP strcasecmp
> +#  define FILENAME_CMPN        strncasecmp
> +# else
> +#  define FILENAME_CMP strcmp
> +#  define FILENAME_CMPN        strncmp
> +# endif
>   # define HAVE_LONG_FILENAMES(dir)   (1)
>   # define PATH_SEP      ":"
>   # define STRIP_DOT_EXE 0

What about file names with drive letters?  Experience (in the GNU Make
department) indicates that some Cygwin users want that, perhaps
because they use Cygwin tools outside of the Cygwin environment.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]