aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-file.h
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-11-23 12:20:34 +0100
committerTom de Vries <tdevries@suse.de>2024-11-23 12:20:34 +0100
commitac51afb51c00693bb19c6a6110e9a45d2e4f79b7 (patch)
treeb2fcf9ded59d04633dbb406083e2814c34e4e468 /gdb/ui-file.h
parent63eedf3b09f73077ecff2118f45d1adb1391eddd (diff)
downloadbinutils-ac51afb51c00693bb19c6a6110e9a45d2e4f79b7.zip
binutils-ac51afb51c00693bb19c6a6110e9a45d2e4f79b7.tar.gz
binutils-ac51afb51c00693bb19c6a6110e9a45d2e4f79b7.tar.bz2
[gdb/contrib] Add two rules in common-misspellings.txt
Eli mentioned [1] that given that we use US English spelling in our documentation, we should use "behavior" instead of "behaviour". In wikipedia-common-misspellings.txt there's a rule: ... behavour->behavior, behaviour ... which leaves this as a choice. Add an overriding rule to hardcode the choice to common-misspellings.txt: ... behavour->behavior ... and add a rule to rewrite behaviour into behavior: ... behaviour->behavior ... and re-run spellcheck.sh on gdb*. Tested on x86_64-linux. [1] https://sourceware.org/pipermail/gdb-patches/2024-November/213371.html
Diffstat (limited to 'gdb/ui-file.h')
-rw-r--r--gdb/ui-file.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/ui-file.h b/gdb/ui-file.h
index 9686440..dcbc162 100644
--- a/gdb/ui-file.h
+++ b/gdb/ui-file.h
@@ -82,10 +82,10 @@ public:
virtual bool isatty ()
{ return false; }
- /* true indicates terminal output behaviour such as cli_styling.
+ /* true indicates terminal output behavior such as cli_styling.
This default implementation indicates to do terminal output
- behaviour if the UI_FILE is a tty. A derived class can override
- TERM_OUT to have cli_styling behaviour without being a tty. */
+ behavior if the UI_FILE is a tty. A derived class can override
+ TERM_OUT to have cli_styling behavior without being a tty. */
virtual bool term_out ()
{ return isatty (); }
@@ -171,9 +171,9 @@ class string_file : public ui_file
{
public:
/* Construct a string_file to collect 'raw' output, i.e. without
- 'terminal' behaviour such as cli_styling. */
+ 'terminal' behavior such as cli_styling. */
string_file () : m_term_out (false) {};
- /* If TERM_OUT, construct a string_file with terminal output behaviour
+ /* If TERM_OUT, construct a string_file with terminal output behavior
such as cli_styling)
else collect 'raw' output like the previous constructor. */
explicit string_file (bool term_out) : m_term_out (term_out) {};