1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Add routines istrue() and isfalse() to directly evaluate boolean type.

This commit is contained in:
Thomas G. Lockhart
1997-10-30 16:45:12 +00:00
parent 770352d279
commit cc1b420cfd
3 changed files with 20 additions and 3 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.9 1997/10/25 05:09:58 thomas Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.10 1997/10/30 16:45:12 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@ -116,3 +116,15 @@ boolgt(bool arg1, bool arg2)
{
return (arg1 > arg2);
}
bool
istrue(bool arg1)
{
return(arg1 == TRUE);
} /* istrue() */
bool
isfalse(bool arg1)
{
return(arg1 != TRUE);
} /* istrue() */