1 /* nlmconv.h -- header file for NLM conversion program
2 Copyright (C) 1993 Free Software Foundation, Inc.
4 This file is part of GNU Binutils.
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 2 of the License, or
9 (at your option) any later version.
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.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
20 /* Written by Ian Lance Taylor <ian@cygnus.com>.
22 bfd.h, nlm/common.h and nlm/internal.h must be included before this
25 /* A linked list of strings. */
29 struct string_list
*next
;
33 /* The NLM header parser in nlmheader.y stores information in the
34 following variables. */
36 extern Nlm_Internal_Fixed_Header
*fixed_hdr
;
37 extern Nlm_Internal_Variable_Header
*var_hdr
;
38 extern Nlm_Internal_Version_Header
*version_hdr
;
39 extern Nlm_Internal_Copyright_Header
*copyright_hdr
;
40 extern Nlm_Internal_Extended_Header
*extended_hdr
;
42 /* Procedure named by CHECK. */
43 extern char *check_procedure
;
44 /* File named by CUSTOM. */
45 extern char *custom_file
;
46 /* Whether to generate debugging information (DEBUG). */
47 extern boolean debug_info
;
48 /* Procedure named by EXIT. */
49 extern char *exit_procedure
;
50 /* Exported symbols (EXPORT). */
51 extern struct string_list
*export_symbols
;
52 /* Map file name (MAP, FULLMAP). */
53 extern char *map_file
;
54 /* Whether a full map has been requested (FULLMAP). */
55 extern boolean full_map
;
56 /* File named by HELP. */
57 extern char *help_file
;
58 /* Imported symbols (IMPORT). */
59 extern struct string_list
*import_symbols
;
60 /* File named by MESSAGES. */
61 extern char *message_file
;
62 /* Autoload module list (MODULE). */
63 extern struct string_list
*modules
;
64 /* File named by SHARELIB. */
65 extern char *sharelib_file
;
66 /* Start procedure name (START). */
67 extern char *start_procedure
;
69 extern boolean verbose
;
70 /* RPC description file (XDCDATA). */
71 extern char *rpc_file
;
73 /* The number of serious parse errors. */
74 extern int parse_errors
;
77 extern int yyparse
PARAMS ((void));
79 /* Tell the lexer what file to read. */
80 extern boolean nlmlex_file
PARAMS ((const char *));