[GENERAL] eqpg doesn't like bit fields

2006-02-02 Thread Noble, Robert
I get the following error from ecpg when it encounters a structure
containing a bit field:

../../include/ecn_types.h:317: ERROR: syntax error at or near :

The source it is complaining about is:

   176  typedef enum{
   177  tifIOC = 0,
   178  tifDay = 1,
   179  tifGTX = 2,
   180  tifGTC = 3
   181  } TIF_e;
   ...
   316  typedef struct {
= 317  TIF_e   tif :4;
   318  boolean_t   isCoreOnly  :1;
   ...

Does PostgreSQL support C-language bit fields? I tried searching the
archives, but could not find anything helpful. 

Thanks,
Bob Noble

---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ?

   http://www.postgresql.org/docs/faq


Re: [GENERAL] eqpg doesn't like bit fields

2006-02-02 Thread Michael Meskes
Am Mittwoch, 1. Februar 2006 15:46 schrieb Noble, Robert:
 I get the following error from ecpg when it encounters a structure
 containing a bit field:
 ...

A quick guess would be that the parser simply doesn't know this syntax. I'll 
have a look at it.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ?

   http://www.postgresql.org/docs/faq