Mercurial > kinput2.yaz
diff include/cconv.h @ 0:92745d501b9a
initial import from kinput2-v3.1
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 08 Mar 2010 04:44:30 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/cconv.h Mon Mar 08 04:44:30 2010 +0900 @@ -0,0 +1,74 @@ +/* $Id: cconv.h,v 10.2 1998/12/28 07:33:30 ishisone Exp $ */ +/* + * cconv.h -- header file for cconv library + * version 10.1 + */ + +/* + * Copyright (c) 1988 Software Research Associates, Inc. + * + * Permission to use, copy, modify, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, provided + * that the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation, and that the name of Software Research Associates not be + * used in advertising or publicity pertaining to distribution of the + * software without specific, written prior permission. Software Research + * Associates makes no representations about the suitability of this software + * for any purpose. It is provided "as is" without express or implied + * warranty. + * + * Author: Makoto Ishisone, Software Research Associates, Inc., Japan + * ishisone@sra.co.jp + */ + +#ifndef WCHAR_DEFINED +#define WCHAR_DEFINED +typedef unsigned short wchar; +#endif + +typedef struct _ccRule *ccRule; +typedef struct _ccBuf *ccBuf; + +/* CCDEFPATH -- default ccdef file directory */ +#ifndef CCDEFPATH +#define CCDEFPATH "/usr/lib/X11/ccdef/" +#endif + +#ifdef __STDC__ +extern ccRule ccParseRule(char *, void (*)()); +extern ccBuf ccCreateBuf(ccRule, int, char *[], int, void (*)(), void (*)(), + void (*)(), int (*)(), void (*)(), void (*)(), + caddr_t); +extern void ccFreeRule(ccRule); +extern void ccDestroyBuf(ccBuf); +extern int ccConvchar(ccBuf, XKeyPressedEvent *); +extern int ccGetMode(ccBuf); +extern wchar *ccGetModePrompt(ccBuf); +extern ccRule ccGetRule(ccBuf); +extern void ccContextAppend(ccBuf, int); +extern void ccContextDelete(ccBuf); +extern void ccContextClear(ccBuf); +extern void ccContextSet(ccBuf, wchar *); +extern void ccContextGet(ccBuf, wchar *); + +extern ccBuf ccInit(char *, int, void (*)(), void (*)(), void (*)(), + int (*)(), void (*)(), char **, int); +extern void ccTerminate(ccBuf); +#else +extern ccRule ccParseRule(); +extern ccBuf ccCreateBuf(); +extern void ccFreeRule(); +extern void ccDestroyBuf(); +extern int ccConvchar(); +extern int ccGetMode(); +extern wchar *ccGetModePrompt(); +extern ccRule ccGetRule(); +extern void ccContextAppend(); +extern void ccContextDelete(); +extern void ccContextClear(); +extern void ccContextSet(); +extern void ccContextGet(); +extern ccBuf ccInit(); +extern void ccTerminate(); +#endif