This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: ObjC++-related common code mods


Ziemowit Laski <zlaski@apple.com> writes:

>>> Ok; how should I handle "objc/objc-act.h" further down in the patch?
>>
>> I'm not sure I understand.  Having a slash in the pathname embedded in
>> gengtype.c should be fine - all supported operating systems understand
>> / as a path separator; it's just that gengtype might get input with \
>> as the path separator, on Windows.
>
> But if you can see a '\\', then you could plausibly also see 
> 'c:\\...\\objc\\objc-act.c', no?

Sure.  Everywhere you _check for_ a directory separator, should be
using IS_DIR_SEPARATOR so that it properly handles \ on Windows.  But
pathnames embedded in the program can unconditionally use /.  (it'd be
okay, for instance, to produce C:\...\objc/objc-act.h - weird as that
looks to a human, the Windows kernel will be perfectly happy with it.)

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]