parser.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * IDL Compiler
  3. *
  4. * Copyright 2002 Ove Kaaven
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * 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. #ifndef __WIDL_PARSER_H
  21. #define __WIDL_PARSER_H
  22. int parser_parse(void);
  23. extern FILE *parser_in;
  24. extern char *parser_text;
  25. extern int parser_debug;
  26. extern int yy_flex_debug;
  27. int parser_lex(void);
  28. extern int import_stack_ptr;
  29. int do_import(char *fname);
  30. void abort_import(void);
  31. void pop_import(void);
  32. #define parse_only import_stack_ptr
  33. int is_type(const char *name);
  34. int do_warning(const char *toggle, warning_list_t *wnum);
  35. int is_warning_enabled(int warning);
  36. extern char *temp_name;
  37. #endif