1111 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
1212 * Portions Copyright (c) 1994, Regents of the University of California
1313 *
14- * $PostgreSQL: pgsql/src/include/fmgr.h,v 1.38 2005/03/31 22:46:24 tgl Exp $
14+ * $PostgreSQL: pgsql/src/include/fmgr.h,v 1.39 2005/06/09 18:44:05 tgl Exp $
1515 *
1616 *-------------------------------------------------------------------------
1717 */
1818#ifndef FMGR_H
1919#define FMGR_H
2020
2121/* We don't want to include primnodes.h here, so make a stub reference */
22- struct Node ;
22+ typedef struct Node * fmNodePtr ;
2323
2424
2525/*
@@ -51,7 +51,7 @@ typedef struct FmgrInfo
5151bool fn_retset ;/* function returns a set */
5252void * fn_extra ;/* extra space for use by handler */
5353MemoryContext fn_mcxt ;/* memory context to store fn_extra in */
54- struct Node * fn_expr ;/* expression parse tree for call, or NULL */
54+ fmNodePtr fn_expr ;/* expression parse tree for call, or NULL */
5555}FmgrInfo ;
5656
5757/*
@@ -60,8 +60,8 @@ typedef struct FmgrInfo
6060typedef struct FunctionCallInfoData
6161{
6262FmgrInfo * flinfo ;/* ptr to lookup info used for this call */
63- struct Node * context ;/* pass info about context of call */
64- struct Node * resultinfo ;/* pass or return extra info about result */
63+ fmNodePtr context ;/* pass info about context of call */
64+ fmNodePtr resultinfo ;/* pass or return extra info about result */
6565bool isnull ;/* function must set true if result is
6666 * NULL */
6767short nargs ;/* # arguments actually passed */
@@ -405,7 +405,7 @@ extern void clear_external_function_hash(void *filehandle);
405405extern Oid fmgr_internal_function (const char * proname );
406406extern Oid get_fn_expr_rettype (FmgrInfo * flinfo );
407407extern Oid get_fn_expr_argtype (FmgrInfo * flinfo ,int argnum );
408- extern Oid get_call_expr_argtype (struct Node * expr ,int argnum );
408+ extern Oid get_call_expr_argtype (fmNodePtr expr ,int argnum );
409409
410410/*
411411 * Routines in dfmgr.c