| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin-developers/> |
| List-Post: | <mailto:cygwin-developers AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-developers-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin-developers AT sources DOT redhat DOT com |
| Message-ID: | <007001c0b14a$adb8a770$0200a8c0@lifelesswks> |
| From: | "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au> |
| To: | "Corinna Vinschen" <cygwin-developers AT cygwin DOT com> |
| References: | <006501c0b120$094af0f0$0200a8c0 AT lifelesswks> <20010320152613 DOT A17995 AT cygbert DOT vinschen DOT de> |
| Subject: | Re: YANDQ |
| Date: | Wed, 21 Mar 2001 01:33:01 +1100 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 5.50.4133.2400 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
| X-OriginalArrivalTime: | 20 Mar 2001 14:27:30.0503 (UTC) FILETIME=[E55AB570:01C0B149] |
----- Original Message ----- From: "Corinna Vinschen" <vinschen AT redhat DOT com> To: <cygwin-developers AT cygwin DOT com> Sent: Wednesday, March 21, 2001 1:26 AM Subject: Re: YANDQ > > Are these specs way of base? If not, how do I go about altering > > sys/types.h (which I note appears to be part of newlib). > > We could introduce a > > #ifdef __CYGWIN__ > #include <cygwin/threads.h> > #endif > > into newlib's sys/types.h > > and then you can use cygwin/threads.h as you like. > I shouldn't need to make many changes at all to sys/types. It's really just a matter of getting the typedefs into the correct place. I'm happy with either cygwin/thread.h or sys/types.h, but I'd prefer to put the actual typedefs into sys/types.h. > > > > The question arises because I have an external typedef which is > > different from the internal typedef. While I could type cast everything > > to make it match up (class pthread ** to void ** for instance) it reads > > a lot more easily (which helps debugging) with no casting involved. > > > > FYI the external typedefs are of the form > > typedef void * foo_t > > and the internal ones > > typedef class foo * foo_t. > > You could use > > #ifdef __INSIDE_CYGWIN__ > typedef class foo * foo_t; > #else > typedef void * foo_t; > #endif > > Corinna > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Developer mailto:cygwin AT cygwin DOT com > Red Hat, Inc. > Thanks, that looks like it'll be handy. Rob
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |