File: ktree.h

package info (click to toggle)
libarr 0.1-49
  • links: PTS
  • area: main
  • in suites: woody
  • size: 376 kB
  • ctags: 400
  • sloc: ansic: 2,106; makefile: 140; sh: 13
file content (35 lines) | stat: -rw-r--r-- 767 bytes parent folder | download | duplicates (2)
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
/*
 * $Id: ktree.h,v 1.4 2000/08/23 00:53:02 cbond Exp $
 */

#if !defined(__include_ktree_h__)
#define __include_ktree_h__

#include "arr.h"

extern int ktree_init(void);
extern void ktree_free(void);

typedef struct __kqueue_entry {
	char *tc_code;			/* value of variable */
	int tc_off;			/* termcap offset */
	int arr_code;			/* arr symbol */
} kqueue_entry;

typedef struct __kqueue_entry_c {
	int arr_code;			/* arr symbol */
	const char *str;		/* supposed value */
} kqueue_entry_c;

#define KQUEUE_ENTRY(t, a)	{ NULL, (int)t, (int)a }
#define KQUEUE_ENTRY_C(a, s)	{ (int)a, (const char *)s }

typedef struct __ktree_t {
	struct __ktree_t *child, *next, *parent;
	char key;
	int symbol;
} ktree_t;

extern arr_kqueue *read_queue(int (*_func)(FILE *));

#endif