94
94
#define FB_CC CcIcc
95
95
#endif
96
96
97
- // SLONG is a 32-bit integer on 64-bit platforms
98
- // #if SIZEOF_LONG == 4
99
- // #define SLONGFORMAT "ld"
100
- // #define ULONGFORMAT "lu"
101
- // #define XLONGFORMAT "lX"
102
- // #define xLONGFORMAT "lx"
103
- // #endif
104
-
105
97
// format for size_t
106
98
#ifndef SIZEFORMAT
107
99
#define SIZEFORMAT " zi"
230
222
// format for __LINE__
231
223
#define LINEFORMAT " d"
232
224
233
- // #define SLONGFORMAT "ld"
234
- // #define ULONGFORMAT "lu"
235
- // #define XLONGFORMAT "lX"
236
- // #define xLONGFORMAT "lx"
237
-
238
225
#define FB_CC CcGcc
239
226
240
227
#define UNIX
@@ -541,10 +528,6 @@ extern "C" int remove(const char* path);
541
528
#endif
542
529
543
530
#define SYS_ERR Arg::Windows
544
- // #define SLONGFORMAT "ld"
545
- // #define ULONGFORMAT "lu"
546
- // #define XLONGFORMAT "lX"
547
- // #define xLONGFORMAT "lx"
548
531
549
532
// format for __LINE__
550
533
#define LINEFORMAT " d"
@@ -955,11 +938,11 @@ void GDS_breakpoint(int);
955
938
956
939
// Used in quad operations
957
940
#ifndef WORDS_BIGENDIAN
958
- const int LOW_WORD = 0 ;
959
- const int HIGH_WORD = 1 ;
941
+ inline constexpr int LOW_WORD = 0 ;
942
+ inline constexpr int HIGH_WORD = 1 ;
960
943
#else
961
- const int LOW_WORD = 1 ;
962
- const int HIGH_WORD = 0 ;
944
+ inline constexpr int LOW_WORD = 1 ;
945
+ inline constexpr int HIGH_WORD = 0 ;
963
946
#endif
964
947
965
948
#ifndef HAVE_WORKING_VFORK
@@ -976,7 +959,7 @@ const int HIGH_WORD = 0;
976
959
#endif
977
960
978
961
979
- inline const TEXT FB_SHORT_MONTHS[][4 ] =
962
+ inline constexpr TEXT FB_SHORT_MONTHS[][4 ] =
980
963
{
981
964
" Jan" , " Feb" , " Mar" ,
982
965
" Apr" , " May" , " Jun" ,
@@ -985,7 +968,7 @@ inline const TEXT FB_SHORT_MONTHS[][4] =
985
968
" \0 "
986
969
};
987
970
988
- inline const TEXT* const FB_LONG_MONTHS_UPPER[] =
971
+ inline constexpr const TEXT* FB_LONG_MONTHS_UPPER[] =
989
972
{
990
973
" JANUARY" ,
991
974
" FEBRUARY" ,
@@ -1003,7 +986,7 @@ inline const TEXT* const FB_LONG_MONTHS_UPPER[] =
1003
986
};
1004
987
1005
988
// Starts with SUNDAY cuz tm.tm_wday starts with it
1006
- inline const TEXT FB_SHORT_DAYS[][4 ] =
989
+ inline constexpr TEXT FB_SHORT_DAYS[][4 ] =
1007
990
{
1008
991
" Sun" ,
1009
992
" Mon" ,
@@ -1016,7 +999,7 @@ inline const TEXT FB_SHORT_DAYS[][4] =
1016
999
};
1017
1000
1018
1001
// Starts with SUNDAY cuz tm.tm_wday starts with it
1019
- inline const TEXT* const FB_LONG_DAYS_UPPER[] =
1002
+ inline constexpr const TEXT* FB_LONG_DAYS_UPPER[] =
1020
1003
{
1021
1004
" SUNDAY" ,
1022
1005
" MONDAY" ,
@@ -1028,7 +1011,7 @@ inline const TEXT* const FB_LONG_DAYS_UPPER[] =
1028
1011
" \0 "
1029
1012
};
1030
1013
1031
- const FB_SIZE_T FB_MAX_SIZEOF = ~FB_SIZE_T (0 ); // Assume FB_SIZE_T is unsigned
1014
+ inline constexpr FB_SIZE_T FB_MAX_SIZEOF = ~FB_SIZE_T (0 ); // Assume FB_SIZE_T is unsigned
1032
1015
1033
1016
inline constexpr FB_SIZE_T fb_strlen (const char * str)
1034
1017
{
0 commit comments