--- lbbs/include/common.h 2025/10/19 07:42:53 1.55 +++ lbbs/include/common.h 2025/11/04 13:49:50 1.59 @@ -1,18 +1,10 @@ -/*************************************************************************** - common.h - description - ------------------- - Copyright : (C) 2004-2025 by Leaflet - Email : leaflet@leafok.com - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 3 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* + * common + * - common definitions + * + * Copyright (C) 2004-2025 by Leaflet + */ #ifndef _COMMON_H_ #define _COMMON_H_ @@ -53,13 +45,15 @@ #define VAR_ARTICLE_BLOCK_SHM "var/article_block_shm.~" #define VAR_SECTION_LIST_SHM "var/section_list_shm.~" #define VAR_TRIE_DICT_SHM "var/trie_dict_shm.~" +#define VAR_USER_LIST_SHM "var/user_list_shm.~" #define VAR_ARTICLE_CACHE_DIR "var/articles/" #define VAR_GEN_EX_MENU_DIR "var/gen_ex/" +#define VAR_SECTION_AID_LOC_DIR "var/section_aid_loc/" // File loader extern const char *data_files_load_startup[]; -extern int data_files_load_startup_count; +extern const int data_files_load_startup_count; // Screen #define SCREEN_ROWS 24 @@ -71,9 +65,6 @@ extern int data_files_load_startup_count #define IP_ADDR_LEN 50 #define MAX_EVENTS 10 -// User -#define BBS_MAX_USER_LIMIT 100000 - extern int socket_server[2]; extern int socket_client; extern char hostaddr_client[IP_ADDR_LEN];