liblouis.h   liblouis.h 
skipping to change at line 37 skipping to change at line 37
#define __LIBLOUIS_H_ #define __LIBLOUIS_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
#endif /* __cplusplus */ #endif /* __cplusplus */
#define widechar unsigned short int #define widechar unsigned short int
#ifdef _WIN32 #ifdef _WIN32
#define EXPORT_CALL __stdcall #define EXPORT_CALL __stdcall
char * EXPORT_CALL lou_getProgramPath (void); char * EXPORT_CALL lou_getProgramPath ();
#else #else
#define EXPORT_CALL #define EXPORT_CALL
#endif #endif
typedef enum typedef enum
{ {
plain_text = 0, plain_text = 0,
italic = 1, italic = 1,
underline = 2, underline = 2,
bold = 4, bold = 4,
skipping to change at line 117 skipping to change at line 117
void EXPORT_CALL lou_logFile (const char *filename); void EXPORT_CALL lou_logFile (const char *filename);
/* Specifies the name of the file to be used by lou_logPrint. If it is /* Specifies the name of the file to be used by lou_logPrint. If it is
* not used, this file is stderr*/ * not used, this file is stderr*/
int EXPORT_CALL lou_readCharFromFile (const char *fileName, int *mode); int EXPORT_CALL lou_readCharFromFile (const char *fileName, int *mode);
/*Read a character from a file, whether big-encian, little-endian or /*Read a character from a file, whether big-encian, little-endian or
* ASCII8, and return it as an integer. EOF at end of file. Mode = 1 on * ASCII8, and return it as an integer. EOF at end of file. Mode = 1 on
* first call, any other value thereafter*/ * first call, any other value thereafter*/
void EXPORT_CALL lou_logEnd (void); void EXPORT_CALL lou_logEnd ();
/* Closes the log file so it can be read by other functions. */ /* Closes the log file so it can be read by other functions. */
void * EXPORT_CALL lou_getTable (const char *tableList); void * EXPORT_CALL lou_getTable (const char *tableList);
/* This function checks a table for errors. If none are found it loads /* This function checks a table for errors. If none are found it loads
* the table into memory and returns a pointer to it. if errors are found * the table into memory and returns a pointer to it. if errors are found
* it returns a null pointer. It is called by lou_translateString and * it returns a null pointer. It is called by lou_translateString and
* lou_backTranslateString and also by functions in liblouisxml * lou_backTranslateString and also by functions in liblouisxml
*/ */
int EXPORT_CALL lou_compileString (const char *tableList, const char int EXPORT_CALL lou_compileString (const char *tableList, const char
*inString); *inString);
char * EXPORT_CALL lou_setDataPath (char *path); char * EXPORT_CALL lou_setDataPath (char *path);
/* Set the path used for searching for tables and liblouisutdml files.
* Overrides the installation path. */
char * EXPORT_CALL lou_getDataPath (); char * EXPORT_CALL lou_getDataPath ();
void EXPORT_CALL lou_free (void); /* Get the path set in the previous function. */
// char EXPORT_CALL * lou_getTablePaths ();
/* Get a list of paths actually used in seraching for tables*/
void EXPORT_CALL lou_free ();
/* This function should be called at the end of /* This function should be called at the end of
* the application to free all memory allocated by liblouis. */ * the application to free all memory allocated by liblouis. */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /*LibLOUIS_H_ */ #endif /*LibLOUIS_H_ */
 End of changes. 4 change blocks. 
3 lines changed or deleted 11 lines changed or added


 louis.h   louis.h 
skipping to change at line 477 skipping to change at line 477
TranslationTableOffset backRules[HASHNUM]; /*Chains of backward rules * / TranslationTableOffset backRules[HASHNUM]; /*Chains of backward rules * /
TranslationTableOffset ruleArea[1]; /*Space for storing all TranslationTableOffset ruleArea[1]; /*Space for storing all
rules and values */ rules and values */
} TranslationTableHeader; } TranslationTableHeader;
typedef enum typedef enum
{ {
alloc_typebuf, alloc_typebuf,
alloc_destSpacing, alloc_destSpacing,
alloc_passbuf1, alloc_passbuf1,
alloc_passbuf2, alloc_passbuf2,
alloc_srcMapping alloc_srcMapping,
alloc_prevSrcMapping
} AllocBuf; } AllocBuf;
/* The following function definitions are hooks into /* The following function definitions are hooks into
* compileTranslationTable.c. Some are used by other library modules. * compileTranslationTable.c. Some are used by other library modules.
* Others are used by tools like lou_allround.c and lou_debug.c. */ * Others are used by tools like lou_allround.c and lou_debug.c. */
widechar getDotsForChar (widechar c); widechar getDotsForChar (widechar c);
/* Returns the single-cell dot pattern corresponding to a character. */ /* Returns the single-cell dot pattern corresponding to a character. */
widechar getCharFromDots (widechar d); widechar getCharFromDots (widechar d);
/* Returns the character corresponding to a single-cell dot pattern. */ /* Returns the character corresponding to a single-cell dot pattern. */
skipping to change at line 522 skipping to change at line 523
* attribute letters used in multipass opcodes */ * attribute letters used in multipass opcodes */
TranslationTableOpcode findOpcodeNumber (const char *tofind); TranslationTableOpcode findOpcodeNumber (const char *tofind);
/* Returns the number of the opcode in the string toFind */ /* Returns the number of the opcode in the string toFind */
const char *findOpcodeName (TranslationTableOpcode opcode); const char *findOpcodeName (TranslationTableOpcode opcode);
/* Returns the name of the opcode associated with an opcode number*/ /* Returns the name of the opcode associated with an opcode number*/
int extParseChars (const char *inString, widechar * outString); int extParseChars (const char *inString, widechar * outString);
/* Takes a character string and produces a sequence of wide characters. /* Takes a character string and produces a sequence of wide characters.
* Opposite of showString. */ * Opposite of showString.
* Returns the length of the widechar sequence.
*/
int extParseDots (const char *inString, widechar * outString); int extParseDots (const char *inString, widechar * outString);
/* Takes a character string and produces a sequence of wide characters /* Takes a character string and produces a sequence of wide characters
* containing dot patterns. Opposite of showDots. */ * containing dot patterns. Opposite of showDots.
* Returns the length of the widechar sequence.
*/
int other_translate (const char *trantab, const widechar int other_translate (const char *trantab, const widechar
* inbuf, * inbuf,
int *inlen, widechar * outbuf, int *outlen, int *inlen, widechar * outbuf, int *outlen,
char *typeform, char *spacing, int *outputPos, int char *typeform, char *spacing, int *outputPos, int
*inputPos, int *cursorPos, int mode); *inputPos, int *cursorPos, int mode);
/*Call wrappers for other translators */ /*Call wrappers for other translators */
int other_backTranslate (const char *trantab, const widechar int other_backTranslate (const char *trantab, const widechar
* inbuf, * inbuf,
int *inlen, widechar * outbuf, int *outlen, int *inlen, widechar * outbuf, int *outlen,
char *typeform, char *spacing, int *outputPos, in t char *typeform, char *spacing, int *outputPos, in t
*inputPos, int *cursorPos, int mode); *inputPos, int *cursorPos, int mode);
/*Call wrappers for other back-translators.*/ /*Call wrappers for other back-translators.*/
int other_dotsToChar (const char *trantab, widechar * inbuf, int other_dotsToChar (const char *trantab, widechar * inbuf,
widechar * outbuf, int length, int mode); widechar * outbuf, int length, int mode);
int other_charToDots (const char *trantab, const widechar int other_charToDots (const char *trantab, const widechar
* inbuf, widechar * outbuf, int length, int mode); * inbuf, widechar * outbuf, int length, int mode);
char * getLastTableList();
void debugHook (); void debugHook ();
/* Can be inserted in code to be ulsed as a breakpoint in gdb */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* __LOUIS_H */ #endif /* __LOUIS_H */
 End of changes. 5 change blocks. 
3 lines changed or deleted 10 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/