Re: RFA: Support Windows extended error numbers in safe_strerror

Ian Lance Taylor
2006-02-04T06:22:21Z

Daniel Jacobowitz <drow@false.org> writes:

> Except we're trying to kill the aggravating NM files, remember? Also,
> it would be an XM file, and we've already successfully killed those (or
> most of them). We replaced them with autoconf magic, which is not
> fundamentally different from the USE_WIN32API bits.

USE_WIN32API is different because it selects an API which is not Unix
like. It's the only non-Unix-like host which gdb runs on today. I
think it would be reasonable to have special .h and .c files to handle
Windows code. You can call them XM files, or you can call them
something else. Scattering Windows code through the Unix code seems
like a bad idea to me.

I think that scattering autoconf magic through the code is also a bad
idea, and should be avoided. But I think it is less bad, because at
least the code all looks the same. Windows code does not.

Ian