File: cconv.h

package info (click to toggle)
kinput2 3.0-19
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,688 kB
  • ctags: 4,649
  • sloc: ansic: 45,508; makefile: 100; sh: 35
file content (74 lines) | stat: -rw-r--r-- 2,422 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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