aboutsummaryrefslogtreecommitdiff
path: root/binutils/nlmconv.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-08-10 17:49:44 +0000
committerIan Lance Taylor <ian@airs.com>1993-08-10 17:49:44 +0000
commit4f55ef5bdb7964cc3924708188fa7d19b6340616 (patch)
tree14e37e52ac07e4200e0debea6d1032fa7d7f625d /binutils/nlmconv.h
parent53a6ff7e1dee7caf5bf267f71632b50190548d4c (diff)
downloadgdb-4f55ef5bdb7964cc3924708188fa7d19b6340616.zip
gdb-4f55ef5bdb7964cc3924708188fa7d19b6340616.tar.gz
gdb-4f55ef5bdb7964cc3924708188fa7d19b6340616.tar.bz2
Checkpoint of NLM conversion program.
* nlmconv.c, nlmconv.h, nlmheader.y: New files for program to convert object files into NetWare Loadable Modules. * Makefile.in (NLMCONV_PROG): New macro, define to be nlmconv. (PROGS): Add NLMCONV_PROG. (nlmheader.c, nlmheader.o, nlmconv.o, $(NLMCONV_PROG)): New targets.
Diffstat (limited to 'binutils/nlmconv.h')
-rw-r--r--binutils/nlmconv.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/binutils/nlmconv.h b/binutils/nlmconv.h
new file mode 100644
index 0000000..509f8a5
--- /dev/null
+++ b/binutils/nlmconv.h
@@ -0,0 +1,80 @@
+/* nlmconv.h -- header file for NLM conversion program
+ Copyright (C) 1993 Free Software Foundation, Inc.
+
+This file is part of GNU Binutils.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+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. */
+
+/* Written by Ian Lance Taylor <ian@cygnus.com>.
+
+ bfd.h, nlm/common.h and nlm/internal.h must be included before this
+ file. */
+
+/* A linked list of strings. */
+
+struct string_list
+{
+ struct string_list *next;
+ char *string;
+};
+
+/* The NLM header parser in nlmheader.y stores information in the
+ following variables. */
+
+extern Nlm_Internal_Fixed_Header *fixed_hdr;
+extern Nlm_Internal_Variable_Header *var_hdr;
+extern Nlm_Internal_Version_Header *version_hdr;
+extern Nlm_Internal_Copyright_Header *copyright_hdr;
+extern Nlm_Internal_Extended_Header *extended_hdr;
+
+/* Procedure named by CHECK. */
+extern char *check_procedure;
+/* File named by CUSTOM. */
+extern char *custom_file;
+/* Whether to generate debugging information (DEBUG). */
+extern boolean debug_info;
+/* Procedure named by EXIT. */
+extern char *exit_procedure;
+/* Exported symbols (EXPORT). */
+extern struct string_list *export_symbols;
+/* Map file name (MAP, FULLMAP). */
+extern char *map_file;
+/* Whether a full map has been requested (FULLMAP). */
+extern boolean full_map;
+/* File named by HELP. */
+extern char *help_file;
+/* Imported symbols (IMPORT). */
+extern struct string_list *import_symbols;
+/* File named by MESSAGES. */
+extern char *message_file;
+/* Autoload module list (MODULE). */
+extern struct string_list *modules;
+/* File named by SHARELIB. */
+extern char *sharelib_file;
+/* Start procedure name (START). */
+extern char *start_procedure;
+/* VERBOSE. */
+extern boolean verbose;
+/* RPC description file (XDCDATA). */
+extern char *rpc_file;
+
+/* The number of serious parse errors. */
+extern int parse_errors;
+
+/* The parser. */
+extern int yyparse PARAMS ((void));
+
+/* Tell the lexer what file to read. */
+extern boolean nlmlex_file PARAMS ((const char *));