2002-07-16 05:20:45 +02:00
|
|
|
/*
|
|
|
|
* 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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-07-16 05:20:45 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WIDL_PARSER_H
|
|
|
|
#define __WIDL_PARSER_H
|
|
|
|
|
2007-10-09 01:46:23 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
type_t *interface;
|
|
|
|
unsigned char old_pointer_default;
|
|
|
|
} interface_info_t;
|
|
|
|
|
2006-09-12 09:05:07 +02:00
|
|
|
int parser_parse(void);
|
2002-07-16 05:20:45 +02:00
|
|
|
|
2006-09-12 09:05:07 +02:00
|
|
|
extern FILE *parser_in;
|
|
|
|
extern char *parser_text;
|
|
|
|
extern int parser_debug;
|
2002-07-16 05:20:45 +02:00
|
|
|
extern int yy_flex_debug;
|
|
|
|
|
2006-09-12 09:05:07 +02:00
|
|
|
int parser_lex(void);
|
2002-07-16 05:20:45 +02:00
|
|
|
|
|
|
|
extern int import_stack_ptr;
|
2002-11-30 02:49:46 +01:00
|
|
|
int do_import(char *fname);
|
2002-07-16 05:20:45 +02:00
|
|
|
void abort_import(void);
|
2008-04-01 13:47:56 +02:00
|
|
|
void pop_import(void);
|
2002-07-16 05:20:45 +02:00
|
|
|
|
|
|
|
#define parse_only import_stack_ptr
|
|
|
|
|
|
|
|
int is_type(const char *name);
|
|
|
|
|
2008-12-29 13:05:27 +01:00
|
|
|
void check_functions(const type_t *iface);
|
|
|
|
|
2002-07-16 05:20:45 +02:00
|
|
|
#endif
|