Re: Macros for typtype (was Re: Arrays of Complex Types) - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Macros for typtype (was Re: Arrays of Complex Types)
Date
Msg-id 200704010228.56249.peter_e@gmx.net
Whole thread Raw
In response to Re: Macros for typtype (was Re: Arrays of Complex Types)  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Macros for typtype (was Re: Arrays of Complex Types)
List pgsql-hackers
Bruce Momjian wrote:
> > I just realized that I need to check every usage of typtype to be
> > sure that the enums patch is sane.  So, barring objection, I intend
> > to take this opportunity to make the code stop referring directly
> > to 'b', 'c' etc whereever possible.  Any objections to these names?
> >
> > #define    TYPTYPE_BASE        'b'
> > #define    TYPTYPE_COMPOSITE    'c'
> > #define    TYPTYPE_DOMAIN        'd'
> > #define    TYPTYPE_ENUM        'e'
> > #define    TYPTYPE_PSEUDO        'p'
>
> I like macros.  ;-)

Why not enums? ;-)

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Macros for typtype (was Re: Arrays of Complex Types)
Next
From: Mark Dilger
Date:
Subject: Re: Bug in UTF8-Validation Code?