| 16 |
|
|
| 17 |
#include "common.h" |
#include "common.h" |
| 18 |
#include "bbs.h" |
#include "bbs.h" |
| 19 |
|
#include <time.h> |
| 20 |
|
|
| 21 |
#define BBS_article_title_max_len 80 |
#define BBS_article_title_max_len 80 |
| 22 |
#define BBS_article_limit_per_section 50000 |
#define BBS_article_limit_per_section 50000 |
| 42 |
char username[BBS_username_max_len + 1]; |
char username[BBS_username_max_len + 1]; |
| 43 |
char nickname[BBS_nickname_max_len + 1]; |
char nickname[BBS_nickname_max_len + 1]; |
| 44 |
char title[BBS_article_title_max_len + 1]; |
char title[BBS_article_title_max_len + 1]; |
| 45 |
|
time_t sub_dt; |
| 46 |
}; |
}; |
| 47 |
typedef struct article_t ARTICLE; |
typedef struct article_t ARTICLE; |
| 48 |
|
|
| 78 |
extern ARTICLE *article_block_find_by_aid(int32_t aid); |
extern ARTICLE *article_block_find_by_aid(int32_t aid); |
| 79 |
extern ARTICLE *article_block_find_by_index(int index); |
extern ARTICLE *article_block_find_by_index(int index); |
| 80 |
|
|
| 81 |
|
extern int32_t article_block_last_aid(void); |
| 82 |
|
|
| 83 |
extern int article_count_of_topic(int32_t aid); |
extern int article_count_of_topic(int32_t aid); |
| 84 |
|
|
| 85 |
extern int section_list_init(const char *filename); |
extern int section_list_init(const char *filename); |