forked from Imagelibrary/binutils-gdb
Generated docs and include files
bfd/doc/chew.c extracts documentation from source code comments annotated with keywords, and generates much of bfd.h and libbfd.h from those same comments. The docs have suffered from people (me too) adding things like CODE_FRAGMENT to the source to put code into bfd.h without realising that CODE_FRAGMENT also puts @example around said code into the docs. So we have random senseless things in the docs. This patch fixes that problem (well, the senseless things from CODE_FRAGMENT), moves most of the code out of bfd-in.h, and improves a few chew.c features. libbfd.h now automatically gets ATTRIBUTE_HIDDEN prototypes, and indentation in bfd.h and libbfd.h is better.
This commit is contained in:
@@ -146,6 +146,37 @@ SUBSECTION
|
||||
extern int errno;
|
||||
#endif
|
||||
|
||||
/*
|
||||
EXTERNAL
|
||||
.{* A canonical archive symbol. *}
|
||||
.{* This is a type pun with struct symdef/struct ranlib on purpose! *}
|
||||
.typedef struct carsym
|
||||
.{
|
||||
. const char *name;
|
||||
. file_ptr file_offset; {* Look here to find the file. *}
|
||||
.}
|
||||
.carsym;
|
||||
.
|
||||
.{* A count of carsyms (canonical archive symbols). *}
|
||||
. typedef unsigned long symindex;
|
||||
.#define BFD_NO_MORE_SYMBOLS ((symindex) ~0)
|
||||
.
|
||||
|
||||
INTERNAL
|
||||
.{* Used in generating armaps (archive tables of contents). *}
|
||||
.struct orl {* Output ranlib. *}
|
||||
.{
|
||||
. char **name; {* Symbol name. *}
|
||||
. union
|
||||
. {
|
||||
. file_ptr pos;
|
||||
. bfd *abfd;
|
||||
. } u; {* bfd* or file position. *}
|
||||
. int namidx; {* Index into string table. *}
|
||||
.};
|
||||
.
|
||||
*/
|
||||
|
||||
/* We keep a cache of archive filepointers to archive elements to
|
||||
speed up searching the archive by filepos. We only add an entry to
|
||||
the cache when we actually read one. We also don't sort the cache;
|
||||
|
||||
Reference in New Issue
Block a user