diff options
author | N.N. <krzyszcz@users.sourceforge.net> | 2004-12-08 15:45:27 +0000 |
---|---|---|
committer | N.N. <krzyszcz@users.sourceforge.net> | 2004-12-08 15:45:27 +0000 |
commit | 155fa2c04c7e415803e1546dcde0a47442eef4b3 (patch) | |
tree | 94a1714fee23703bddef850e7b5acb60a9c39631 /shared/common/lex.h | |
parent | d5a39ff6469f8762218c00a34f4b0a120a56332b (diff) |
*** empty log message ***
svn path=/trunk/externals/miXed/; revision=2361
Diffstat (limited to 'shared/common/lex.h')
-rw-r--r-- | shared/common/lex.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/shared/common/lex.h b/shared/common/lex.h new file mode 100644 index 0000000..041aa23 --- /dev/null +++ b/shared/common/lex.h @@ -0,0 +1,25 @@ +/* Copyright (c) 2003-2004 krzYszcz and others. + * For information on usage and redistribution, and for a DISCLAIMER OF ALL + * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ + +#ifndef __LEX_H__ +#define __LEX_H__ + +typedef struct _lex +{ + FILE *l_fp; + unsigned char *l_buf; + int l_bufsize; + int l_bufndx; + t_atomtype l_inttype; + t_atomtype l_lasttype; + int l_errbinary; +} t_lex; + +int lex_nextatom(t_lex *lx, t_atom *ap); +void lex_atomstring(t_atom *ap, char *buf, int bufsize, t_atomtype inttype); +int lex_isbinary(t_lex *lx); +void lex_free(t_lex *lx); +t_lex *lex_new(FILE *fp, t_atomtype inttype); + +#endif |