nlmconv.h 2.7 KB

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