diff options
author | Karl Berry <karl@freefriends.org> | 2010-04-11 00:28:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-04-11 00:28:06 +0000 |
commit | 001b7975ce276ec6e72bf2b317cef8afe92c2948 (patch) | |
tree | 3c73cdd11c93462911cb416a231af743f48d5368 /Build/source/texk/mendexk/mendex.h | |
parent | 22d2dd3a9e8cc227f8d51b2fe8cf1734c2844959 (diff) |
add ptex from Akira, Norbert, and jTeX group; ptex not actually built by default yet
git-svn-id: svn://tug.org/texlive/trunk@17797 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/mendexk/mendex.h')
-rw-r--r-- | Build/source/texk/mendexk/mendex.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Build/source/texk/mendexk/mendex.h b/Build/source/texk/mendexk/mendex.h new file mode 100644 index 00000000000..4b684880d14 --- /dev/null +++ b/Build/source/texk/mendexk/mendex.h @@ -0,0 +1,58 @@ +struct page { + char *page; + char *enc; + char attr[3]; +}; + +struct index { + int num; + char words; + unsigned char *org[3]; + unsigned char *dic[3]; + unsigned char *idx[3]; + struct page *p; + int lnum; +}; + +/* convert.c */ +void initkanatable(void); +int convert(unsigned char *buff1, unsigned char *buff2); +int pnumconv(char *page, int attr); +int dicread(char *filename); + +/* pageread.c */ +int lastpage(char *filename); + +/* sort.c */ +void wsort(struct index *ind, int num); +void pagesort(struct index *ind, int num); +int alphanumeric(unsigned char c); +int alphabet(unsigned char c); +int numeric(unsigned char c); +int japanese(unsigned char *buff); +int chkcontinue(struct page *p, int num); + +/* styfile.c */ +void styread(char *filename); + +/* fread.c */ +char *mfgets(char *buf, int byte, FILE *fp); +int idxread(char *filename, int start); + +/* fwrite.c */ +int fprintf2 (FILE *fp, const char *format, ...); +int warn_printf(FILE *fp, const char *format, ...); +int verb_printf(FILE *fp, const char *format, ...); + +struct index; +void indwrite(char *filename, struct index *ind, int pagenum); + +#ifdef fprintf +#undef fprintf +#endif +#define fprintf fprintf2 + +#ifdef fputs +#undef fputs +#endif +#define fputs fputs2 |