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:
Alan Modra
2023-04-30 20:42:30 +09:30
parent a41bd1c837
commit 717d4bd6d1
30 changed files with 2463 additions and 2224 deletions

View File

@@ -32,7 +32,7 @@
#define MAX_COMPRESSION_HEADER_SIZE 24
/*
CODE_FRAGMENT
EXTERNAL
.{* Types of compressed DWARF debug sections. *}
.enum compressed_debug_section_type
.{