/[LeafOK_CVS]/lbbs/src/section_list_display.c
ViewVC logotype

Diff of /lbbs/src/section_list_display.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.71 by sysadm, Wed Nov 5 01:04:06 2025 UTC Revision 1.75 by sysadm, Tue Nov 11 00:28:05 2025 UTC
# Line 6  Line 6 
6   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7   */   */
8    
9    #ifdef HAVE_CONFIG_H
10    #include "config.h"
11    #endif
12    
13  #include "article_cache.h"  #include "article_cache.h"
14  #include "article_favor.h"  #include "article_favor.h"
15  #include "article_op.h"  #include "article_op.h"
# Line 31  Line 35 
35  #include <time.h>  #include <time.h>
36  #include <sys/param.h>  #include <sys/param.h>
37    
38  #define TITLE_SEARCH_MAX_LEN 60  enum _section_list_display_constant_t
39    {
40            TITLE_SEARCH_MAX_LEN = 60,
41    };
42    
43  static int32_t section_aid_locations[BBS_max_section] = {0};  static int32_t section_aid_locations[BBS_max_section] = {0};
44  static int section_topic_view_mode = 0;  static int section_topic_view_mode = 0;
# Line 218  static int section_list_draw_screen(cons Line 225  static int section_list_draw_screen(cons
225    
226          if (master_list[0] != '\0')          if (master_list[0] != '\0')
227          {          {
228                  snprintf(str_section_master, sizeof(str_section_master), "版主:%s", master_list);                  snprintf(str_section_master, sizeof(str_section_master), "版主: %s", master_list);
229          }          }
230          snprintf(str_section_name, sizeof(str_section_name), "讨论区 [%s]", sname);          snprintf(str_section_name, sizeof(str_section_name), "讨论区 [%s]", sname);
231    
# Line 1173  int section_list_display(const char *sna Line 1180  int section_list_display(const char *sna
1180                          moveto(SCREEN_ROWS, 1);                          moveto(SCREEN_ROWS, 1);
1181                          clrtoeol();                          clrtoeol();
1182                          get_data(SCREEN_ROWS, 1,                          get_data(SCREEN_ROWS, 1,
1183                                           (direction == 1 ? "向下搜寻作者: " : "向上搜寻作者: "),                                           (direction == 1 ? "↓搜寻作者: " : "↑搜寻作者: "),
1184                                           username, sizeof(username), BBS_username_max_len);                                           username, sizeof(username), BBS_username_max_len);
1185    
1186                          if (username[0] == '\0')                          if (username[0] == '\0')
# Line 1262  int section_list_display(const char *sna Line 1269  int section_list_display(const char *sna
1269                          moveto(SCREEN_ROWS, 1);                          moveto(SCREEN_ROWS, 1);
1270                          clrtoeol();                          clrtoeol();
1271                          get_data(SCREEN_ROWS, 1,                          get_data(SCREEN_ROWS, 1,
1272                                           (direction == 1 ? "向下搜寻标题: " : "向上搜寻标题: "),                                           (direction == 1 ? "↓搜寻标题: " : "↑搜寻标题: "),
1273                                           title, sizeof(title), TITLE_SEARCH_MAX_LEN);                                           title, sizeof(title), TITLE_SEARCH_MAX_LEN);
1274    
1275                          if (title[0] == '\0')                          if (title[0] == '\0')


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1