int WikiManage::wiki_curr(char **buf, int *size) { int n; const cache_t *p = m_wiki_history->wh_curr_cache(); if (p == NULL) return wiki_index_msg(buf, size); if ((n = wiki_read_data(&p->idx, buf, NULL)) > 0) { *size = n; return n; } return 0; }
int WikiManage::wiki_curr(char **buf, int *size) { int n; const cache_t *p = m_wiki_history->wh_curr_cache(); if (p == NULL) return wiki_index_msg(buf, size); if (p->flag == STATUS_FULL_TEXT) { return wiki_full_search(p->key.title, buf, size, m_search_buf.curr_page); } if ((n = wiki_read_data(&p->idx, buf, NULL)) > 0) { *size = n; return n; } return 0; }