(root)/
gcc-13.2.0/
gcc/
m2/
m2-tree.h
       1  /* m2-tree.h create language specific tree nodes for Modula-2.
       2  
       3  Copyright (C) 2001-2023 Free Software Foundation, Inc.
       4  Contributed by Gaius Mulley <gaius@glam.ac.uk>.
       5  
       6  This file is part of GNU Modula-2.
       7  
       8  GNU Modula-2 is free software; you can redistribute it and/or modify
       9  it under the terms of the GNU General Public License as published by
      10  the Free Software Foundation; either version 3, or (at your option)
      11  any later version.
      12  
      13  GNU Modula-2 is distributed in the hope that it will be useful, but
      14  WITHOUT ANY WARRANTY; without even the implied warranty of
      15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      16  General Public License for more details.
      17  
      18  You should have received a copy of the GNU General Public License
      19  along with GNU Modula-2; see the file COPYING3.  If not see
      20  <http://www.gnu.org/licenses/>.  */
      21  
      22  #ifndef GCC_GM2_TREE_H
      23  #define GCC_GM2_TREE_H
      24  
      25  #include "ggc.h"
      26  #include "function.h"
      27  #include "hashtab.h"
      28  #include "vec.h"
      29  
      30  /* These macros provide convenient access to the various statement nodes.  */
      31  
      32  #define TRY_STMTS(NODE)		TREE_OPERAND (TRY_BLOCK_CHECK (NODE), 0)
      33  #define TRY_HANDLERS(NODE)	TREE_OPERAND (TRY_BLOCK_CHECK (NODE), 1)
      34  
      35  /* Nonzero if this try block is a function try block.  */
      36  #define FN_TRY_BLOCK_P(NODE)	TREE_LANG_FLAG_3 (TRY_BLOCK_CHECK (NODE))
      37  #define HANDLER_PARMS(NODE)	TREE_OPERAND (HANDLER_CHECK (NODE), 0)
      38  #define HANDLER_BODY(NODE)	TREE_OPERAND (HANDLER_CHECK (NODE), 1)
      39  #define HANDLER_TYPE(NODE)	TREE_TYPE (HANDLER_CHECK (NODE))
      40  
      41  /* STMT_EXPR accessor.  */
      42  #define STMT_EXPR_STMT(NODE)	TREE_OPERAND (STMT_EXPR_CHECK (NODE), 0)
      43  
      44  /* EXPR_STMT accessor.  This gives the expression associated with an
      45     expression statement.  */
      46  #define EXPR_STMT_EXPR(NODE)	TREE_OPERAND (EXPR_STMT_CHECK (NODE), 0)
      47  
      48  #endif