| delorie.com/archives/browse.cgi | search |
| To: | eliz AT is DOT elta DOT co DOT il |
| Date: | Fri, 20 Nov 1998 16:10:49 -0700 |
| From: | "Gabriel Maffla" <gama7 AT theglobe DOT com> |
| Message-ID: | <LLIHMJDBEPMOBAAA@theglobe.com> |
| Mime-Version: | 1.0 |
| Cc: | djgpp AT delorie DOT com |
| X-Sent-Mail: | off |
| X-Mailer: | MailCity Service |
| Subject: | pascal & cdecl again |
| X-Sender-Ip: | 200.25.35.62 |
| Organization: | E-Mail @ The Globe (http://www.globe-mail.com:80) |
| Reply-To: | djgpp AT delorie DOT com |
Ok. I had readed the doc's, but test this code:
void g(int,int) __attribute__((stdcall));
int f1(void) {
puts("(f1)");
return(0);
}
int f2(void) {
puts("(f2)");
return(0);
}
void g(int j,int k) {
return;
}
int main(void) {
g(f1(),f2());
return(0);
}
If func g is "stdcall", the program output must be:
(f1)
(f2)
But it is not so. What's wrong??
"Free web-based email available now at http://www.theglobe.com"
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |