Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Mangled function type declarations?

Reply
Thread Tools

Mangled function type declarations?

 
 
Marcus Lessard
Guest
Posts: n/a
 
      10-17-2003
Why do header files have declarations for functions in them that look like
this:

unsigned long _RTLENTRY _EXPFUNC _beginthread (void (_USERENTRY
*__start)(void *),unsigned __stksize, void *__arg);

When the implementation files declares them like this:
int thread_id;
thread_id = _beginthread(thread_code,4096,(void *)i);

What is the "_RTLENTRY _EXPFUNC" all about and what should I know about it?
My help files (Borland bcc32 ver 5.5) don't have a lot to say about it.

Thanks In Advance!


 
Reply With Quote
 
 
 
 
Eric Sosman
Guest
Posts: n/a
 
      10-17-2003
Marcus Lessard wrote:
>
> Why do header files have declarations for functions in them that look like
> this:
>
> unsigned long _RTLENTRY _EXPFUNC _beginthread (void (_USERENTRY
> *__start)(void *),unsigned __stksize, void *__arg);
>
> When the implementation files declares them like this:
> int thread_id;
> thread_id = _beginthread(thread_code,4096,(void *)i);
>
> What is the "_RTLENTRY _EXPFUNC" all about and what should I know about it?
> My help files (Borland bcc32 ver 5.5) don't have a lot to say about it.


These declarations use Implementation Magic: they are
mystical incantations that have meaning (one presumes) to
the compiler that's part of the same package as the headers.
We do not know exactly what they mean; they are "private
communications" to the compiler from the authors of the
header.

"Meddle not in the affairs of wizards, for they are
subtle and quick to anger."

--

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mangled SessionID using SessionState in SQLServer mode John ASP .Net 0 03-29-2006 03:37 AM
Google cached version mangled N Cook HTML 14 06-03-2005 07:17 AM
Re: Google cached version mangled Luigi Donatello Asero HTML 0 05-16-2005 10:49 AM
"Mangled" Servlet Unicode Output Characters Wolfgang Java 2 06-09-2004 08:48 PM
Mangled address in newsgroups, legit address in e-mails Arthur Whitter Computer Support 5 09-26-2003 08:03 PM



Advertisments