| delorie.com/archives/browse.cgi | search |
| From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: questions about bcd and c++ |
| Date: | 8 May 2000 15:27:54 GMT |
| Organization: | Aachen University of Technology (RWTH) |
| Lines: | 36 |
| Distribution: | world |
| Message-ID: | <8f6mdq$h0i$1@nets3.rz.RWTH-Aachen.DE> |
| 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> <j8jdhscssjuh1hu1hcfu4igt9t1mn6s06o AT 4ax DOT com> |
| NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
| X-Trace: | nets3.rz.RWTH-Aachen.DE 957799674 17426 137.226.32.75 (8 May 2000 15:27:54 GMT) |
| X-Complaints-To: | abuse AT rwth-aachen DOT de |
| NNTP-Posting-Date: | 8 May 2000 15:27:54 GMT |
| Originator: | broeker@ |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comremovebullcr_p> wrote:
> On 8 May 2000 12:46:42 GMT, Hans-Bernhard Broeker
> <broeker AT physik DOT rwth-aachen DOT de> wrote:
>> #ifdef __cplusplus
>> extern "C" {
>> #endif
>>
>>and at the end:
>>
>> #ifdef __cplusplus
>> }
>> #endif
> But wouldn't that choke on structs and global object declarations?
No, it wouldn't. Otherwise, all C++ with #include <stdio.h> would have
to choke, already. Go figure: the very construct I describe braces
*all* of our <stdio.h>, except for the multiple inclusion
guard. Quoting the DJGPP 2.something version I happen to have easily
available:
#ifndef __dj_include_stdio_h_
#define __dj_include_stdio_h_
#ifdef __cplusplus
extern "C" {
#endif
> Oh, now I see. Move all protos to the end of the header file and use
> your wrapper around that.
No.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |