--- lbbs/include/article_cache.h 2025/11/04 13:49:50 1.9 +++ lbbs/include/article_cache.h 2025/11/05 03:17:12 1.11 @@ -3,7 +3,7 @@ * article_cache * - convert article content from DB to local cache with LML conversion and line offset index * - * Copyright (C) 2004-2025 by Leaflet + * Copyright (C) 2004-2025 Leaflet */ #ifndef _ARTICLE_CACHE_H_ @@ -13,6 +13,11 @@ #include "section_list.h" #include "str_process.h" +enum article_cache_constant_t +{ + ARTICLE_CONTENT_MAX_LEN = 1024 * 1024 * 4, // 4MB +}; + struct article_cache_t { void *p_mmap;