mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
436a2956d8
comment line where output as too long, and update typedefs for /lib directory. Also fix case where identifiers were used as variable names in the backend, but as typedefs in ecpg (favor the backend for indenting). Backpatch to 8.1.X.
35 lines
803 B
C
35 lines
803 B
C
|
|
typedef unsigned char symbol;
|
|
|
|
/* Or replace 'char' above with 'short' for 16 bit characters.
|
|
|
|
More precisely, replace 'char' with whatever type guarantees the
|
|
character width you need. Note however that sizeof(symbol) should divide
|
|
HEAD, defined in header.h as 2*sizeof(int), without remainder, otherwise
|
|
there is an alignment problem. In the unlikely event of a problem here,
|
|
consult Martin Porter.
|
|
|
|
*/
|
|
|
|
struct SN_env
|
|
{
|
|
symbol *p;
|
|
int c;
|
|
int a;
|
|
int l;
|
|
int lb;
|
|
int bra;
|
|
int ket;
|
|
int S_size;
|
|
int I_size;
|
|
int B_size;
|
|
symbol **S;
|
|
int *I;
|
|
symbol *B;
|
|
};
|
|
|
|
extern struct SN_env *SN_create_env(int S_size, int I_size, int B_size);
|
|
extern void SN_close_env(struct SN_env * z);
|
|
|
|
extern int SN_set_current(struct SN_env * z, int size, const symbol * s);
|