delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/17/15:30:52

From: Ian Chapman <ichapman AT nortel DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: __cdecl
Date: Tue, 17 Mar 1998 12:32:10 -0500
Organization: Nortel
Lines: 27
Message-ID: <350EB39A.1FA0@nortel.ca>
Reply-To: ichapman AT nortel DOT ca
NNTP-Posting-Host: bcarib90.bnr.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,
   I'm was rather puzzled as to what this code is at first look.  It
turned out that __attribute__((stdcall)) directs the compiler how to
stack registers and djgpp knows all about this one.

	CDECL however gave error before "(".  I'm assured that this code did
compile on a gnu compiler.  Any ideas on this would be greatly
appreciated.

		Regards Ian.

bases.h
#define STDCALL     __attribute__ ((stdcall))
#define CDECL       __cdecl


ASCIIFunctions.h
int
STDCALL
wvsprintfW(
    LPWSTR,
    LPCWSTR,
    va_list arglist);

int
CDECL
wsprintfW(LPWSTR, LPCWSTR, ...);  //error before (

- Raw text -


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