summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-11 21:25:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-11 21:25:21 +0000
commit09d378103e8c7b1b58b6cd1bde6b606c03501ac4 (patch)
tree4f2158426f717a8e86a2ae5f2fe08d318a62ef17 /doc
parent387ebcef034980c25a5257107a24b458a9a15d2a (diff)
downloadrtems-09d378103e8c7b1b58b6cd1bde6b606c03501ac4.tar.bz2
Added support for @appendix and @preface.
Diffstat (limited to 'doc')
-rw-r--r--doc/tools/bmenu/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/tools/bmenu/main.c b/doc/tools/bmenu/main.c
index 279fb4c27c..56779ca2c4 100644
--- a/doc/tools/bmenu/main.c
+++ b/doc/tools/bmenu/main.c
@@ -93,6 +93,8 @@ char *Usage_Strings[] = {
typedef enum {
UNUSED, /* dummy 0 slot */
KEYWORD_CHAPTER,
+ KEYWORD_APPENDIX,
+ KEYWORD_PREFACE,
KEYWORD_CHAPHEADING,
KEYWORD_SECTION,
KEYWORD_SUBSECTION,
@@ -156,6 +158,8 @@ typedef struct {
Keyword_info_t Keywords[] = {
{ "unused", 0, 0, 0, NULL }, /* so 0 can be invalid */
{ "@chapter", SECTION, RT_FORBIDDEN, BL_FORBIDDEN, NULL },
+ { "@appendix", SECTION, RT_FORBIDDEN, BL_FORBIDDEN, NULL },
+ { "@preface", SECTION, RT_FORBIDDEN, BL_FORBIDDEN, NULL },
{ "@chapheading", SECTION, RT_FORBIDDEN, BL_FORBIDDEN, NULL },
{ "@section", SECTION, RT_FORBIDDEN, BL_FORBIDDEN, NULL },
{ "@subsection", SUBSECTION, RT_FORBIDDEN, BL_FORBIDDEN, NULL },
@@ -641,6 +645,10 @@ void StripBlanks( void )
if ( strstr( line->Contents, "@chapter" ) )
line->keyword = KEYWORD_CHAPTER;
+ else if ( strstr( line->Contents, "@appendix" ) )
+ line->keyword = KEYWORD_APPENDIX;
+ else if ( strstr( line->Contents, "@preface" ) )
+ line->keyword = KEYWORD_PREFACE;
else if ( strstr( line->Contents, "@chapheading" ) )
line->keyword = KEYWORD_CHAPHEADING;
else if ( strstr( line->Contents, "@section" ) )
@@ -718,6 +726,8 @@ void BuildTexinfoNodes( void )
LineCopyFromRight( line, NodeName );
if ( line->keyword == KEYWORD_CHAPTER ||
+ line->keyword == KEYWORD_APPENDIX ||
+ line->keyword == KEYWORD_PREFACE ||
line->keyword == KEYWORD_CHAPHEADING ) {
strcpy( ChapterName, NodeName );
@@ -911,6 +921,8 @@ void FormatToTexinfo( void )
line->level = -1;
break;
case KEYWORD_CHAPTER:
+ case KEYWORD_APPENDIX:
+ case KEYWORD_PREFACE:
case KEYWORD_CHAPHEADING:
currentlevel = 0;
line->level = baselevel + currentlevel;