Re: [fpc-devel]More units for MacOS X port?

2004-01-26 Thread Jonas Maebe
On 26 jan 2004, at 11:40, Karl-Michael Schindler wrote:

With the MacOS X port available, i played (maybe fooled) around in 
order to port some of the basic units, such as termio crt video 
keyboard serial.
I managed to get it compiling by transferring missing definitions of 
constants and types from netbsd of freebsd versions to termio*.inc 
files or simply copying missing files from the *bsd folders to the 
darwin folder. Now to my questions:

Is this actually a sound way to proceed? The problem for me is that I 
do not know the detailed meaning of all the stuff and therefore, I do 
not have a real clue, whether this is appropriate at all?
In general, yes (because the unix side of Mac OS X comes from *BSD). 
It's best to double-check with original C-header files from which the 
include files were derived to see whether it's correct, though 
(/usr/include/termios.h, /usr/include/sys/termios.h)

After successful compilation, how can I test the units?
Because crt can't be tested automatically (you can make a program that 
tests whether everything is written in the right place on the screen), 
you have to do manual verifications: try some programs that use these 
units and check whether the output is correct.

Finally, if this is ok and of any value for the project, how would I 
submit the files?
Send them to me, and I'll commit them.

Thanks!

Jonas

___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel]More units for MacOS X port?

2004-01-26 Thread Marco van de Voort
 I guess, this will mainly be directed to Jonas Maebe
 
 With the MacOS X port available, i played (maybe fooled) around in 
 order to port some of the basic units, such as termio crt video 
 keyboard serial.
 I managed to get it compiling by transferring missing definitions of 
 constants and types from netbsd of freebsd versions to termio*.inc 
 files or simply copying missing files from the *bsd folders to the 
 darwin folder. Now to my questions:

I'm currently redoing termio (and possibly the others too) for the bsd
ports. Could you send what you already got to me? I'll then merge it in with
my changes, and if possible, move some files to bsd/

 Is this actually a sound way to proceed? The problem for me is that I 
 do not know the detailed meaning of all the stuff and therefore, I do 
 not have a real clue, whether this is appropriate at all?

Yes, it is. However only for the FreeBSD parts that have proper libc
support. Also be careful with ioctl's.

Luckily Mac OS X is very FreeBSD compatible.
 
 After successful compilation, how can I test the units?
 
 Finally, if this is ok and of any value for the project, how would I 
 submit the files?

In general, if it is generic BSD/Unix, to me, if it is Darwin specific to
Jonas. I think termio and video can be done generic, I'm not sure about
keyboard (since it already differs between BSDs), and I don't know serial
well enough. Keyboard and Mouse are not fully debugged for FreeBSD too,
e.g. some terminal types have problems.

P.s. it is not a problem if you accidentally send it to the wrong
person. It is just a rule of thumb.



___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel