-
Notifications
You must be signed in to change notification settings - Fork 0
/
f3.h
34 lines (30 loc) · 822 Bytes
/
f3.h
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
/* it's all too easy to start over-complicating this: for example quotations. Here you woul dneed to check the last 2 characters of everyword, not just the last one, i.e "stop!", that adds new layers. */
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#ifdef DBG
#define CBUF 2
#define WABUF 1
#define LBUF 2
#else
#define CBUF 12
#define WABUF 20
#define LBUF 32
#endif
typedef unsigned char boole;
typedef struct /* word type */
{
char *w;
unsigned lp1; /* length of word plus one (i.e. includes null char */
} w_c;
typedef struct /* aw_c: array of words container */
{
w_c **aw;
unsigned ab;
unsigned al;
} aw_c;
typedef struct /* aaw_c: array of array of words container */
{
size_t numl; /* number of lines, i.e. rows */
aw_c **aaw; /* an array of pointers to aw_c */
} aaw_c;