12159047fSniklas /* nlmconv.h -- header file for NLM conversion program 2*007c2a45Smiod Copyright 1993, 2002, 2003 Free Software Foundation, Inc. 32159047fSniklas 42159047fSniklas This file is part of GNU Binutils. 52159047fSniklas 62159047fSniklas This program is free software; you can redistribute it and/or modify 72159047fSniklas it under the terms of the GNU General Public License as published by 82159047fSniklas the Free Software Foundation; either version 2 of the License, or 92159047fSniklas (at your option) any later version. 102159047fSniklas 112159047fSniklas This program is distributed in the hope that it will be useful, 122159047fSniklas but WITHOUT ANY WARRANTY; without even the implied warranty of 132159047fSniklas MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 142159047fSniklas GNU General Public License for more details. 152159047fSniklas 162159047fSniklas You should have received a copy of the GNU General Public License 172159047fSniklas along with this program; if not, write to the Free Software 182159047fSniklas Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 192159047fSniklas 202159047fSniklas /* Written by Ian Lance Taylor <ian@cygnus.com>. 212159047fSniklas 222159047fSniklas bfd.h, nlm/common.h and nlm/internal.h must be included before this 232159047fSniklas file. */ 242159047fSniklas 252159047fSniklas /* A linked list of strings. */ 262159047fSniklas 272159047fSniklas struct string_list 282159047fSniklas { 292159047fSniklas struct string_list *next; 302159047fSniklas char *string; 312159047fSniklas }; 322159047fSniklas 332159047fSniklas /* The NLM header parser in nlmheader.y stores information in the 342159047fSniklas following variables. */ 352159047fSniklas 362159047fSniklas extern Nlm_Internal_Fixed_Header *fixed_hdr; 372159047fSniklas extern Nlm_Internal_Variable_Header *var_hdr; 382159047fSniklas extern Nlm_Internal_Version_Header *version_hdr; 392159047fSniklas extern Nlm_Internal_Copyright_Header *copyright_hdr; 402159047fSniklas extern Nlm_Internal_Extended_Header *extended_hdr; 412159047fSniklas 422159047fSniklas /* Procedure named by CHECK. */ 432159047fSniklas extern char *check_procedure; 442159047fSniklas /* File named by CUSTOM. */ 452159047fSniklas extern char *custom_file; 462159047fSniklas /* Whether to generate debugging information (DEBUG). */ 47c074d1c9Sdrahn extern bfd_boolean debug_info; 482159047fSniklas /* Procedure named by EXIT. */ 492159047fSniklas extern char *exit_procedure; 502159047fSniklas /* Exported symbols (EXPORT). */ 512159047fSniklas extern struct string_list *export_symbols; 522159047fSniklas /* List of files from INPUT. */ 532159047fSniklas extern struct string_list *input_files; 542159047fSniklas /* Map file name (MAP, FULLMAP). */ 552159047fSniklas extern char *map_file; 562159047fSniklas /* Whether a full map has been requested (FULLMAP). */ 57c074d1c9Sdrahn extern bfd_boolean full_map; 582159047fSniklas /* File named by HELP. */ 592159047fSniklas extern char *help_file; 602159047fSniklas /* Imported symbols (IMPORT). */ 612159047fSniklas extern struct string_list *import_symbols; 622159047fSniklas /* File named by MESSAGES. */ 632159047fSniklas extern char *message_file; 642159047fSniklas /* Autoload module list (MODULE). */ 652159047fSniklas extern struct string_list *modules; 662159047fSniklas /* File named by OUTPUT. */ 672159047fSniklas extern char *output_file; 682159047fSniklas /* File named by SHARELIB. */ 692159047fSniklas extern char *sharelib_file; 702159047fSniklas /* Start procedure name (START). */ 712159047fSniklas extern char *start_procedure; 722159047fSniklas /* VERBOSE. */ 73c074d1c9Sdrahn extern bfd_boolean verbose; 742159047fSniklas /* RPC description file (XDCDATA). */ 752159047fSniklas extern char *rpc_file; 762159047fSniklas 772159047fSniklas /* The number of serious parse errors. */ 782159047fSniklas extern int parse_errors; 792159047fSniklas 802159047fSniklas /* The parser. */ 81*007c2a45Smiod extern int yyparse (void); 822159047fSniklas 832159047fSniklas /* Tell the lexer what file to read. */ 84*007c2a45Smiod extern bfd_boolean nlmlex_file (const char *); 85