|
43 | 43 |
|
44 | 44 | static int time2tm(TimeADT time, struct pg_tm *tm, fsec_t *fsec); |
45 | 45 | static int timetz2tm(TimeTzADT *time, struct pg_tm *tm, fsec_t *fsec, int *tzp); |
46 | | -static int tm2time(struct pg_tm *tm, fsec_t fsec, TimeADT *result); |
47 | | -static int tm2timetz(struct pg_tm *tm, fsec_t fsec, int tz, TimeTzADT *result); |
48 | | -static void AdjustTimeForTypmod(TimeADT *time, int32 typmod); |
49 | 46 |
|
50 | 47 |
|
51 | 48 | /* common code for timetypmodin and timetztypmodin */ |
@@ -1234,7 +1231,7 @@ time_in(PG_FUNCTION_ARGS) |
1234 | 1231 | /* tm2time() |
1235 | 1232 | * Convert a tm structure to a time data type. |
1236 | 1233 | */ |
1237 | | -static int |
| 1234 | +int |
1238 | 1235 | tm2time(struct pg_tm *tm, fsec_t fsec, TimeADT *result) |
1239 | 1236 | { |
1240 | 1237 | *result = ((((tm->tm_hour * MINS_PER_HOUR + tm->tm_min) * SECS_PER_MINUTE) + tm->tm_sec) |
@@ -1400,7 +1397,7 @@ time_scale(PG_FUNCTION_ARGS) |
1400 | 1397 | * have a fundamental tie together but rather a coincidence of |
1401 | 1398 | * implementation. - thomas |
1402 | 1399 | */ |
1403 | | -static void |
| 1400 | +void |
1404 | 1401 | AdjustTimeForTypmod(TimeADT *time, int32 typmod) |
1405 | 1402 | { |
1406 | 1403 | static const int64 TimeScales[MAX_TIME_PRECISION + 1] = { |
@@ -1939,7 +1936,7 @@ time_part(PG_FUNCTION_ARGS) |
1939 | 1936 | /* tm2timetz() |
1940 | 1937 | * Convert a tm structure to a time data type. |
1941 | 1938 | */ |
1942 | | -static int |
| 1939 | +int |
1943 | 1940 | tm2timetz(struct pg_tm *tm, fsec_t fsec, int tz, TimeTzADT *result) |
1944 | 1941 | { |
1945 | 1942 | result->time = ((((tm->tm_hour * MINS_PER_HOUR + tm->tm_min) * SECS_PER_MINUTE) + tm->tm_sec) * |
|
0 commit comments