| delorie.com/archives/browse.cgi | search |
| From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: questions about bcd and c++ |
| Organization: | Pin Eight Software http://pineight.8m.com/ |
| Message-ID: | <j8jdhscssjuh1hu1hcfu4igt9t1mn6s06o@4ax.com> |
| References: | <8epjp2$jbp$1 AT nnrp02 DOT primenet DOT com> <8epn4g$k1i$1 AT nnrp02 DOT primenet DOT com> <391063d2 DOT 38568953 AT news DOT freeserve DOT net> <8eprlt$k97$1 AT nnrp03 DOT primenet DOT com> <8a96hscqfqik9t7n7lgqqindik5ctl59d4 AT 4ax DOT com> <8f6cvi$cr8$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| MIME-Version: | 1.0 |
| Lines: | 39 |
| X-Trace: | /b/VKWpwRd07fBdqcw9vwrgQZxZH8lkSe/5EMPADYGN2YhDEdAx/78yn2p9mcmbRcj/9n4Bmxc57!Lzrrc5dKOC/BSdG6J81EXZjcgnLzHBGQTO2g2WzAcT7EMAImFOPGjMghrneMXUaE2fHa0mgLXXBz!E1TB |
| X-Complaints-To: | abuse AT gte DOT net |
| X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
| X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
| NNTP-Posting-Date: | Mon, 08 May 2000 14:21:39 GMT |
| Distribution: | world |
| Date: | Mon, 08 May 2000 14:21:39 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On 8 May 2000 12:46:42 GMT, Hans-Bernhard Broeker
<broeker AT physik DOT rwth-aachen DOT de> wrote:
>Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comremovebullcr_p> wrote:
>
>> #ifdef __cplusplus
>> #define EXTERN_C extern "C"
>> #else
>> #define EXTERN_C
>> #endif
>
>> Then prefix all function prototypes with EXTERN_C and send the new
>> header file back to the maintainer.
>
>Heavily over-complicated. A simple method is the one implemented by all
>the DJGPP libc headers. At the beginning of the file, add:
>
> #ifdef __cplusplus
> extern "C" {
> #endif
>
>and at the end:
>
> #ifdef __cplusplus
> }
> #endif
But wouldn't that choke on structs and global object declarations?
Oh, now I see. Move all protos to the end of the header file and use
your wrapper around that.
--
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |