TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: NEIL HELLER
from: DARIN MCBRIDE
date: 1998-04-25 18:21:00
subject: CALLING CONVENTIONS

 NH> I'm familiar with using the reserved word PASCAL to modify the order
 NH> in which formal parameters are placed on the stack.  Does anyone know
 NH> if the PASCAL keyword also affects who is responsible (the caller or
 NH> the called function) for cleaning up the stack after the called
 NH> function exits?
Two points:
A) Not portable extention - often "PASCAL" will be #defined to something like 
__pascal.
B) Yes - assuming it's not broken, it implies a Pascal calling convention, 
which has the callee clean up the stack, IIRC.
---
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.