File: command.h

package info (click to toggle)
xvt 2.1-14
  • links: PTS
  • area: main
  • in suites: woody
  • size: 348 kB
  • ctags: 430
  • sloc: ansic: 5,107; perl: 1,329; makefile: 31; sh: 29
file content (64 lines) | stat: -rw-r--r-- 2,388 bytes parent folder | download | duplicates (8)
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
/*  Copyright 1992 John Bovey, University of Kent at Canterbury.
 *
 *  Redistribution and use in source code and/or executable forms, with
 *  or without modification, are permitted provided that the following
 *  condition is met:
 *
 *  Any redistribution must retain the above copyright notice, this
 *  condition and the following disclaimer, either as part of the
 *  program source code included in the redistribution or in human-
 *  readable materials provided with the redistribution.
 *
 *  THIS SOFTWARE IS PROVIDED "AS IS".  Any express or implied
 *  warranties concerning this software are disclaimed by the copyright
 *  holder to the fullest extent permitted by applicable law.  In no
 *  event shall the copyright-holder be liable for any damages of any
 *  kind, however caused and on any theory of liability, arising in any
 *  way out of the use of, or inability to use, this software.
 *
 *  -------------------------------------------------------------------
 *
 *  In other words, do not misrepresent my work as your own work, and
 *  do not sue me if it causes problems.  Feel free to do anything else
 *  you wish with it.
 */

/* @(#)command.h	1.2 16/11/93 (UKC) */

#define TKS_MAX		5000	/* max length of a string token */
#define TK_MAX_ARGS	200	/* max number of numerical arguments */

/*  Structure used to represent a piece of input from the program
 *  or an interesting X event.
 */
struct tokenst {
	int tk_type;		/* the token type */
	int tk_private;		/* non zero for private control sequences */
	int tk_char;		/* single (unprintable) character */
	unsigned char tk_string[TKS_MAX + 1];/* the text for string tokens */
	int tk_nlcount;		/* number of newlines in the string */
	int tk_length;		/* length of string */
	int tk_arg[TK_MAX_ARGS];/* first two numerical arguments */
	int tk_nargs;		/* number of numerical arguments */
	int tk_region;		/* terminal or scrollbar */
};

#ifdef __STDC__
void init_command(char *,char **);
void set_cur_keys(int);
void set_kp_keys(int);
void set_sun_function_keys(int);
void send_string(unsigned char *,int);
void cprintf(char *,...);
void get_token(struct tokenst *);
void show_token(struct tokenst *);
#else /* __STDC__ */
void init_command();
void set_cur_keys();
void set_kp_keys();
void set_sun_function_keys();
void send_string();
void cprintf();
void get_token();
void show_token();
#endif /* __STDC__ */