* libbfd-in.h, bfd-in.h: Eliminate all PROTO calls, replace with
[deliverable/binutils-gdb.git] / bfd / libcoff.h
index 43dc87b2c16c11daeb161b1f977628e0daa81bec..0eba7a6e47dac4d79899eaf88ee1a38f95585f21 100644 (file)
@@ -21,7 +21,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* Object file tdata; access macros */
 
-#define coff_data(bfd)         ((coff_data_type *) ((bfd)->tdata))
+#define coff_data(bfd)         ((bfd)->tdata.coff_obj_data)
 #define exec_hdr(bfd)          (coff_data(bfd)->hdr)
 #define obj_symbols(bfd)       (coff_data(bfd)->symbols)
 #define        obj_sym_filepos(bfd)    (coff_data(bfd)->sym_filepos)
@@ -29,6 +29,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define obj_relocbase(bfd)     (coff_data(bfd)->relocbase)
 #define obj_raw_syments(bfd)   (coff_data(bfd)->raw_syments)
 #define obj_convert(bfd)       (coff_data(bfd)->conversion_table)
+#if CFILE_STUFF
+#define obj_symbol_slew(bfd)   (coff_data(bfd)->symbol_index_slew)
+#else
+#define obj_symbol_slew(bfd) 0
+#endif
 
 
 /* `Tdata' information kept for COFF files.  */
@@ -68,76 +73,44 @@ typedef struct coff_tdata
 
 
 
-/*THE FOLLOWING IS EXTRACTED FROM THE SOURCE*/
+/* And more taken from the source .. */
 
-/*:coffcode.h*/
-
-/*
-The hidden information for an asymbol is:
-*/
-
- typedef struct coff_ptr_struct
- {
-
-/*
-Remembers the offset from the first symbol in the file for this
-symbol. Generated by @code{coff_renumber_symbols}.
-*/
-
-   unsigned int offset;
-
-/*
-Should the tag field of this symbol be renumbered.
-Created by @code{coff_pointerize_aux}.
-*/
-
-   char fix_tag;
-
-/*
-Should the endidx field of this symbol be renumbered.
-Created by @code{coff_pointerize_aux}.
-*/
-
-   char fix_end;
-
-/*
-The container for the symbol structure as read and translated from the file.
-*/
-
-   union {
-     union internal_auxent auxent;
-     struct internal_syment syment;
-   } u;
- } combined_entry_type;
-
-/*
-
-Each canonical asymbol really looks like this:
-*/
+typedef struct coff_ptr_struct 
+{
 
- typedef struct coff_symbol_struct
- {
+        /* Remembers the offset from the first symbol in the file for
+          this symbol. Generated by coff_renumber_symbols. */
+unsigned int offset;
 
-/*
-The actual symbol which the rest of BFD works with
-*/
+        /* Should the tag field of this symbol be renumbered.
+          Created by coff_pointerize_aux. */
+char fix_tag;
 
-   asymbol symbol;
+        /* Should the endidx field of this symbol be renumbered.
+          Created by coff_pointerize_aux. */
+char fix_end;
 
-/*
-A pointer to the hidden information for this symbol
-*/
+        /* The container for the symbol structure as read and translated
+           from the file. */
 
-   combined_entry_type *native;
+union {
+   union internal_auxent auxent;
+   struct internal_syment syment;
+ } u;
+} combined_entry_type;
 
-/*
-A pointer to the linenumber information for this symbol
-*/
 
-   struct lineno_cache_entry *lineno;
- } coff_symbol_type;
+ /* Each canonical asymbol really looks like this: */
 
-/*
-*/
+typedef struct coff_symbol_struct
+{
+  /* The actual symbol which the rest of BFD works with */
+  asymbol symbol;
 
+  /* A pointer to the hidden information for this symbol */
+  combined_entry_type *native;
 
+  /* A pointer to the linenumber information for this symbol */
+  struct lineno_cache_entry *lineno;
+  boolean done_lineno;
+} coff_symbol_type;
This page took 0.024168 seconds and 4 git commands to generate.