Commit | Line | Data |
---|---|---|
566049a2 | 1 | /*- |
e31614ce KB |
2 | * Copyright (c) 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
566049a2 KB |
4 | * |
5 | * This code is derived from software contributed to Berkeley by | |
6 | * Paul Borman at Krystal Technologies. | |
7 | * | |
8 | * %sccs.include.redist.c% | |
9 | * | |
e31614ce | 10 | * @(#)rune.h 8.1 (Berkeley) %G% |
566049a2 KB |
11 | */ |
12 | ||
13 | #ifndef _RUNE_H_ | |
14 | #define _RUNE_H_ | |
15 | ||
16 | #include <runetype.h> | |
cea75121 | 17 | #include <stdio.h> |
566049a2 KB |
18 | |
19 | #define _PATH_LOCALE "/usr/share/locale" | |
20 | ||
21 | #define _INVALID_RUNE _CurrentRuneLocale->invalid_rune | |
22 | ||
23 | #define __sgetrune _CurrentRuneLocale->sgetrune | |
24 | #define __sputrune _CurrentRuneLocale->sputrune | |
25 | ||
26 | #define sgetrune(s, n, r) (*__sgetrune)((s), (n), (r)) | |
27 | #define sputrune(c, s, n, r) (*__sputrune)((c), (s), (n), (r)) | |
28 | ||
29 | __BEGIN_DECLS | |
30 | char *mbrune __P((const char *, rune_t)); | |
31 | char *mbrrune __P((const char *, rune_t)); | |
32 | char *mbmb __P((const char *, char *)); | |
f110e75c KB |
33 | long fgetrune __P((FILE *)); |
34 | int fputrune __P((rune_t, FILE *)); | |
35 | int fungetrune __P((rune_t, FILE *)); | |
566049a2 KB |
36 | int setrunelocale __P((char *)); |
37 | void setinvalidrune __P((rune_t)); | |
38 | __END_DECLS | |
39 | ||
40 | #endif /*! _RUNE_H_ */ |