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

Commitae14530

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

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎src/include/nodes/nodes.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -487,25 +487,25 @@ extern PGDLLIMPORT Node *newNodeMacroHolder;
487487
#defineIsA(nodeptr,_type_)(nodeTag(nodeptr) == T_##_type_)
488488

489489
/*
490-
* castNode(type, ptr) casts ptr to typeand,ifcassert is enabled, verifies
491-
* that thethe c actuallyhas the appropriate type (usingit's nodeTag()).
490+
* castNode(type, ptr) casts ptr to"type*", andifassertions are enabled,
491+
*verifiesthat thenodehas the appropriate type (usingits nodeTag()).
492492
*
493493
* Use an inline function when assertions are enabled, to avoid multiple
494-
* evaluations of the ptr argument (which could e.g. be a function call). If
495-
* inline functions are not available - only a small number of platforms -
494+
* evaluations of the ptr argument (which could e.g. be a function call).
495+
*Ifinline functions are not available - only a small number of platforms -
496496
* don't Assert, but use the non-checking version.
497497
*/
498498
#if defined(USE_ASSERT_CHECKING)&& defined(PG_USE_INLINE)
499-
staticinlineNode*
500-
castNodeImpl(enumNodeTagtype,void*ptr)
499+
staticinlineNode*
500+
castNodeImpl(NodeTagtype,void*ptr)
501501
{
502502
Assert(ptr==NULL||nodeTag(ptr)==type);
503-
returnptr;
503+
return(Node*)ptr;
504504
}
505505
#definecastNode(_type_,nodeptr) ((_type_ *) castNodeImpl(T_##_type_, nodeptr))
506506
#else
507-
#definecastNode(_type_,nodeptr)((_type_ *)(nodeptr))
508-
#endif
507+
#definecastNode(_type_,nodeptr) ((_type_ *)(nodeptr))
508+
#endif/* USE_ASSERT_CHECKING && PG_USE_INLINE */
509509

510510

511511
/* ----------------------------------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp