Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit532ca30

Browse files
committed
Avoid bare 'struct Node;' declaration --- provokes annoying warnings
on some compilers.
1 parent5c49559 commit532ca30

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
#ifndefFMGR_H
1919
#defineFMGR_H
2020

2121
/* We don't want to include primnodes.h here, so make a stub reference */
22-
structNode;
22+
typedefstructNode*fmNodePtr;
2323

2424

2525
/*
@@ -51,7 +51,7 @@ typedef struct FmgrInfo
5151
boolfn_retset;/* function returns a set */
5252
void*fn_extra;/* extra space for use by handler */
5353
MemoryContextfn_mcxt;/* memory context to store fn_extra in */
54-
structNode*fn_expr;/* expression parse tree for call, or NULL */
54+
fmNodePtrfn_expr;/* expression parse tree for call, or NULL */
5555
}FmgrInfo;
5656

5757
/*
@@ -60,8 +60,8 @@ typedef struct FmgrInfo
6060
typedefstructFunctionCallInfoData
6161
{
6262
FmgrInfo*flinfo;/* ptr to lookup info used for this call */
63-
structNode*context;/* pass info about context of call */
64-
structNode*resultinfo;/* pass or return extra info about result */
63+
fmNodePtrcontext;/* pass info about context of call */
64+
fmNodePtrresultinfo;/* pass or return extra info about result */
6565
boolisnull;/* function must set true if result is
6666
* NULL */
6767
shortnargs;/* # arguments actually passed */
@@ -405,7 +405,7 @@ extern void clear_external_function_hash(void *filehandle);
405405
externOidfmgr_internal_function(constchar*proname);
406406
externOidget_fn_expr_rettype(FmgrInfo*flinfo);
407407
externOidget_fn_expr_argtype(FmgrInfo*flinfo,intargnum);
408-
externOidget_call_expr_argtype(structNode*expr,intargnum);
408+
externOidget_call_expr_argtype(fmNodePtrexpr,intargnum);
409409

410410
/*
411411
* Routines in dfmgr.c

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp