summaryrefslogtreecommitdiff
path: root/charset.h
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2010-07-01 09:35:39 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2010-07-01 09:38:49 -0700
commitfddfe30c3ff91c83d0484b136e7673764e555555 (patch)
tree13402ab9a4b51ca149b7532a3dae68e6574f646a /charset.h
parent3b2bbab48945e9dd8563f4ae047436c138e41789 (diff)
Integrate changes from Thomas Dickey's luit-20100601 fork
* add -alias option to allow override of locale.alias pathname. * improve fix waitForInput as suggested in Freedesktop #26383. * fix warnings from clang --analyze Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'charset.h')
-rw-r--r--charset.h35
1 files changed, 22 insertions, 13 deletions
diff --git a/charset.h b/charset.h
index 7842ea9..1bbf8fe 100644
--- a/charset.h
+++ b/charset.h
@@ -19,7 +19,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* $XFree86: xc/programs/luit/charset.h,v 1.3 2002/07/01 02:25:59 tsi Exp $ */
+/* $XFree86: xc/programs/luit/charset.h,v 1.4 2002/10/17 01:06:09 dawes Exp $ */
+
+#ifndef LUIT_CHARSET_H
+#define LUIT_CHARSET_H 1
+
+#include "other.h"
#define T_FAILED 0
#define T_94 1
@@ -36,13 +41,13 @@ THE SOFTWARE.
#define CHARSET_REGULAR(c) ((c)->type != T_128)
typedef struct _Charset {
- char *name;
+ const char *name;
int type;
unsigned char final;
- unsigned int (*recode)(unsigned int, struct _Charset *self);
- int (*reverse)(unsigned int, struct _Charset *self);
- void *data;
- int (*other_stack)(unsigned char c, OtherStatePtr aux);
+ unsigned int (*recode) (unsigned int, const struct _Charset * self);
+ int (*reverse) (unsigned int, const struct _Charset * self);
+ const void *data;
+ int (*other_stack) (unsigned c, OtherStatePtr aux);
OtherState *other_aux;
unsigned int (*other_recode)(unsigned int c, OtherStatePtr aux);
unsigned int (*other_reverse)(unsigned int c, OtherStatePtr aux);
@@ -60,12 +65,16 @@ typedef struct _LocaleCharset {
const char *other;
} LocaleCharsetRec, *LocaleCharsetPtr;
-CharsetPtr getUnknownCharset(int);
-CharsetPtr getCharset(unsigned char, int);
-CharsetPtr getCharsetByName(const char*);
+const CharsetRec *getUnknownCharset(int);
+const CharsetRec *getCharset(unsigned, int);
+const CharsetRec *getCharsetByName(const char *);
void reportCharsets(void);
-int getLocaleState(const char *locale, char *charset,
+int getLocaleState(const char *locale, const char *charset,
int *gl_return, int *gr_return,
- CharsetPtr *g0_return, CharsetPtr *g1_return,
- CharsetPtr *g2_return, CharsetPtr *g3_return,
- CharsetPtr *other_return);
+ const CharsetRec * *g0_return,
+ const CharsetRec * *g1_return,
+ const CharsetRec * *g2_return,
+ const CharsetRec * *g3_return,
+ const CharsetRec * *other_return);
+
+#endif /* LUIT_CHARSET_H */