diff --git a/centrallix-lib/include/datatypes.h b/centrallix-lib/include/datatypes.h index da7b509d8..4190d7b6f 100644 --- a/centrallix-lib/include/datatypes.h +++ b/centrallix-lib/include/datatypes.h @@ -5,7 +5,7 @@ /* Centrallix Application Server System */ /* Centrallix Base Library */ /* */ -/* Copyright (C) 1998-2001 LightSys Technology Services, Inc. */ +/* Copyright (C) 1998-2026 LightSys Technology Services, Inc. */ /* */ /* You may use these files and this library under the terms of the */ /* GNU Lesser General Public License, Version 2.1, contained in the */ @@ -25,15 +25,15 @@ typedef union _DT { struct { - unsigned int Second:6; - unsigned int Minute:6; - unsigned int Hour:5; - unsigned int Day:5; - unsigned int Month:4; - unsigned int Year:12; + unsigned int Second:6; /* 0-based */ + unsigned int Minute:6; /* 0-based */ + unsigned int Hour:5; /* 0-based */ + unsigned int Day:5; /* 0-based */ + unsigned int Month:4; /* 0-based: so February is 1. */ + unsigned int Year:12; /* 1900-based: so 2002 is 102. */ } Part; - long long Value; + long long Value; /* NOT seconds since the epoch! */ } DateTime, *pDateTime; diff --git a/centrallix-lib/include/qprintf.h b/centrallix-lib/include/qprintf.h index d638ef684..a9ba2b37f 100644 --- a/centrallix-lib/include/qprintf.h +++ b/centrallix-lib/include/qprintf.h @@ -13,7 +13,7 @@ /* Centrallix Application Server System */ /* Centrallix Base Library */ /* */ -/* Copyright (C) 1998-2006 LightSys Technology Services, Inc. */ +/* Copyright (C) 1998-2026 LightSys Technology Services, Inc. */ /* */ /* You may use these files and this library under the terms of the */ /* GNU Lesser General Public License, Version 2.1, contained in the */ @@ -32,7 +32,15 @@ #include -typedef int (*qpf_grow_fn_t)(char**, size_t*, size_t, void*, size_t); +/*** A function to grow a string buffer. + *** + *** @param str The string buffer being grown. + *** @param size A pointer to the current size of the string buffer. + *** @param offset An offset up to which data must be preserved. + *** @param args Arguments for growing the buffer. + *** @param req The requested size. + ***/ +typedef int (*qpf_grow_fn_t)(char** str, size_t* size, size_t offset, void* args, size_t req); typedef struct _QPS {