1

Update max definition size to 1MB from 10KB

Remove dep on math lib

Fixes #2
This commit is contained in:
Alex Yatskov 2018-05-21 17:53:41 -07:00
parent fcfaecd00a
commit babbaa4a2d
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ project(zero-epwing)
include_directories(eb) include_directories(eb)
link_directories(eb/eb/.libs jansson/lib) link_directories(eb/eb/.libs jansson/lib)
add_executable(zero-epwing main.c book.c convert.c hooks.c) add_executable(zero-epwing main.c book.c convert.c hooks.c)
target_link_libraries(zero-epwing libm.a libeb.a libm.a libz.a libjansson.a) target_link_libraries(zero-epwing libeb.a libz.a libjansson.a)
if (WIN32 OR APPLE) if (WIN32 OR APPLE)
target_link_libraries(zero-epwing libiconv.a) target_link_libraries(zero-epwing libiconv.a)
endif (WIN32 OR APPLE) endif (WIN32 OR APPLE)

2
book.c
View File

@ -101,7 +101,7 @@ static char* book_read(EB_Book* book, EB_Hookset* hookset, const EB_Position* po
return NULL; return NULL;
} }
char data[10240] = {}; static char data[1024000] = {};
ssize_t data_length = 0; ssize_t data_length = 0;
EB_Error_Code error; EB_Error_Code error;