1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +03:00

Make functions static where possible, enclose unused functions in #ifdef NOT_USED.

This commit is contained in:
Bruce Momjian
1997-08-19 21:40:56 +00:00
parent b992e200b8
commit 1d8bbfd2e7
186 changed files with 1114 additions and 1048 deletions

View File

@ -22,6 +22,8 @@
#include "utils/palloc.h"
#include "utils/builtins.h" /* where the function declarations go */
static int like(char *text, char *p);
/*
* interface routines called by the function manager
*/
@ -139,7 +141,7 @@ bool textnlike(struct varlena *s, struct varlena *p)
}
/* $Revision: 1.5 $
/* $Revision: 1.6 $
** "like.c" A first attempt at a LIKE operator for Postgres95.
**
** Originally written by Rich $alz, mirror!rs, Wed Nov 26 19:03:17 EST 1986.
@ -214,7 +216,7 @@ DoMatch(register char *text, register char *p)
/*
** User-level routine. Returns TRUE or FALSE.
*/
int
static int
like(char *text, char *p)
{
if (p[0] == '%' && p[1] == '\0')