> You mean in so many different places?

Yes.

>> Any chance to have some code in `nonposix.h' to avoid this?
> 
> Please suggest how.  do_file more often than not accepts strings
> given by 'const char *', so it is not possible to modify the string
> itself.  What else can I do?

I was imagining something primitive, e.g. a working equivalent to

  #if defined(__MSDOS__) || (defined(_WIN32) && !defined(__CYGWIN__))
  # define DOS2UNIX_FILENAME(f) dos2unix_filename(f)
  #else
  # define DOS2UNIX_FILENAME(f) (f)
  #endif


    Werner

Reply via email to