On Mon, 28 Nov 2005, Blair Campbell wrote:

PS:  If the C is ever to be compiled with Watcom C, as Bernd
suggested, the global functions in the asm would need to have a _ in
front instead of behind, as this is (for some weird reason) the way
OpenWatcom does things.

I think you have this the wrong way around.

The reason is not so weird, as it avoids severe bugs interfacing. The _ is put the other way because the calling convention is different, so just changing the _ isn't enough, you also need to convert stack to register parameter passing.

If you want a _ in front with OW, and stack calling conventions, like Turbo C, all you need to do is to decorate the function with _cdecl in the
C or H file.

Bart


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to