|
|
: SYNOPSIS
|
: SYNOPSIS
|
skip_past_newline
|
skip_past_newline
|
get_stuff_in_command
|
get_stuff_in_command
|
paramstuff
|
paramstuff
|
indent
|
indent
|
maybecatstr
|
maybecatstr
|
;
|
;
|
|
|
: ignore
|
: ignore
|
skip_past_newline
|
skip_past_newline
|
get_stuff_in_command
|
get_stuff_in_command
|
outputdots
|
outputdots
|
maybecatstr
|
maybecatstr
|
;
|
;
|
|
|
: CODE_FRAGMENT
|
: CODE_FRAGMENT
|
ignore ;
|
ignore ;
|
|
|
: external
|
: external
|
0 internalmode ignore ;
|
0 internalmode ignore ;
|
|
|
: internal
|
: internal
|
1 internalmode ignore ;
|
1 internalmode ignore ;
|
|
|
- input stack { a b } output b if internal, a if external
|
- input stack { a b } output b if internal, a if external
|
: ifinternal
|
: ifinternal
|
"" swap 1 internalmode maybecatstr
|
"" swap 1 internalmode maybecatstr
|
swap
|
swap
|
"" swap 0 internalmode maybecatstr
|
"" swap 0 internalmode maybecatstr
|
catstr
|
catstr
|
;
|
;
|
|
|
- Put note in output string, regardless of internal mode.
|
- Put note in output string, regardless of internal mode.
|
: COMMENT
|
: COMMENT
|
skip_past_newline
|
skip_past_newline
|
get_stuff_in_command
|
get_stuff_in_command
|
translatecomments
|
translatecomments
|
catstr
|
catstr
|
;
|
;
|
|
|
- SENUM enum-type-name
|
- SENUM enum-type-name
|
- ENUM enum-name
|
- ENUM enum-name
|
- ENUMX addl-enum-name
|
- ENUMX addl-enum-name
|
- ENUMDOC doc for preceding enums
|
- ENUMDOC doc for preceding enums
|
- ENDSENUM max-enum-name
|
- ENDSENUM max-enum-name
|
|
|
: make_enum_header
|
: make_enum_header
|
dup
|
dup
|
"enum " swap catstr
|
"enum " swap catstr
|
" {\n" catstr
|
" {\n" catstr
|
swap " _dummy_first_" swap catstr catstr
|
swap " _dummy_first_" swap catstr catstr
|
",\n" catstr
|
",\n" catstr
|
;
|
;
|
: make_string_table_header
|
: make_string_table_header
|
dup
|
dup
|
"#ifdef _BFD_MAKE_TABLE_" swap catstr swap
|
"#ifdef _BFD_MAKE_TABLE_" swap catstr swap
|
"\n\nstatic const char *const " swap catstr catstr
|
"\n\nstatic const char *const " swap catstr catstr
|
"_names[] = { \"@@uninitialized@@\",\n" catstr
|
"_names[] = { \"@@uninitialized@@\",\n" catstr
|
;
|
;
|
: SENUM
|
: SENUM
|
skip_past_newline
|
skip_past_newline
|
copy_past_newline
|
copy_past_newline
|
remchar
|
remchar
|
dup
|
dup
|
make_enum_header
|
make_enum_header
|
swap
|
swap
|
make_string_table_header
|
make_string_table_header
|
ifinternal
|
ifinternal
|
catstr
|
catstr
|
get_stuff_in_command catstr
|
get_stuff_in_command catstr
|
translatecomments ;
|
translatecomments ;
|
: ENDSENUM
|
: ENDSENUM
|
skip_past_newline
|
skip_past_newline
|
copy_past_newline strip_trailing_newlines
|
copy_past_newline strip_trailing_newlines
|
dup
|
dup
|
" " swap catstr " };\n" catstr swap
|
" " swap catstr " };\n" catstr swap
|
" \"@@overflow: " swap catstr "@@\",\n};\n#endif\n\n" catstr
|
" \"@@overflow: " swap catstr "@@\",\n};\n#endif\n\n" catstr
|
ifinternal
|
ifinternal
|
catstr
|
catstr
|
;
|
;
|
: make_enumerator
|
: make_enumerator
|
" " swap catstr
|
" " swap catstr
|
",\n" catstr
|
",\n" catstr
|
;
|
;
|
: make_enumerator_string
|
: make_enumerator_string
|
" \"" swap catstr
|
" \"" swap catstr
|
"\",\n" catstr
|
"\",\n" catstr
|
;
|
;
|
: ENUM
|
: ENUM
|
skip_past_newline
|
skip_past_newline
|
copy_past_newline
|
copy_past_newline
|
remchar
|
remchar
|
dup
|
dup
|
make_enumerator
|
make_enumerator
|
swap
|
swap
|
make_enumerator_string
|
make_enumerator_string
|
ifinternal
|
ifinternal
|
;
|
;
|
: ENUMX ENUM catstr ;
|
: ENUMX ENUM catstr ;
|
: ENUMEQ
|
: ENUMEQ
|
skip_past_newline
|
skip_past_newline
|
"#define "
|
"#define "
|
copy_past_newline remchar
|
copy_past_newline remchar
|
catstr
|
catstr
|
" "
|
" "
|
catstr
|
catstr
|
copy_past_newline
|
copy_past_newline
|
catstr
|
catstr
|
"" swap 0 internalmode maybecatstr
|
"" swap 0 internalmode maybecatstr
|
;
|
;
|
: ENUMEQX ENUMEQ catstr ;
|
: ENUMEQX ENUMEQ catstr ;
|
: ENUMDOC
|
: ENUMDOC
|
skip_past_newline
|
skip_past_newline
|
get_stuff_in_command
|
get_stuff_in_command
|
strip_trailing_newlines
|
strip_trailing_newlines
|
"\n{* " swap catstr " *}\n" catstr
|
"\n{* " swap catstr " *}\n" catstr
|
translatecomments
|
translatecomments
|
- discard it if we're doing internal mode
|
- discard it if we're doing internal mode
|
"" swap 0 internalmode maybecatstr
|
"" swap 0 internalmode maybecatstr
|
swap
|
swap
|
catstr catstr
|
catstr catstr
|
;
|
;
|
: ENDDD external ;
|
: ENDDD external ;
|
: SECTION ignore ;
|
: SECTION ignore ;
|
: SUBSECTION ignore ;
|
: SUBSECTION ignore ;
|
: SUBSUBSECTION ignore ;
|
: SUBSUBSECTION ignore ;
|
: INTERNAL_DEFINITION internal ;
|
: INTERNAL_DEFINITION internal ;
|
: DESCRIPTION ignore ;
|
: DESCRIPTION ignore ;
|
: FUNCTION external ;
|
: FUNCTION external ;
|
: RETURNS ignore ;
|
: RETURNS ignore ;
|
: TYPEDEF external ;
|
: TYPEDEF external ;
|
: INTERNAL_FUNCTION internal ;
|
: INTERNAL_FUNCTION internal ;
|
: INTERNAL internal ;
|
: INTERNAL internal ;
|
: INODE ignore ;
|
: INODE ignore ;
|
|
|