471,086 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 software developers and data experts.

Problem to understand header file

Hello to all of you.

I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.

Thank you

Oct 9 '07 #1
5 1163
On Oct 9, 3:36 pm, Pramod <sahgalpram...@gmail.comwrote:
Hello to all of you.

I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.

Thank you
"calling conventions".
http://en.wikipedia.org/wiki/X86_calling_conventions

Oct 9 '07 #2
Pramod wrote:
I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.
It means that the header is not C++. It might be some
implementation specific extensions (the leading _ suggests
this, althought two __ would be more reasonable), or it
might some completely different language, but it's not C++.

--
James Kanze (GABI Software) mailto:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Oct 10 '07 #3
On Oct 10, 1:03 pm, James Kanze <james.ka...@gmail.comwrote:
Pramod wrote:
I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.

It means that the header is not C++. It might be some
implementation specific extensions (the leading _ suggests
this, althought two __ would be more reasonable), or it
might some completely different language, but it's not C++.

--
James Kanze (GABI Software) mailto:james.ka...@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Ya you are right James. Its not a C++ file its a C header file. Please
explain me it.

Oct 10 '07 #4
Pramod wrote:
On Oct 10, 1:03 pm, James Kanze <james.ka...@gmail.comwrote:
>Pramod wrote:
>>I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.
It means that the header is not C++. It might be some
implementation specific extensions (the leading _ suggests
this, althought two __ would be more reasonable), or it
might some completely different language, but it's not C++.
*please* don't quote signatures
>
Ya you are right James. Its not a C++ file its a C header file. Please
explain me it.
It isn't standard C either, it's a specific compiler's dialect. You'll
have to ask in a group dedicated to your compiler or platform.

--
Ian Collins.
Oct 10 '07 #5
On Oct 10, 10:37 am, Pramod <sahgalpram...@gmail.comwrote:
On Oct 10, 1:03 pm, James Kanze <james.ka...@gmail.comwrote:
Pramod wrote:
I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.
It means that the header is not C++. It might be some
implementation specific extensions (the leading _ suggests
this, althought two __ would be more reasonable), or it
might some completely different language, but it's not C++.
Ya you are right James. Its not a C++ file its a C header file. Please
explain me it.
It's not C either. As I said, the leading _ suggests some
implementation specific extensions, although the usual
convention for such things is a double __: things like _stdcall,
etc., are perfectly legal identifiers other than at namespace
scope (but they aren't a good idea, because too many systems to
capture them for other things).

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Oct 10 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by fripper | last post: by
11 posts views Thread by Manuel | last post: by
3 posts views Thread by Veeru | last post: by
2 posts views Thread by dinky | last post: by
4 posts views Thread by Immortal_Nephi | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.