1  /* source_marks.h - declarations for source_marks.c */
       2  #ifndef SOURCE_MARKS_H
       3  #define SOURCE_MARKS_H
       4  /* Copyright 2023 Free Software Foundation, Inc.
       5  
       6     This program is free software: you can redistribute it and/or modify
       7     it under the terms of the GNU General Public License as published by
       8     the Free Software Foundation, either version 3 of the License, or
       9     (at your option) any later version.
      10  
      11     This program 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
      14     GNU General Public License for more details.
      15  
      16     You should have received a copy of the GNU General Public License
      17     along with this program.  If not, see <http://www.gnu.org/licenses/>. */
      18  
      19  #include "tree_types.h"
      20  
      21  SOURCE_MARK *new_source_mark (enum source_mark_type type);
      22  void register_source_mark (ELEMENT *e, SOURCE_MARK *source_mark);
      23  void source_marks_reset_counters (void);
      24  void transfer_source_marks (ELEMENT *from_e, ELEMENT *e);
      25  void add_source_mark (SOURCE_MARK *source_mark, ELEMENT *e);
      26  void place_source_mark (ELEMENT *e, SOURCE_MARK *source_mark);
      27  size_t relocate_source_marks (SOURCE_MARK_LIST *source_mark_list, ELEMENT *new_e,
      28                                size_t previous_position, size_t current_position);
      29  
      30  
      31  #endif