File: lex.h

package info (click to toggle)
pd-cyclone 0.2~beta3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,704 kB
  • ctags: 5,170
  • sloc: ansic: 36,778; makefile: 363; sh: 52; sed: 1
file content (25 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (5)
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
/* 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