xref: /original-bsd/include/rune.h (revision 6ddb93a4)
1 /*-
2  * Copyright (c) 1993
3  *	The Regents of the University of California.  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  *
10  *	@(#)rune.h	8.1 (Berkeley) 06/27/93
11  */
12 
13 #ifndef	_RUNE_H_
14 #define	_RUNE_H_
15 
16 #include <runetype.h>
17 #include <stdio.h>
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 *));
33 long	 fgetrune __P((FILE *));
34 int	 fputrune __P((rune_t, FILE *));
35 int	 fungetrune __P((rune_t, FILE *));
36 int	 setrunelocale __P((char *));
37 void	 setinvalidrune __P((rune_t));
38 __END_DECLS
39 
40 #endif	/*! _RUNE_H_ */
41