summaryrefslogtreecommitdiffstats
path: root/lib/base/lexer_pvt.h
blob: 257a6905e209f94cae4e51000d0c01498b340598 (plain)
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
/** BEGIN COPYRIGHT BLOCK
 * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
 * Copyright (C) 2005 Red Hat, Inc.
 * All rights reserved.
 * END COPYRIGHT BLOCK **/
#ifndef __LEXER_PVT_H
#define __LEXER_PVT_H

#ifndef _POOL_H_
#include "base/pool.h"
#endif /* _POOL_H_ */

typedef struct LEXClassTab_s LEXClassTab_t;
struct LEXClassTab_s {
    int lct_classc;			/* number of character classes */
    int lct_bvbytes;			/* number of bytes per bit vector */
    unsigned char * lct_bv;		/* pointer to bit vector area */
};

typedef struct LEXToken_s LEXToken_t;
struct LEXToken_s {
    char * lt_buf;			/* token buffer pointer */
    int lt_len;				/* length of token data */
    int lt_buflen;			/* current length of buffer */
    int lt_inclen;                      /* buffer length increment */
    int lt_initlen;                     /* initial length of token buffer */
    pool_handle_t * lt_mempool;         /* token memory pool */
};

#endif /* __LEXER_PVT_H */