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

Diff of /lbbs/src/section_list.c

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

Revision 1.39 by sysadm, Tue Sep 30 03:00:37 2025 UTC Revision 1.40 by sysadm, Mon Oct 13 02:23:27 2025 UTC
# Line 664  void section_list_reset_articles(SECTION Line 664  void section_list_reset_articles(SECTION
664          p_section->ontop_article_count = 0;          p_section->ontop_article_count = 0;
665  }  }
666    
667  SECTION_LIST *section_list_find_by_name(const char *sname)  SECTION_LIST *section_list_find_by_name(const char *sname, int64_t *p_index)
668  {  {
669          int64_t index;          int64_t index;
670          int ret;          int ret;
# Line 686  SECTION_LIST *section_list_find_by_name( Line 686  SECTION_LIST *section_list_find_by_name(
686                  return NULL;                  return NULL;
687          }          }
688    
689            if (p_index != NULL)
690            {
691                    *p_index = index;
692            }
693    
694          return (p_section_list_pool->sections + index);          return (p_section_list_pool->sections + index);
695  }  }
696    
697  SECTION_LIST *section_list_find_by_sid(int32_t sid)  SECTION_LIST *section_list_find_by_sid(int32_t sid, int64_t *p_index)
698  {  {
699          int64_t index;          int64_t index;
700          int ret;          int ret;
# Line 714  SECTION_LIST *section_list_find_by_sid(i Line 719  SECTION_LIST *section_list_find_by_sid(i
719                  return NULL;                  return NULL;
720          }          }
721    
722            if (p_index != NULL)
723            {
724                    *p_index = index;
725            }
726    
727          return (p_section_list_pool->sections + index);          return (p_section_list_pool->sections + index);
728  }  }
729    


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

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