Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing function prototypes #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions liblouisxml/louisxml.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,15 @@ int insert_utf8 (unsigned char *intext);
int insert_utf16 (widechar * intext, int length);
int insert_translation (char *table);
int write_paragraph (sem_act action);
void widestrcpy(widechar* to, const widechar* from);
void widecharcpy(widechar* to, const widechar* from, int length);
void unsignedcharcpy(char* to, const char* from, int length);
int start_document (void);
int end_document (void);
int writeBuffer(int from, int skip);
int savePointers(void);
int restorePointers(void);
int do_pagenum (void);
int transcribe_text_string (void);
int transcribe_text_file (void);
int back_translate_file (void);
Expand Down
12 changes: 6 additions & 6 deletions liblouisxml/makeContents.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ initialize_contents (void)
{

saved_braillePageNumberFormat = ud->brl_page_num_format;
widestrcpy(saved_printPageNumber, ud->print_page_number, -1);
widestrcpy(saved_printPageNumberFirst, ud->print_page_number_first, -1);
widestrcpy(saved_printPageNumberLast, ud->print_page_number_last, -1);
widestrcpy(saved_printPageNumber, ud->print_page_number);
widestrcpy(saved_printPageNumberFirst, ud->print_page_number_first);
widestrcpy(saved_printPageNumberLast, ud->print_page_number_last);
ud->after_contents = 1;
saved_udContents = ud->contents;
saved_linesOnPage = ud->lines_on_page;
Expand Down Expand Up @@ -191,9 +191,9 @@ make_contents (void)
styleSpec = &ud->style_stack[ud->style_top];
styleSpec->curBrlNumFormat = saved_braillePageNumberFormat;
ud->brl_page_num_format = saved_braillePageNumberFormat;
widestrcpy(ud->print_page_number, saved_printPageNumber, -1);
widestrcpy(ud->print_page_number_first, saved_printPageNumberFirst, -1);
widestrcpy(ud->print_page_number_last, saved_printPageNumberLast, -1);
widestrcpy(ud->print_page_number, saved_printPageNumber);
widestrcpy(ud->print_page_number_first, saved_printPageNumberFirst);
widestrcpy(ud->print_page_number_last, saved_printPageNumberLast);
do_newpage ();
ud->contents = 2;
currentHeading = firstHeading;
Expand Down
1 change: 1 addition & 0 deletions liblouisxml/semantics.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <string.h>
#include "louisxml.h"
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include "sem_names.h"

typedef struct
Expand Down