diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-10-29 08:08:02 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-10-29 08:08:02 +0100 |
commit | 641cf0e2c049efac533cbc517a18c04a150b2595 (patch) | |
tree | ed576e9367ec421618c0b0a31a892cb16377b8f3 /gas/doc | |
parent | a8ff55b5b47737e666bfe35d78fedee94675aa36 (diff) | |
download | gdb-641cf0e2c049efac533cbc517a18c04a150b2595.zip gdb-641cf0e2c049efac533cbc517a18c04a150b2595.tar.gz gdb-641cf0e2c049efac533cbc517a18c04a150b2595.tar.bz2 |
gas: constify md_{short,long}opts and md_longopts_size
First of all make the declarations globally visible, such that producer
and consumer actually share them.
For the latter two simply add const (as PPC already had it,), while for
the former achieve the effect by converting to an array: There's no need
for the extra level of indirection.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/internals.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/doc/internals.texi b/gas/doc/internals.texi index e59d676..18fca0e 100644 --- a/gas/doc/internals.texi +++ b/gas/doc/internals.texi @@ -814,7 +814,7 @@ zero if the target is little endian. @cindex md_show_usage @cindex md_after_parse_args GAS uses these variables and functions during option processing. -@code{md_shortopts} is a @code{const char *} which GAS adds to the machine +@code{md_shortopts} is a @code{const char []} which GAS adds to the machine independent string passed to @code{getopt}. @code{md_longopts} is a @code{struct option []} which GAS adds to the machine independent long options passed to @code{getopt}; you may use @code{OPTION_MD_BASE}, defined in |