On Jan 27, 2010, at 16:42 , David MacMahon wrote: > 3a. Add code within "#if define ( __APPLE __)" blocks so that NXArgc > can be modified to match the modified contents of NXArgv/argv. This > might also an issue on NeXTSTEP, since I think that's where Apple > picked up these variables (hence the NX prefix) > > 3b. Create a cmake test for NXArgc/NXArgv and define a HAVE_NXARGC > macro that can be used instead of __APPLE__. > > I think 3b might be the cleanest option, but I'm open other > possibilities (including any I've not listed). Opinions?
FWIW, I've created and tested a patch for 3a. It turns out that directly accessing NXArgc from a library is not possible, but there is a function... int * _NSGetArgc() ...declared in /usr/include/crt_externs.h that can be used to get a pointer to the global argc. If anyone wants the patch, let me know. Is it generally OK to send patches to plplot-devel or should I send them to a different list or should I send them off-list to a committer or should I ...? If someone wants to try doing 3b, I think it would be great, but my cmake skills are not up to that task (yet). Thanks, Dave ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel