refactor: split database_flatfile.c into functional modules
All checks were successful
CI Code / Check coding style (pull_request) Successful in 32s
CI Code / Check spelling (pull_request) Successful in 24s
CI Code / Linux (arch) (pull_request) Successful in 6m52s
CI Code / Linux (debian) (pull_request) Successful in 8m49s
CI Code / Linux (ubuntu) (pull_request) Successful in 6m18s
CI Code / Code Coverage (pull_request) Successful in 8m24s

Split the monolithic database_flatfile.c into:
- database_flatfile.h: internal header with shared types and prototypes
- database_flatfile_parser.c: parsing, escaping, IO helpers
- database_flatfile_verify.c: integrity verification logic
- database_flatfile.c: core backend (init, write, read, LMC, vtable)
This commit is contained in:
2026-02-18 17:17:30 +03:00
parent b8cbe10cf1
commit 59fe15f4d0
5 changed files with 1306 additions and 1113 deletions

View File

@@ -4,7 +4,9 @@ core_sources = \
src/chatlog.c src/chatlog.h \
src/database.h src/database.c \
src/database_sqlite.c \
src/database_flatfile.c \
src/database_flatfile.c src/database_flatfile.h \
src/database_flatfile_parser.c \
src/database_flatfile_verify.c \
src/log.h src/profanity.c src/common.h \
src/profanity.h src/xmpp/chat_session.c \
src/xmpp/chat_session.h src/xmpp/muc.c src/xmpp/muc.h src/xmpp/jid.h src/xmpp/jid.c \