Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/ld/deffile.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* deffile.h - header for .DEF file parser
    2    Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
     2   Copyright 1998, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
    33   Written by DJ Delorie dj@cygnus.com
    44
     
    5353  char *name;                   /* may be NULL; either this or ordinal will be set */
    5454  int ordinal;                  /* may be -1 */
     55  int data;                     /* = 1 if data */
    5556} def_file_import;
    5657
    5758typedef struct def_file {
    58   /* from the NAME or LIBRARY command */
     59  /* From the NAME or LIBRARY command. */
    5960  char *name;
    6061  int is_dll;                   /* -1 if NAME/LIBRARY not given */
    6162  bfd_vma base_address;         /* (bfd_vma)(-1) if unspecified */
    6263
    63   /* from the DESCRIPTION command */
     64  /* From the DESCRIPTION command. */
    6465  char *description;
    6566
    66   /* from the STACK/HEAP command, -1 if unspecified */
     67  /* From the STACK/HEAP command, -1 if unspecified. */
    6768  int stack_reserve, stack_commit;
    6869  int heap_reserve, heap_commit;
    6970
    70   /* from the SECTION/SEGMENT commands */
     71  /* From the SECTION/SEGMENT commands. */
    7172  int num_section_defs;
    7273  def_file_section *section_defs;
    7374
    74   /* from the EXPORTS commands */
     75  /* From the EXPORTS commands. */
    7576  int num_exports;
    7677  def_file_export *exports;
    7778
    78   /* used by imports for module names */
     79  /* Used by imports for module names. */
    7980  def_file_module *modules;
    8081
    81   /* from the IMPORTS commands */
     82  /* From the IMPORTS commands. */
    8283  int num_imports;
    8384  def_file_import *imports;
    8485
    85   /* from the VERSION command, -1 if not specified */
     86  /* From the VERSION command, -1 if not specified. */
    8687  int version_major, version_minor;
    8788} def_file;
     
    8990extern def_file *def_file_empty PARAMS ((void));
    9091
    91 /* add_to may be NULL.  If not, this .def is appended to it */
    92 extern def_file *def_file_parse PARAMS ((const char *_filename,
    93                                          def_file * _add_to));
    94 
    95 extern void def_file_free PARAMS ((def_file * _def));
    96 
    97 extern def_file_export *def_file_add_export PARAMS ((def_file * _def,
    98                                                      const char *_name,
    99                                                  const char *_internal_name,
    100                                                      int _ordinal));
    101 
    102 extern def_file_import *def_file_add_import PARAMS ((def_file * _def,
    103                                                      const char *_name,
    104                                                      const char *_from,
    105                                                      int _ordinal,
    106                                                const char *_imported_name));
    107 
    108 extern void def_file_add_directive PARAMS ((def_file * _def,
    109                                             const char *param,
    110                                             int len));
    111 
     92/* The second arg may be NULL.  If not, this .def is appended to it.  */
     93extern def_file * def_file_parse
     94  PARAMS ((const char *, def_file *));
     95extern void def_file_free
     96  PARAMS ((def_file *));
     97extern def_file_export * def_file_add_export
     98  PARAMS ((def_file *, const char *, const char *, int));
     99extern def_file_import * def_file_add_import
     100  PARAMS ((def_file *, const char *, const char *, int, const char *));
     101extern void def_file_add_directive
     102  PARAMS ((def_file *, const char *, int));
     103extern def_file_module *def_get_module
     104  PARAMS ((def_file *, const char *));
    112105#ifdef DEF_FILE_PRINT
    113 extern void def_file_print PARAMS ((FILE * _file, def_file * _def));
     106extern void def_file_print
     107  PARAMS ((FILE *, def_file *));
    114108#endif
    115109
Note: See TracChangeset for help on using the changeset viewer.