Commit | Line | Data |
---|---|---|
566049a2 KB |
1 | /*- |
2 | * Copyright (c) 1993 The Regents of the University of California. | |
3 | * All rights reserved. | |
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 | * | |
56559b70 | 10 | * @(#)rune.h 8.1 (Berkeley) %G% |
566049a2 KB |
11 | */ |
12 | ||
13 | #ifndef _RUNE_H_ | |
14 | #define _RUNE_H_ | |
15 | ||
16 | #include <runetype.h> | |
17 | ||
18 | #define _PATH_LOCALE "/usr/share/locale" | |
19 | ||
20 | #define _INVALID_RUNE _CurrentRuneLocale->invalid_rune | |
21 | ||
22 | #define __sgetrune _CurrentRuneLocale->sgetrune | |
23 | #define __sputrune _CurrentRuneLocale->sputrune | |
24 | ||
25 | #define sgetrune(s, n, r) (*__sgetrune)((s), (n), (r)) | |
26 | #define sputrune(c, s, n, r) (*__sputrune)((c), (s), (n), (r)) | |
27 | ||
28 | __BEGIN_DECLS | |
29 | char *mbrune __P((const char *, rune_t)); | |
30 | char *mbrrune __P((const char *, rune_t)); | |
31 | char *mbmb __P((const char *, char *)); | |
32 | int setrunelocale __P((char *)); | |
33 | void setinvalidrune __P((rune_t)); | |
34 | __END_DECLS | |
35 | ||
36 | #endif /*! _RUNE_H_ */ |