Move a definition inside a header file

Over time, this has ended up in a slightly inappropriate place
relative to the comments around it.
This commit is contained in:
Peter Eisentraut 2022-08-19 11:20:09 +02:00
parent 31e121d4f7
commit 7d12693473

View File

@ -42,14 +42,14 @@ typedef struct
#define DATE_IS_NOEND(j) ((j) == DATEVAL_NOEND) #define DATE_IS_NOEND(j) ((j) == DATEVAL_NOEND)
#define DATE_NOT_FINITE(j) (DATE_IS_NOBEGIN(j) || DATE_IS_NOEND(j)) #define DATE_NOT_FINITE(j) (DATE_IS_NOBEGIN(j) || DATE_IS_NOEND(j))
#define MAX_TIME_PRECISION 6
/* /*
* Macros for fmgr-callable functions. * Macros for fmgr-callable functions.
* *
* For TimeADT, we make use of the same support routines as for int64. * For TimeADT, we make use of the same support routines as for int64.
* Therefore TimeADT is pass-by-reference if and only if int64 is! * Therefore TimeADT is pass-by-reference if and only if int64 is!
*/ */
#define MAX_TIME_PRECISION 6
#define DatumGetDateADT(X) ((DateADT) DatumGetInt32(X)) #define DatumGetDateADT(X) ((DateADT) DatumGetInt32(X))
#define DatumGetTimeADT(X) ((TimeADT) DatumGetInt64(X)) #define DatumGetTimeADT(X) ((TimeADT) DatumGetInt64(X))
#define DatumGetTimeTzADTP(X) ((TimeTzADT *) DatumGetPointer(X)) #define DatumGetTimeTzADTP(X) ((TimeTzADT *) DatumGetPointer(X))