From: <ni...@in...> - 2001-07-02 01:34:48
|
Gwenole wrote: > 2. Mixing C++ and Objective-C is not quite possible at the current time. > Therefore, Nigel implemented a few C wrappers. However, I think we don't > need them if we declare functions in src/include/*.h with "C" external > linkage. If this approach works, I will remove Nigel's C wrappers and > commit patched versions of includes with various #ifndef __cplusplus__ / > extern "C" clauses. I commented: > 1) I think that will just cause link errors, as the files would have been > compiled one way (as C++ interfaces, because they are in .cpp files), > but referenced as another. (C interfaces in my Objective-C source) Gwenole said: > No, they will have "C" linkage because they would have been declared as > such (extern "C"). If you insert #ifndef __cpluscplus__ wrappers, wouldn't the declaration depend on the compiler which is processing them, and thus vary between the .cpp and .m files? Apple copyright stuff deleted ... > > I haven't looked at that site yet, but it could potentially be > > a problem, as could some of the structures I typed into extfs_MacOSX.cpp > > OK if that's a problem, I will keep the "unix" version if it works. I > haven't tried it yet with my Darwin/X11 port. The unix version works, but because OS X uses different conventions for storing the resource and finder files, it isn't very useful. i.e. You cannot access programs stored on MacOS X mounted HFS volumes. The structures I put in extfs_MacOSX.cpp are similar, copyright wise, to the stuff in macos_util.h. They are based on information published by Apple (whether from Inside Macintosh, or from the Apple Universal Headers). I suspect that if we rename or obfuscate the stuff I have typed in, that will be enough to get around any copyright issues. But then again, I am not a lawyer, and Apple might be monitoring this very mailing list :-) I wrote: > What if I produce a parody of the happy face, like a wrinkled > old version thereof? Christian answered: > > B2 is not a wrinkled version of anything! ;-) True, but B2 emulates an old Mac, running an old MacOS. That is what it could mean. Or maybe something like a bank vault or a museum? Something that stores old stuff? (both shiny-new, of course!) -- | Nigel Pearson, ni...@in... | "Reality is that which, | | Telstra NW-D, Sydney, Australia. | when you stop believing | | Office: 9206 3468 Fax: 9212 6329 | in it, doesn't go away." | | Mobile: 0408 664435 Home: 9792 6998 | Philip K. Dick - 'Valis.' | |