Reduced MAX_HISTORY, moved LOAD_FUNC macro, added irc_reply docs. (0.40.9)
- Reduced MAX_HISTORY from 100 to 12 to decrease AI context memory usage. - Moved LOAD_FUNC macro from zynk.h to db.h for better code organization (closer to its usage in sqlite_init_lib). - Added comprehensive doc comment to irc_reply() function describing its nick-prefixing behavior for channel messages. - Reordered includes in zynk.c to alphabetical order.
This commit is contained in:
parent
feccad5853
commit
8861e3201a
6 changed files with 34 additions and 10 deletions
6
db.h
6
db.h
|
|
@ -22,6 +22,12 @@ int (*db_bind_int64)(void*,int,long long);
|
|||
long long (*db_last_rowid)(void*);
|
||||
void *db_handle;
|
||||
|
||||
#define LOAD_FUNC(var, name) do { \
|
||||
union { void *p; typeof(var) f; } _u; \
|
||||
_u.p = dlsym(sqlite_lib, name); \
|
||||
var = _u.f; \
|
||||
} while(0)
|
||||
|
||||
/*
|
||||
* sqlite_init_lib - Dynamically load libsqlite3 and resolve function symbols.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue