Can I declare a struct in a function's declaration section?  Something
like this:

static void
        struct foo {
                Oid             foo;
                int             bar;

        struct foo baz; = InvalidOid; = 42;


I tried here and GCC does not complain, with -std=c89 -pedantic.

Alvaro Herrera                      
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at


Reply via email to