jreese

oas1.h

Jul 5th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.69 KB | None | 0 0
  1. /* GOAS front-end language hooks and GCC middle-end interface prototypes
  2.    Copyright (C) 2012
  3.    Free Software Foundation, Inc.
  4.  
  5.    This file is part of GCC.
  6.  
  7.    GCC is free software; you can redistribute it and/or modify it under
  8.    the terms of the GNU General Public License as published by the Free
  9.    Software Foundation; either version 3, or (at your option) any later
  10.    version.
  11.  
  12.    GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  13.    WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14.    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15.    for more details.
  16.  
  17.    You should have received a copy of the GNU General Public License
  18.    along with GCC; see the file COPYING3.  If not see
  19.    <http://www.gnu.org/licenses/>.  
  20. */
  21.  
  22. #ifndef _OAS_H__
  23. #define _OAS_H__
  24.  
  25. /* Language hook prototypes */
  26. extern void oas_parse_file (int);
  27.  
  28. extern tree oas_pushdecl (tree);
  29.  
  30. extern tree oas_getdecls (void);
  31. extern bool oas_global_bindings_p (void);
  32.  
  33. extern tree oas_type_for_size (unsigned, int);
  34. extern tree oas_type_for_mode (enum machine_mode, int);
  35.  
  36. #undef LANG_HOOKS_PARSE_FILE
  37. #define LANG_HOOKS_PARSE_FILE oas_parse_file
  38.  
  39. #undef LANG_HOOKS_PUSHDECL
  40. #define LANG_HOOKS_PUSHDECL oas_pushdecl
  41.  
  42. #undef LANG_HOOKS_GLOBAL_BINDINGS_P
  43. #define LANG_HOOKS_GLOBAL_BINDINGS_P oas_global_bindings_p
  44.  
  45. #undef LANG_HOOKS_GETDECLS
  46. #define LANG_HOOKS_GETDECLS oas_getdecls
  47.  
  48. #undef LANG_HOOKS_TYPE_FOR_MODE
  49. #define LANG_HOOKS_TYPE_FOR_MODE oas_type_for_mode
  50.  
  51. #undef LANG_HOOKS_TYPE_FOR_SIZE
  52. #define LANG_HOOKS_TYPE_FOR_SIZE oas_type_for_size
  53.  
  54. #undef LANG_HOOKS_NAME
  55. #define LANG_HOOKS_NAME "GNU OAS Frontend"
  56.  
  57. #endif /*_OAS_H__*/
Advertisement
Add Comment
Please, Sign In to add comment