parser.h 1.27 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * IDL Compiler
 *
 * Copyright 2002 Ove Kaaven
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 20 21 22 23
 */

#ifndef __WIDL_PARSER_H
#define __WIDL_PARSER_H

24 25 26 27 28 29
typedef struct
{
  type_t *interface;
  unsigned char old_pointer_default;
} interface_info_t;

30
int parser_parse(void);
31

32 33 34
extern FILE *parser_in;
extern char *parser_text;
extern int parser_debug;
35 36
extern int yy_flex_debug;

37
int parser_lex(void);
38 39

extern int import_stack_ptr;
40
int do_import(char *fname);
41
void abort_import(void);
42
void pop_import(void);
43 44 45 46 47

#define parse_only import_stack_ptr

int is_type(const char *name);

48 49
extern char *temp_name;

50
#endif