Skip to content

Commit 532ca30

Browse files
committed
Avoid bare 'struct Node;' declaration --- provokes annoying warnings
on some compilers.
1 parent 5c49559 commit 532ca30

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/include/fmgr.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
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
5151
bool fn_retset; /* function returns a set */
5252
void *fn_extra; /* extra space for use by handler */
5353
MemoryContext 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
6060
typedef struct FunctionCallInfoData
6161
{
6262
FmgrInfo *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 */
6565
bool isnull; /* function must set true if result is
6666
* NULL */
6767
short nargs; /* # arguments actually passed */
@@ -405,7 +405,7 @@ extern void clear_external_function_hash(void *filehandle);
405405
extern Oid fmgr_internal_function(const char *proname);
406406
extern Oid get_fn_expr_rettype(FmgrInfo *flinfo);
407407
extern 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy