[fpc-devel] Mac OS X Common Pascal Interfaces

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Aug 18 15:50:51 CEST 2009


Hi,

Thanks to an svn dump kindly provided by Peter N Lewis (and a  
subsequent import by Florian), the Mac OS X Common Pascal Interfaces  
(MacOSAll and all files it's generated from) are now available from  
the FPC svn server with full revision history.

To check them out, use the following command:
svn co http://svn.freepascal.org/svn/macosxintf/trunk/ macosxintf

Those sources can be used to generate MetroWerks Pascal, GPC and FPC  
versions of the units using the included scripts. For this purpose the  
header translations are written in so-called "meta-Pascal".

There is a file called metaPascal-Specification.html in the top-level  
directory that explains how to translate headers (with the help of  
several included scripts). It also describes various requirements that  
should be observed in order to ensure that the resulting files can be  
automatically converted for use with all supported compilers (don't  
forget the "make test" after making changes -- note that on multi-core  
machines you can use "make test -j 2", "make test -j 4" etc. to speed  
up the process).

Adriaan and Gale, if you want I can create read/write accounts for  
both of you. Other people interested in contributing: please post  
patches to one of these lists and later on I can also create read/ 
write accounts for you.

Happy translating!


Jonas

PS: for "make test" you need to have GPC installed, which you can  
download from <http://www.microbizz.nl/gpc.html>. Furthermore, note  
that gpc cannot compile the interfaces on a case-sensitive file  
system, and that it needs quite some time to compile the MacOS and  
MacOSAll units during "make test". This is a known issue: http://osdir.com/ml/compilers.gpc/2005-08/msg00013.html




More information about the fpc-devel mailing list