xref: /openbsd-src/gnu/usr.bin/binutils-2.17/binutils/nlmconv.h (revision 3d8817e467ea46cf4772788d6804dd293abfb01a)
1*3d8817e4Smiod /* nlmconv.h -- header file for NLM conversion program
2*3d8817e4Smiod    Copyright 1993, 2002, 2003 Free Software Foundation, Inc.
3*3d8817e4Smiod 
4*3d8817e4Smiod This file is part of GNU Binutils.
5*3d8817e4Smiod 
6*3d8817e4Smiod This program is free software; you can redistribute it and/or modify
7*3d8817e4Smiod it under the terms of the GNU General Public License as published by
8*3d8817e4Smiod the Free Software Foundation; either version 2 of the License, or
9*3d8817e4Smiod (at your option) any later version.
10*3d8817e4Smiod 
11*3d8817e4Smiod This program is distributed in the hope that it will be useful,
12*3d8817e4Smiod but WITHOUT ANY WARRANTY; without even the implied warranty of
13*3d8817e4Smiod MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*3d8817e4Smiod GNU General Public License for more details.
15*3d8817e4Smiod 
16*3d8817e4Smiod You should have received a copy of the GNU General Public License
17*3d8817e4Smiod along with this program; if not, write to the Free Software
18*3d8817e4Smiod Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
19*3d8817e4Smiod 
20*3d8817e4Smiod /* Written by Ian Lance Taylor <ian@cygnus.com>.
21*3d8817e4Smiod 
22*3d8817e4Smiod    bfd.h, nlm/common.h and nlm/internal.h must be included before this
23*3d8817e4Smiod    file.  */
24*3d8817e4Smiod 
25*3d8817e4Smiod /* A linked list of strings.  */
26*3d8817e4Smiod 
27*3d8817e4Smiod struct string_list
28*3d8817e4Smiod {
29*3d8817e4Smiod   struct string_list *next;
30*3d8817e4Smiod   char *string;
31*3d8817e4Smiod };
32*3d8817e4Smiod 
33*3d8817e4Smiod /* The NLM header parser in nlmheader.y stores information in the
34*3d8817e4Smiod    following variables.  */
35*3d8817e4Smiod 
36*3d8817e4Smiod extern Nlm_Internal_Fixed_Header *fixed_hdr;
37*3d8817e4Smiod extern Nlm_Internal_Variable_Header *var_hdr;
38*3d8817e4Smiod extern Nlm_Internal_Version_Header *version_hdr;
39*3d8817e4Smiod extern Nlm_Internal_Copyright_Header *copyright_hdr;
40*3d8817e4Smiod extern Nlm_Internal_Extended_Header *extended_hdr;
41*3d8817e4Smiod 
42*3d8817e4Smiod /* Procedure named by CHECK.  */
43*3d8817e4Smiod extern char *check_procedure;
44*3d8817e4Smiod /* File named by CUSTOM.  */
45*3d8817e4Smiod extern char *custom_file;
46*3d8817e4Smiod /* Whether to generate debugging information (DEBUG).  */
47*3d8817e4Smiod extern bfd_boolean debug_info;
48*3d8817e4Smiod /* Procedure named by EXIT.  */
49*3d8817e4Smiod extern char *exit_procedure;
50*3d8817e4Smiod /* Exported symbols (EXPORT).  */
51*3d8817e4Smiod extern struct string_list *export_symbols;
52*3d8817e4Smiod /* List of files from INPUT.  */
53*3d8817e4Smiod extern struct string_list *input_files;
54*3d8817e4Smiod /* Map file name (MAP, FULLMAP).  */
55*3d8817e4Smiod extern char *map_file;
56*3d8817e4Smiod /* Whether a full map has been requested (FULLMAP).  */
57*3d8817e4Smiod extern bfd_boolean full_map;
58*3d8817e4Smiod /* File named by HELP.  */
59*3d8817e4Smiod extern char *help_file;
60*3d8817e4Smiod /* Imported symbols (IMPORT).  */
61*3d8817e4Smiod extern struct string_list *import_symbols;
62*3d8817e4Smiod /* File named by MESSAGES.  */
63*3d8817e4Smiod extern char *message_file;
64*3d8817e4Smiod /* Autoload module list (MODULE).  */
65*3d8817e4Smiod extern struct string_list *modules;
66*3d8817e4Smiod /* File named by OUTPUT.  */
67*3d8817e4Smiod extern char *output_file;
68*3d8817e4Smiod /* File named by SHARELIB.  */
69*3d8817e4Smiod extern char *sharelib_file;
70*3d8817e4Smiod /* Start procedure name (START).  */
71*3d8817e4Smiod extern char *start_procedure;
72*3d8817e4Smiod /* VERBOSE.  */
73*3d8817e4Smiod extern bfd_boolean verbose;
74*3d8817e4Smiod /* RPC description file (XDCDATA).  */
75*3d8817e4Smiod extern char *rpc_file;
76*3d8817e4Smiod 
77*3d8817e4Smiod /* The number of serious parse errors.  */
78*3d8817e4Smiod extern int parse_errors;
79*3d8817e4Smiod 
80*3d8817e4Smiod /* The parser.  */
81*3d8817e4Smiod extern int yyparse (void);
82*3d8817e4Smiod 
83*3d8817e4Smiod /* Tell the lexer what file to read.  */
84*3d8817e4Smiod extern bfd_boolean nlmlex_file (const char *);
85