[tuples] constructors and assorted infrastructure

Aldy Hernandez aldyh@redhat.com
Fri May 4 19:46:00 GMT 2007


On Fri, May 04, 2007 at 10:07:14AM -0700, Andrew Pinski wrote:
> On 5/4/07, Aldy Hernandez <aldyh@redhat.com> wrote:
> >-#define GS_SEQ_INIT {0, 0}
> >+#define GS_SEQ_INIT (struct gs_sequence) {0, 0}
> 
> You cannot use C99 in GCC sources.

What is recommended?  memset?  or something like this:

#define GS_SEQ_INIT(SEQ)	((SEQ).first = NULL, (SEQ).last = NULL)

  struct gs_sequence blah;
  GS_SEQ_INIT (blah)

??



More information about the Gcc-patches mailing list