🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #18811

"CallPascalW" and "pascal..." in C?

#18811
From: kkim
Date: Mon, 07 Sep 1987 02:46
31 lines
1547 bytes
   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
Technical Details
Message-ID: <164500056@uiucdcsb>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!iuvax!pur-ee!uiucdcs!uiucdcsb!kkim

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!iuvax!pur-ee!uiucdcs!uiucdcsb!kkim
From: kkim@uiucdcsb.UUCP
Newsgroups: comp.sys.mac
Subject: "CallPascalW" and "pascal..." in C?
Message-ID: <164500056@uiucdcsb>
Date: Sun, 6-Sep-87 22:46:00 EDT
Article-I.D.: uiucdcsb.164500056
Posted: Sun Sep  6 22:46:00 1987
Date-Received: Tue, 8-Sep-87 00:59:33 EDT
Lines: 31
Nf-ID: #N:uiucdcsb:164500056:000:990
Nf-From: uiucdcsb.cs.uiuc.edu!kkim    Sep  6 21:46:00 1987