cdecl keyword

Tom Neff tneff at atpal.UUCP
Fri Apr 15 02:36:28 AEST 1988


Correct me if I'm wrong, but wasn't /cdecl/ added solely for the purpose
of overriding the interface model when a user specifies (to compilers offering
this) that a module is to be compiled with, say, Pascal interfaces?  The idea
being that the vendor's RTL interfaces have to stay 'C' compatible even if
all the user's entry points use another model.  I thought that was why all
the header files use /cdecl/ in the prototype; I also thought that for the
same reason, it would normally be unnecessary for a user to add /cdecl/ to
his own code unless he was writing a module with several different interface
models at once.  (Sounds messy.)

I agree that this could be done via #pragma, and possibly should.  TMN

-- 

Tom Neff 



More information about the Comp.lang.c mailing list