| 135 |
} |
} |
| 136 |
|
|
| 137 |
// Apply LML render to content body |
// Apply LML render to content body |
| 138 |
cache.data_len = header_len + (size_t)lml_render(content, content_f, ARTICLE_CONTENT_MAX_LEN, 1); |
cache.data_len = header_len + (size_t)lml_render(content, content_f, ARTICLE_CONTENT_MAX_LEN, SCREEN_COLS - 1, 0); |
| 139 |
|
|
| 140 |
cache.line_total = header_line_cnt + |
cache.line_total = header_line_cnt + |
| 141 |
split_data_lines(content_f, SCREEN_COLS, cache.line_offsets + header_line_cnt, MAX_SPLIT_FILE_LINES - header_line_cnt, 1, NULL); |
split_data_lines(content_f, SCREEN_COLS, cache.line_offsets + header_line_cnt, MAX_SPLIT_FILE_LINES - header_line_cnt, 1, NULL); |
| 274 |
memcpy((void *)p_cache, p_mmap, (size_t)(((ARTICLE_CACHE *)p_mmap)->mmap_len - ((ARTICLE_CACHE *)p_mmap)->data_len)); |
memcpy((void *)p_cache, p_mmap, (size_t)(((ARTICLE_CACHE *)p_mmap)->mmap_len - ((ARTICLE_CACHE *)p_mmap)->data_len)); |
| 275 |
|
|
| 276 |
p_cache->p_mmap = p_mmap; |
p_cache->p_mmap = p_mmap; |
| 277 |
p_cache->p_data = p_mmap + (p_cache->mmap_len - p_cache->data_len); |
p_cache->p_data = (char *)p_mmap + (p_cache->mmap_len - p_cache->data_len); |
| 278 |
|
|
| 279 |
return 0; |
return 0; |
| 280 |
} |
} |