delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/25/03:31:45

Date: Sat, 25 Aug 2001 10:29:47 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Benjamin Killer" <bkausbk AT web DOT de>
Message-Id: <9003-Sat25Aug2001102946+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <9m6gdj$kie$06$1@news.t-online.com> (bkausbk@web.de)
Subject: Re: __pascal doesn't exist
References: <9m6gdj$kie$06$1 AT news DOT t-online DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Benjamin Killer" <bkausbk AT web DOT de>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 24 Aug 2001 23:18:51 +0200
> 
> I tried doing the following in DJGPP C:
> 
> int __pascal test(int param1) {
> }
> 
> but this doesn't work:
> 
> : parse error before `test'

Do you really need to compile a function with Pascal argument-passing
conventions?  Why do you need that?

GCC doesn't support Pascal functions.  There's a similar but not
identical feature whereby you can declare a function
__attribute__((stdcall)); read all about it in the GCC manual.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019