1/* Definition of location data type used in various part of GCC 2 Copyright (C) 2002 Free Software Foundation, Inc. 3 Contributed by Gabriel Dos Reis <gdr@codesourcery.com> 4 5This program is free software; you can redistribute it and/or modify it 6under the terms of the GNU General Public License as published by the 7Free Software Foundation; either version 2, or (at your option) any 8later version. 9 10This program is distributed in the hope that it will be useful, 11but WITHOUT ANY WARRANTY; without even the implied warranty of 12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13GNU General Public License for more details. 14 15You should have received a copy of the GNU General Public License 16along with this program; if not, write to the Free Software 17Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 19 In other words, you are welcome to use, share and improve this program. 20 You are forbidden to forbid anyone else to use, share and improve 21 what you give them. Help stamp out software-hoarding! */ 22 23#ifndef GCC_LOCATION_H 24#define GCC_LOCATION_H 25 26/* The data structure used to record a location in a translation unit. */ 27struct location_s GTY (()) 28{ 29 /* The name of the source file involved. */ 30 const char *file; 31 32 /* The line-location in the source file. */ 33 int line; 34}; 35typedef struct location_s location_t; 36 37#endif 38 39