| 1 |
/*************************************************************************** |
/* SPDX-License-Identifier: GPL-3.0-or-later */ |
| 2 |
user_list.c - description |
/* |
| 3 |
------------------- |
* user_stat |
| 4 |
Copyright : (C) 2004-2025 by Leaflet |
* - data model and basic operations of user related statistics |
| 5 |
Email : leaflet@leafok.com |
* |
| 6 |
***************************************************************************/ |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
|
*/ |
| 8 |
/*************************************************************************** |
|
| 9 |
* * |
#ifdef HAVE_CONFIG_H |
| 10 |
* This program is free software; you can redistribute it and/or modify * |
#include "config.h" |
| 11 |
* it under the terms of the GNU General Public License as published by * |
#endif |
|
* the Free Software Foundation; either version 3 of the License, or * |
|
|
* (at your option) any later version. * |
|
|
* * |
|
|
***************************************************************************/ |
|
| 12 |
|
|
| 13 |
#include "log.h" |
#include "log.h" |
| 14 |
#include "section_list.h" |
#include "section_list.h" |
| 70 |
log_error("article_block_find_by_index(index=%d) error\n", i); |
log_error("article_block_find_by_index(index=%d) error\n", i); |
| 71 |
break; |
break; |
| 72 |
} |
} |
| 73 |
|
|
| 74 |
if (p_article->visible == 0) |
if (p_article->visible == 0) |
| 75 |
{ |
{ |
| 76 |
continue; |
continue; |
| 117 |
mid = (left + right) / 2; |
mid = (left + right) / 2; |
| 118 |
if (uid < p_map->stat_list[mid].uid) |
if (uid < p_map->stat_list[mid].uid) |
| 119 |
{ |
{ |
| 120 |
right = mid; |
right = mid - 1; |
| 121 |
} |
} |
| 122 |
else if (uid > p_map->stat_list[mid].uid) |
else if (uid > p_map->stat_list[mid].uid) |
| 123 |
{ |
{ |
| 159 |
mid = (left + right) / 2; |
mid = (left + right) / 2; |
| 160 |
if (uid < p_map->stat_list[mid].uid) |
if (uid < p_map->stat_list[mid].uid) |
| 161 |
{ |
{ |
| 162 |
right = mid; |
right = mid - 1; |
| 163 |
} |
} |
| 164 |
else if (uid > p_map->stat_list[mid].uid) |
else if (uid > p_map->stat_list[mid].uid) |
| 165 |
{ |
{ |