diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-06-11 21:18:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-06-11 21:18:10 +0000 |
commit | a33f7359242182b3a75c8edc2ab8e193dccef0ff (patch) | |
tree | bac9dd33f62247fea85984f58bc97d14d0630289 /binutils/defparse.y | |
parent | f14c4109f8c9f4fea51acaa210dcb9a7f067c37d (diff) | |
download | gdb-a33f7359242182b3a75c8edc2ab8e193dccef0ff.zip gdb-a33f7359242182b3a75c8edc2ab8e193dccef0ff.tar.gz gdb-a33f7359242182b3a75c8edc2ab8e193dccef0ff.tar.bz2 |
* dlltool.h: New file.
* deflex.l: Include dlltool.h and libiberty.h. Don't declare
strdup. Use xstrdup rather than strdup.
* defparse.y: Include bfd.h, bucomm.h, and dlltool.h.
* dlltool.c: Include dlltool.h and time.h. Make a lot of
variables and functions static. Make a lot of char * variables
and parameters const. Add declarations for static functions. Do
some reindenting. Hide more PowerPC stuff inside DLLTOOL_PPC.
Diffstat (limited to 'binutils/defparse.y')
-rw-r--r-- | binutils/defparse.y | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/binutils/defparse.y b/binutils/defparse.y index 4a9ca39..f1210c5 100644 --- a/binutils/defparse.y +++ b/binutils/defparse.y @@ -1,7 +1,6 @@ -{ -/* defparse.y - parser for .def files */ +%{ /* defparse.y - parser for .def files */ -/* Copyright (C) 1995 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1997 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -17,20 +16,22 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "bfd.h" +#include "bucomm.h" +#include "dlltool.h" +%} %union { char *id; int number; -char *string; }; %token NAME, LIBRARY, DESCRIPTION, STACKSIZE, HEAPSIZE, CODE, DATA %token SECTIONS, EXPORTS, IMPORTS, VERSION, BASE, CONSTANT %token READ WRITE EXECUTE SHARED NONAME %token <id> ID -%token <string> STRING %token <number> NUMBER %type <number> opt_base opt_ordinal opt_NONAME opt_CONSTANT attr attr_list opt_number %type <id> opt_name opt_equal_name @@ -45,7 +46,7 @@ command: NAME opt_name opt_base { def_name ($2, $3); } | LIBRARY opt_name opt_base { def_library ($2, $3); } | EXPORTS explist - | DESCRIPTION STRING { def_description ($2);} + | DESCRIPTION ID { def_description ($2);} | STACKSIZE NUMBER opt_number { def_stacksize ($2, $3);} | HEAPSIZE NUMBER opt_number { def_heapsize ($2, $3);} | CODE attr_list { def_code ($2);} |