From: Jonathan Wakely Date: Wed, 30 Oct 2024 21:10:58 +0000 (+0000) Subject: libstdc++: Fix some typos and grammatical errors in docs X-Git-Tag: basepoints/gcc-16~4765 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96566cc46d633c2026976e585b5743e880a8f99b;p=thirdparty%2Fgcc.git libstdc++: Fix some typos and grammatical errors in docs Also remove some redundant 'void' parameters from code examples. libstdc++-v3/ChangeLog: * doc/xml/manual/using_exceptions.xml: Fix typos and grammatical errors. * doc/html/manual/using_exceptions.html: Regenerate. --- diff --git a/libstdc++-v3/doc/html/manual/using_exceptions.html b/libstdc++-v3/doc/html/manual/using_exceptions.html index 706b27e14793..eb4501b1f6ba 100644 --- a/libstdc++-v3/doc/html/manual/using_exceptions.html +++ b/libstdc++-v3/doc/html/manual/using_exceptions.html @@ -158,7 +158,7 @@ exception neutrality and exception safety.

Doing without

C++ is a language that strives to be as efficient as is possible in delivering features. As such, considerable care is used by both - language implementer and designers to make sure unused features + language implementer and designers to make sure unused features do not impose hidden or unexpected costs. The GNU system tries to be as flexible and as configurable as possible. So, it should come as no surprise that GNU C++ provides an optional language extension, @@ -166,7 +166,7 @@ exception neutrality and exception safety. implicitly generated magic necessary to support try and catch blocks and thrown objects. (Language support - for -fno-exceptions is documented in the GCC + for -fno-exceptions is documented in the GCC manual.)

Before detailing the library support for -fno-exceptions, first a passing note on @@ -179,7 +179,7 @@ exception neutrality and exception safety. uses try or catch, you shouldn't use -fno-exceptions.

- And what it to be gained, tinkering in the back alleys with a + And what is to be gained, tinkering in the back alleys with a language like this? Exception handling overhead can be measured in the size of the executable binary, and varies with the capabilities of the underlying operating system and specific @@ -216,15 +216,15 @@ exception neutrality and exception safety. # define __throw_exception_again #endif

- In addition, for every object derived from + In addition, for most of the classes derived from class exception, there exists a corresponding function with C language linkage. An example:

 #if __cpp_exceptions
-  void __throw_bad_exception(void)
+  void __throw_bad_exception()
   { throw bad_exception(); }
 #else
-  void __throw_bad_exception(void)
+  void __throw_bad_exception()
   { abort(); }
 #endif
 

diff --git a/libstdc++-v3/doc/xml/manual/using_exceptions.xml b/libstdc++-v3/doc/xml/manual/using_exceptions.xml index ab42c8099399..ac2ba9dffd45 100644 --- a/libstdc++-v3/doc/xml/manual/using_exceptions.xml +++ b/libstdc++-v3/doc/xml/manual/using_exceptions.xml @@ -274,7 +274,7 @@ exception neutrality and exception safety. C++ is a language that strives to be as efficient as is possible in delivering features. As such, considerable care is used by both - language implementer and designers to make sure unused features + language implementer and designers to make sure unused features do not impose hidden or unexpected costs. The GNU system tries to be as flexible and as configurable as possible. So, it should come as no surprise that GNU C++ provides an optional language extension, @@ -282,7 +282,7 @@ exception neutrality and exception safety. implicitly generated magic necessary to support try and catch blocks and thrown objects. (Language support - for -fno-exceptions is documented in the GCC + for -fno-exceptions is documented in the GCC manual.) @@ -299,7 +299,7 @@ exception neutrality and exception safety. - And what it to be gained, tinkering in the back alleys with a + And what is to be gained, tinkering in the back alleys with a language like this? Exception handling overhead can be measured in the size of the executable binary, and varies with the capabilities of the underlying operating system and specific @@ -344,17 +344,17 @@ exception neutrality and exception safety. - In addition, for every object derived from + In addition, for most of the classes derived from class exception, there exists a corresponding function with C language linkage. An example: #if __cpp_exceptions - void __throw_bad_exception(void) + void __throw_bad_exception() { throw bad_exception(); } #else - void __throw_bad_exception(void) + void __throw_bad_exception() { abort(); } #endif