public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* what does this block of code mean?
@ 2007-07-16  1:40 Jack Bauer
  2007-07-16  3:10 ` Ben Kevan
  0 siblings, 1 reply; 2+ messages in thread
From: Jack Bauer @ 2007-07-16  1:40 UTC (permalink / raw)
  To: linux-newbie

Hi

This is in tclcl.h file.

#include <sys/types.h>
#include <string.h>
#include <tcl.h>
extern "C" {
#include <otcl.h>
}

#include "tclcl-config.h"
#include "tracedvar.h"

What does extern "C" ... mean?

Thanks in advance.

-- 
Xia YinChu 夏寅初
@
ShangHai JiaoTong University
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: what does this block of code mean?
  2007-07-16  1:40 what does this block of code mean? Jack Bauer
@ 2007-07-16  3:10 ` Ben Kevan
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Kevan @ 2007-07-16  3:10 UTC (permalink / raw)
  To: Jack Bauer; +Cc: linux-newbie

On Sunday 15 July 2007 06:40:27 pm Jack Bauer wrote:
> Hi
>
> This is in tclcl.h file.
>
> #include <sys/types.h>
> #include <string.h>
> #include <tcl.h>
> extern "C" {
> #include <otcl.h>
> }
>
> #include "tclcl-config.h"
> #include "tracedvar.h"
>
> What does extern "C" ... mean?
>
> Thanks in advance.

tells the C++ compiler that the functions declared in the header file are C 
functions

-- 
How much can you know about yourself, you've never been in a fight? I don't 
wanna die without any scars. So come on; hit me

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-16  3:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-16  1:40 what does this block of code mean? Jack Bauer
2007-07-16  3:10 ` Ben Kevan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox