diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-05-19 21:25:26 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-05-19 21:30:57 +0200 |
commit | a2c339417025a8cb68e99aa28a416f95c5fec465 (patch) | |
tree | 12eeacbd4a8b85b759771187e728bb54645cdb4a /intl/hyphenation/glue/hnjalloc.h | |
parent | b3ebf5ea2fc031edaf5e2a006fd3c33d95caadb8 (diff) | |
download | UXP-a2c339417025a8cb68e99aa28a416f95c5fec465.tar UXP-a2c339417025a8cb68e99aa28a416f95c5fec465.tar.gz UXP-a2c339417025a8cb68e99aa28a416f95c5fec465.tar.lz UXP-a2c339417025a8cb68e99aa28a416f95c5fec465.tar.xz UXP-a2c339417025a8cb68e99aa28a416f95c5fec465.zip |
Update libhyphen's glue code to include overloads for fgetc() and feof().
Follow-up to 41cbe2d931d2742bb8dd6240eae9599e3bf3a512 to fix a crash regression.
This resolves #374.
Diffstat (limited to 'intl/hyphenation/glue/hnjalloc.h')
-rw-r--r-- | intl/hyphenation/glue/hnjalloc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/intl/hyphenation/glue/hnjalloc.h b/intl/hyphenation/glue/hnjalloc.h index fec3a4bc9..5cee1be1b 100644 --- a/intl/hyphenation/glue/hnjalloc.h +++ b/intl/hyphenation/glue/hnjalloc.h @@ -31,6 +31,8 @@ #define fopen(path,mode) hnjFopen(path,mode) #define fclose(file) hnjFclose(file) #define fgets(buf,count,file) hnjFgets(buf,count,file) +#define feof(file) hnjFeof(file) +#define fgetc(file) hnjFgetc(file) typedef struct hnjFile_ hnjFile; @@ -44,6 +46,10 @@ int hnjFclose(hnjFile* f); char* hnjFgets(char* s, int n, hnjFile* f); +int hnjFeof(hnjFile* f); + +int hnjFgetc(hnjFile* f); + #ifdef __cplusplus } #endif |