kkim@uiucdcsb.UUCP (09/07/87)
i saw "CallPascalW" and "pascal ... (e.g. Boolean myGetNextEvent)"
used in some C program as illustrated in the following example:
-----------
...
oldGetNextEvent = NGetTrapAddr( 0xa02f );
...
pascal Boolean myGetNextEvent (event, mask) ...;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/* CallPascalW calls indirectly a pascal function from C. */
retCode = CallPascalW (event, mask, oldGetNextEvent);
^^^^^^^^^^^ ^^^^^^^^^^^^^^^
...
-----------
1. i would like to know which C compiler(s) have such features.
are they available in any specific C compiler only OR are they
available in most C compilers in general?
2. i wonder what the difference is between the oridnary function
calls and "CallPascalW" and why they are necessary.
please e-mail to me. thanks in advance.
kyongsok kim
dept. of computer science; univ. of illinois at urbana-champaign
arpanet/csnet: kkim@b.cs.uiuc.edu
usenet/uucp : {seismo, pur-ee, ihnp4}!uiucdcs!kkim