Fix insufficiently-parenthesized macro definitions.
No known bug here, but...
This commit is contained in:
parent
b83047eee2
commit
7a64100164
|
@ -7,7 +7,7 @@
|
||||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: sdir.h,v 1.7 2000/01/26 05:57:51 momjian Exp $
|
* $Id: sdir.h,v 1.8 2000/11/02 23:11:03 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -31,28 +31,28 @@ typedef enum ScanDirection
|
||||||
* True iff scan direction is valid.
|
* True iff scan direction is valid.
|
||||||
*/
|
*/
|
||||||
#define ScanDirectionIsValid(direction) \
|
#define ScanDirectionIsValid(direction) \
|
||||||
((bool) (BackwardScanDirection <= direction && \
|
((bool) (BackwardScanDirection <= (direction) && \
|
||||||
direction <= ForwardScanDirection))
|
(direction) <= ForwardScanDirection))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ScanDirectionIsBackward
|
* ScanDirectionIsBackward
|
||||||
* True iff scan direction is backward.
|
* True iff scan direction is backward.
|
||||||
*/
|
*/
|
||||||
#define ScanDirectionIsBackward(direction) \
|
#define ScanDirectionIsBackward(direction) \
|
||||||
((bool) (direction == BackwardScanDirection))
|
((bool) ((direction) == BackwardScanDirection))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ScanDirectionIsNoMovement
|
* ScanDirectionIsNoMovement
|
||||||
* True iff scan direction indicates no movement.
|
* True iff scan direction indicates no movement.
|
||||||
*/
|
*/
|
||||||
#define ScanDirectionIsNoMovement(direction) \
|
#define ScanDirectionIsNoMovement(direction) \
|
||||||
((bool) (direction == NoMovementScanDirection))
|
((bool) ((direction) == NoMovementScanDirection))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ScanDirectionIsForward
|
* ScanDirectionIsForward
|
||||||
* True iff scan direction is forward.
|
* True iff scan direction is forward.
|
||||||
*/
|
*/
|
||||||
#define ScanDirectionIsForward(direction) \
|
#define ScanDirectionIsForward(direction) \
|
||||||
((bool) (direction == ForwardScanDirection))
|
((bool) ((direction) == ForwardScanDirection))
|
||||||
|
|
||||||
#endif /* SDIR_H */
|
#endif /* SDIR_H */
|
||||||
|
|
Loading…
Reference in New Issue