@@ -494,25 +494,25 @@ extern PGDLLIMPORT Node *newNodeMacroHolder;
494
494
#define IsA (nodeptr ,_type_ ) (nodeTag(nodeptr) == T_##_type_)
495
495
496
496
/*
497
- * castNode(type, ptr) casts ptr to type and, if cassert is enabled, verifies
498
- * that the the c actually has the appropriate type (using it's nodeTag()).
497
+ * castNode(type, ptr) casts ptr to " type *", and if assertions are enabled,
498
+ * verifies that the node has the appropriate type (using its nodeTag()).
499
499
*
500
500
* Use an inline function when assertions are enabled, to avoid multiple
501
- * evaluations of the ptr argument (which could e.g. be a function call). If
502
- * inline functions are not available - only a small number of platforms -
501
+ * evaluations of the ptr argument (which could e.g. be a function call).
502
+ * If inline functions are not available - only a small number of platforms -
503
503
* don't Assert, but use the non-checking version.
504
504
*/
505
505
#if defined(USE_ASSERT_CHECKING ) && defined(PG_USE_INLINE )
506
- static inline Node *
507
- castNodeImpl (enum NodeTag type , void * ptr )
506
+ static inline Node *
507
+ castNodeImpl (NodeTag type , void * ptr )
508
508
{
509
509
Assert (ptr == NULL || nodeTag (ptr ) == type );
510
- return ptr ;
510
+ return ( Node * ) ptr ;
511
511
}
512
512
#define castNode (_type_ , nodeptr ) ((_type_ *) castNodeImpl(T_##_type_, nodeptr))
513
513
#else
514
- #define castNode (_type_ ,nodeptr ) ((_type_ *)(nodeptr))
515
- #endif
514
+ #define castNode (_type_ , nodeptr ) ((_type_ *) (nodeptr))
515
+ #endif /* USE_ASSERT_CHECKING && PG_USE_INLINE */
516
516
517
517
518
518
/* ----------------------------------------------------------------
0 commit comments