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

Diff of /lbbs/src/article_cache.c

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

Revision 1.27 by sysadm, Tue Oct 14 02:39:34 2025 UTC Revision 1.30 by sysadm, Thu Oct 30 07:51:47 2025 UTC
# Line 135  int article_cache_generate(const char *c Line 135  int article_cache_generate(const char *c
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, 0, 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);
# Line 274  int article_cache_load(ARTICLE_CACHE *p_ Line 274  int article_cache_load(ARTICLE_CACHE *p_
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  }  }


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

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