| 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, int64_t *p_index) |
SECTION_LIST *section_list_find_by_name(const char *sname) |
| 668 |
{ |
{ |
| 669 |
int64_t index; |
int64_t index; |
| 670 |
int ret; |
int ret; |
| 686 |
return NULL; |
return NULL; |
| 687 |
} |
} |
| 688 |
|
|
|
if (p_index != NULL) |
|
|
{ |
|
|
*p_index = index; |
|
|
} |
|
|
|
|
| 689 |
return (p_section_list_pool->sections + index); |
return (p_section_list_pool->sections + index); |
| 690 |
} |
} |
| 691 |
|
|
| 692 |
SECTION_LIST *section_list_find_by_sid(int32_t sid, int64_t *p_index) |
SECTION_LIST *section_list_find_by_sid(int32_t sid) |
| 693 |
{ |
{ |
| 694 |
int64_t index; |
int64_t index; |
| 695 |
int ret; |
int ret; |
| 714 |
return NULL; |
return NULL; |
| 715 |
} |
} |
| 716 |
|
|
|
if (p_index != NULL) |
|
|
{ |
|
|
*p_index = index; |
|
|
} |
|
|
|
|
| 717 |
return (p_section_list_pool->sections + index); |
return (p_section_list_pool->sections + index); |
| 718 |
} |
} |
| 719 |
|
|
| 727 |
|
|
| 728 |
if (p_section == NULL || p_article_src == NULL) |
if (p_section == NULL || p_article_src == NULL) |
| 729 |
{ |
{ |
| 730 |
log_error("section_list_append_article() NULL pointer error\n"); |
log_error("NULL pointer error\n"); |
| 731 |
return -1; |
return -1; |
| 732 |
} |
} |
| 733 |
|
|
| 1062 |
|
|
| 1063 |
if (p_section == NULL) |
if (p_section == NULL) |
| 1064 |
{ |
{ |
| 1065 |
log_error("section_list_find_article_with_offset() NULL pointer error\n"); |
log_error("NULL pointer error\n"); |
| 1066 |
return NULL; |
return NULL; |
| 1067 |
} |
} |
| 1068 |
|
|
| 1154 |
|
|
| 1155 |
if (p_section == NULL) |
if (p_section == NULL) |
| 1156 |
{ |
{ |
| 1157 |
log_error("section_list_calculate_page() NULL pointer error\n"); |
log_error("NULL pointer error\n"); |
| 1158 |
return -1; |
return -1; |
| 1159 |
} |
} |
| 1160 |
|
|
| 1313 |
|
|
| 1314 |
if (p_section_src == NULL || p_section_dest == NULL) |
if (p_section_src == NULL || p_section_dest == NULL) |
| 1315 |
{ |
{ |
| 1316 |
log_error("section_list_move_topic() NULL pointer error\n"); |
log_error("NULL pointer error\n"); |
| 1317 |
return -1; |
return -1; |
| 1318 |
} |
} |
| 1319 |
|
|