From 1d8bbfd2e7cfb72cbe4d5c5d4fa650a28dedac0b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 19 Aug 1997 21:40:56 +0000 Subject: Make functions static where possible, enclose unused functions in #ifdef NOT_USED. --- src/backend/utils/adt/datetime.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/backend/utils/adt/datetime.c') diff --git a/src/backend/utils/adt/datetime.c b/src/backend/utils/adt/datetime.c index 2cf7324275b..171805e59d6 100644 --- a/src/backend/utils/adt/datetime.c +++ b/src/backend/utils/adt/datetime.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.10 1997/07/01 00:22:40 thomas Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.11 1997/08/19 21:34:32 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -25,6 +25,9 @@ #include "utils/datetime.h" #include "access/xact.h" +static int date2tm(DateADT dateVal, int *tzp, struct tm *tm, double *fsec, char **tzn); + + static int day_tab[2][12] = { {31,28,31,30,31,30,31,31,30,31,30,31}, {31,29,31,30,31,30,31,31,30,31,30,31} }; @@ -140,8 +143,6 @@ date_out(DateADT date) return(result); } /* date_out() */ -int date2tm(DateADT dateVal, int *tzp, struct tm *tm, double *fsec, char **tzn); - bool date_eq(DateADT dateVal1, DateADT dateVal2) { @@ -330,7 +331,7 @@ abstime_date(AbsoluteTime abstime) * that everything is GMT. So, convert to GMT, rotate to local time, * and then convert again to try to get the time zones correct. */ -int +static int date2tm(DateADT dateVal, int *tzp, struct tm *tm, double *fsec, char **tzn) { struct tm *tx; -- cgit v1.2.3