From 298316d19297eea82869b63235b535e5904fc0dd Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sun, 20 Jun 2010 21:53:47 +0000 Subject: text_viewer: cleanup & bugfix cleanup: - don't use enum in struct / return values - don't use a getter for preferences but a global pointer - explicitely make enums start at 0 - use static tables for header/footer settings - remove unneeded memset before strlcpy - use static buffer allocation, not dynamic - check header/footer preferences before using the callbacks - don't include font filename in archos player preferences (break file format) bugfix: - statically allocate old preferences in tv_set_preferences() Sometimes I can read a file on Clipv2, but it still aborts quite often refs: FS#11399 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26998 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/text_viewer/tv_text_processor.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'apps/plugins/text_viewer/tv_text_processor.h') diff --git a/apps/plugins/text_viewer/tv_text_processor.h b/apps/plugins/text_viewer/tv_text_processor.h index 3cb2a96448..8a9de9075b 100644 --- a/apps/plugins/text_viewer/tv_text_processor.h +++ b/apps/plugins/text_viewer/tv_text_processor.h @@ -26,20 +26,8 @@ /* * initialize the text processor module * - * [In] buf - * the start pointer of the buffer - * - * [In] size - * enabled buffer size - * - * [Out] used_size - * the size of the buffer which the pager uses - * - * return - * true initialize success - * false initialize failure */ -bool tv_init_text_processor(unsigned char *buf, size_t bufsize, size_t *used_size); +void tv_init_text_processor(void); /* * set the processing conditions -- cgit v1.2.3