Modernize Bongo 0.7.0 foundation

This commit is contained in:
Mario Fetka
2026-07-16 14:26:58 +02:00
parent 27a70c1332
commit 16015f8559
516 changed files with 16029 additions and 24385 deletions
+7 -7
View File
@@ -109,11 +109,11 @@
#define TZ_DATELINE 74
typedef struct _MsgDateFormat {
unsigned char **monthShort;
unsigned char **monthLong;
unsigned char **wDayShort;
unsigned char **wDayLong;
unsigned char **AmPm;
const char *const *monthShort;
const char *const *monthLong;
const char *const *wDayShort;
const char *const *wDayLong;
const char *const *AmPm;
unsigned long wDayStart;
@@ -139,7 +139,7 @@ EXPORT void MsgGetDate(long rataDie, unsigned long *day, unsigned long *month, u
EXPORT long MsgGetRataDie(unsigned long day, unsigned long month, unsigned long year);
/* Date Interface */
EXPORT BOOL MsgGetRFC822Date(long offset, long utcCime, unsigned char *dateBuffer);
EXPORT BOOL MsgGetRFC822Date(long offset, long utcCime, char *dateBuffer);
EXPORT long MsgGetUTCOffset(void);
EXPORT unsigned long MsgGetUTC(unsigned long day, unsigned long month, unsigned long year, unsigned long hour, unsigned long minute, unsigned long second);
@@ -147,7 +147,7 @@ EXPORT BOOL MsgGetDMY(unsigned long utcTime, unsigned long *day, unsigned long *
EXPORT unsigned long MsgGetTimezoneID(long day, long wDay, unsigned long month, unsigned long hour, long dstDay, long dstWDay, unsigned long dstMonth, unsigned long dstHour, long offset, long dstOffset);
EXPORT long MsgGetUTCOffsetByDate(unsigned long timezone, unsigned long day, unsigned long month, unsigned long year, unsigned long hour);
EXPORT long MsgGetUTCOffsetByUTC(unsigned long timezone, unsigned long utc);
EXPORT unsigned long MsgPrint(unsigned char *buffer, int bufLen, unsigned char *format, unsigned long time, MsgDateFormat *dateInfo);
EXPORT unsigned long MsgPrint(char *buffer, int bufLen, const char *format, unsigned long time, const MsgDateFormat *dateInfo);
unsigned long MsgLookupRFC822Month(const char *name);
uint64_t MsgParseRFC822DateTime(const char *date);