[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] still exploring the last version: what is gremlin ?
From: |
Larry Jones |
Subject: |
Re: [Groff] still exploring the last version: what is gremlin ? |
Date: |
Fri, 6 Oct 2000 15:57:58 -0400 (EDT) |
Daniel Senderowicz writes (quoting me):
>
> >Actually, assuming that readmask is a mask for select, it should
> >probably be more like:
> >
> > FD_ZERO(&readmask);
> > FD_SET(ConnectionNumber(display), &readmask);
>
> This couple of lines give the following error message:
>
> main.c:595: request for member `fds_bits' in something not a structure or
> union
> *** Error code 1
Which means that readmask isn't declared correctly -- it's probably
declared as an unsigned int or an unsigned long (or an array of them),
rather than being declared as an fd_set. The original definition of
select used primitive types, but it quickly became apparent that that
created all kinds of portability problems so the fd_set type and the
FD_* macros were added to encapsulate all of the messy stuff.
Unfortunately, a lot of programmers never bothered to learn to use them.
-Larry Jones
Things are never quite as scary when you've got a best friend. -- Calvin
- Re: [Groff] still exploring the last version: what is gremlin ?, (continued)
- Re: [Groff] still exploring the last version: what is gremlin ?, Daniel Senderowicz, 2000/10/06
- Re: [Groff] still exploring the last version: what is gremlin ?, Daniel Senderowicz, 2000/10/06
- Re: [Groff] still exploring the last version: what is gremlin ?,
Larry Jones <=
- Re: [Groff] still exploring the last version: what is gremlin ?, Daniel Senderowicz, 2000/10/07
- Re: [Groff] still exploring the last version: what is gremlin ?, Daniel Senderowicz, 2000/10/17
- Re: [Groff] still exploring the last version: what is gremlin ?, Daniel Senderowicz, 2000/10/18