Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions centrallix-lib/include/datatypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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;

Expand Down
12 changes: 10 additions & 2 deletions centrallix-lib/include/qprintf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -32,7 +32,15 @@

#include <stdarg.h>

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
{
Expand Down