This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tuples] constructors and assorted infrastructure


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)

??


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]