[HACKERS] forward declaration in c

2009-05-25 Thread Pavel Stehule
Hello I can't to find fine syntax for cyclic declaration: . typedef Node *(*TransformColumnRef_hook_type) (ParseState *pstate, ColumnRef *cref); typedef struct ParseState { struct ParseState *parentParseState;/* stack link */ const char *p_sourcetext; /* source

Re: [HACKERS] forward declaration in c

2009-05-25 Thread Martijn van Oosterhout
On Mon, May 25, 2009 at 01:20:05PM +0200, Pavel Stehule wrote: Hello I can't to find fine syntax for cyclic declaration: If you mean forward declaraions of a type, just: struct ParseState will do, then: typedef Node *(*TransformColumnRef_hook_type) (struct ParseState *pstate, ColumnRef

Re: [HACKERS] forward declaration in c

2009-05-25 Thread Pavel Stehule
2009/5/25 Martijn van Oosterhout klep...@svana.org: On Mon, May 25, 2009 at 01:20:05PM +0200, Pavel Stehule wrote: Hello I can't to find fine syntax for cyclic declaration: If you mean forward declaraions of a type, just: struct ParseState will do, then: typedef Node