1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +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

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.8 1997/02/13 08:31:57 scrappy Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.9 1997/08/19 21:36:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -28,8 +28,8 @@
and both sides of a string */
/* MODIFIES the string passed in and returns the head of it */
char *leftTrim(char *s)
#ifdef NOT_USED
static char *leftTrim(char *s)
{
char *s2 = s;
int shift=0;
@ -45,6 +45,7 @@ char *leftTrim(char *s)
return s2;
}
#endif
char *rightTrim(char *s)
{
@ -59,11 +60,13 @@ char *rightTrim(char *s)
return s;
}
char *doubleTrim(char *s)
#ifdef NOT_USED
static char *doubleTrim(char *s)
{
strcpy(s,leftTrim(rightTrim(s)));
return s;
}
#endif
#ifdef STRINGUTILS_TEST
void testStringUtils()