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

Commitfefb86b

Browse files
committed
Orthography fixes for new castNode() macro.
Clean up hastily-composed comment. Normalize whitespace.Erik Rijkers and myself
1 parent7afd56c commitfefb86b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/include/nodes/nodes.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -559,23 +559,23 @@ extern PGDLLIMPORT Node *newNodeMacroHolder;
559559
#defineIsA(nodeptr,_type_)(nodeTag(nodeptr) == T_##_type_)
560560

561561
/*
562-
* castNode(type, ptr) casts ptr to typeand,ifcassert is enabled, verifies
563-
* that thethe c actuallyhas the appropriate type (usingit's nodeTag()).
562+
* castNode(type, ptr) casts ptr to"type*", andifassertions are enabled,
563+
*verifiesthat thenodehas the appropriate type (usingits nodeTag()).
564564
*
565565
* Use an inline function when assertions are enabled, to avoid multiple
566566
* evaluations of the ptr argument (which could e.g. be a function call).
567567
*/
568568
#ifdefUSE_ASSERT_CHECKING
569-
staticinlineNode*
570-
castNodeImpl(enumNodeTagtype,void*ptr)
569+
staticinlineNode*
570+
castNodeImpl(NodeTagtype,void*ptr)
571571
{
572572
Assert(ptr==NULL||nodeTag(ptr)==type);
573-
returnptr;
573+
return(Node*)ptr;
574574
}
575575
#definecastNode(_type_,nodeptr) ((_type_ *) castNodeImpl(T_##_type_, nodeptr))
576576
#else
577-
#definecastNode(_type_,nodeptr)((_type_ *)(nodeptr))
578-
#endif
577+
#definecastNode(_type_,nodeptr) ((_type_ *)(nodeptr))
578+
#endif/* USE_ASSERT_CHECKING */
579579

580580

581581
/* ----------------------------------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp