1
This commit is contained in:
Alex Yatskov 2016-11-02 20:07:41 -07:00
parent 74bdfc547a
commit fafda50e96
2 changed files with 0 additions and 11 deletions

6
main.c
View File

@ -50,13 +50,7 @@ static void export_subbook_entries(EB_Book* eb_book, Subbook* subbook) {
} }
Entry* entry = subbook->entries + subbook->entry_count++; Entry* entry = subbook->entries + subbook->entry_count++;
entry->heading_page = hit->heading.page;
entry->heading_offset = hit->heading.offset;
entry->heading = read_book_data(eb_book, &hit->heading, READ_MODE_HEADING); entry->heading = read_book_data(eb_book, &hit->heading, READ_MODE_HEADING);
entry->text_page = hit->text.page;
entry->text_offset = hit->text.offset;
entry->text = read_book_data(eb_book, &hit->text, READ_MODE_TEXT); entry->text = read_book_data(eb_book, &hit->text, READ_MODE_TEXT);
} }
} }

5
util.h
View File

@ -36,12 +36,7 @@ typedef struct {
typedef struct { typedef struct {
char* heading; char* heading;
int heading_page;
int heading_offset;
char* text; char* text;
int text_page;
int text_offset;
} Entry; } Entry;
typedef struct { typedef struct {