1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Cosmetic code cleanup: fix a bunch of places that used "return (expr);"

rather than "return expr;" -- the latter style is used in most of the
tree. I kept the parentheses when they were necessary or useful because
the return expression was complex.
This commit is contained in:
Neil Conway
2006-01-11 08:43:13 +00:00
parent 762bcbdba2
commit fb627b76cc
19 changed files with 68 additions and 68 deletions

View File

@ -11,7 +11,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/like.c,v 1.62 2005/10/15 02:49:28 momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/like.c,v 1.63 2006/01/11 08:43:12 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@ -49,19 +49,19 @@ wchareq(char *p1, char *p2)
/* Optimization: quickly compare the first byte. */
if (*p1 != *p2)
return (0);
return 0;
p1_len = pg_mblen(p1);
if (pg_mblen(p2) != p1_len)
return (0);
return 0;
/* They are the same length */
while (p1_len--)
{
if (*p1++ != *p2++)
return (0);
return 0;
}
return (1);
return 1;
}
/*--------------------
@ -91,7 +91,7 @@ iwchareq(char *p1, char *p2)
* different characters
*/
else if ((unsigned char) *p1 < CHARMAX || (unsigned char) *p2 < CHARMAX)
return (0);
return 0;
/*
* ok, p1 and p2 are both > CHARMAX, then they must be multibyte