From patchwork Fri Nov 15 16:34:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 291616 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4B9802C0040 for ; Sat, 16 Nov 2013 03:34:27 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; q=dns; s=default; b=d9oDve7WhTfJcBMjwd k2XEuMvQuC2EPCIEaIKz4TrxeY4FVo+DvXnQ0zHYYrv3juVdcVI0o4La1f86RJWK yJOAhrxjdfjb9wAyPIas9yUov5LyPgSd3TU8LqESOVJAHA6YLLxzG+VH3BuQEyat WsbG/uETJsMgxochsTVD12ryM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; s=default; bh=6DOV0miXf8z50dsfgI+gE52y PZM=; b=SUQuY22ScTS9o2MYPfQ5AFDl6R0F7ith6g78aSmi5nYUBFjMmmmGWNZX CbM0+w7Tp3mGCwQCxSGqUZeXDPb29oqS/6o6bmvJjD/QTEyzw1pboF0eBFfniaAQ ouw6BmiPJg5DbT01apnB++2IDPMOW1a1TacRiVf8VMkIgayercg= Received: (qmail 32500 invoked by alias); 15 Nov 2013 16:34:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 32468 invoked by uid 89); 15 Nov 2013 16:34:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL, BAYES_50, FREEMAIL_FROM, RDNS_NONE, SPF_PASS, URIBL_BLOCKED autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-lb0-f172.google.com Received: from Unknown (HELO mail-lb0-f172.google.com) (209.85.217.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 15 Nov 2013 16:34:13 +0000 Received: by mail-lb0-f172.google.com with SMTP id c11so2935136lbj.3 for ; Fri, 15 Nov 2013 08:34:04 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.152.28.37 with SMTP id y5mr4736052lag.23.1384533243907; Fri, 15 Nov 2013 08:34:03 -0800 (PST) Received: by 10.112.173.195 with HTTP; Fri, 15 Nov 2013 08:34:03 -0800 (PST) In-Reply-To: <20130723120805.GA7365@domone.kolej.mff.cuni.cz> References: <20130723104529.GC6395@domone.kolej.mff.cuni.cz> <51EE6629.5050406@oracle.com> <20130723120805.GA7365@domone.kolej.mff.cuni.cz> Date: Fri, 15 Nov 2013 16:34:03 +0000 Message-ID: Subject: Re: [PATCH 4/5] Fix typos in libstdc++. From: Jonathan Wakely To: =?ISO-8859-2?B?T25k+GVqIELtbGth?= Cc: "libstdc++" , gcc-patches I've applied the attached patch to fix some of the typos in libstdc++ that were pointed out back in July. Tested x86_64-linux, committed to trunk. commit 9219099336b3117a15ed1a9e21cbd6331abd532e Author: Jonathan Wakely Date: Fri Nov 15 16:08:59 2013 +0000 2013-11-15 Ondřej Bílka Jonathan Wakely * doc/xml/manual/build_hacking.xml: Fix documentation typos. * doc/xml/manual/configure.xml: Likewise. * include/bits/atomic_base.h: Fix typos in comments. * include/bits/random.h: Likewise. * include/ext/cast.h: Likewise. * libsupc++/cxxabi.h: Likewise. * testsuite/ext/pb_ds/example/hash_illegal_resize.cc: Likewise. * testsuite/tr1/5_numerical_facilities/special_functions/testcase.h: Likewise. * testsuite/util/exception/safety.h: Likewise. * testsuite/util/testsuite_containers.h: Likewise. * testsuite/util/testsuite_hooks.cc: Likewise. diff --git a/libstdc++-v3/doc/xml/manual/build_hacking.xml b/libstdc++-v3/doc/xml/manual/build_hacking.xml index 917b4d2..912658b 100644 --- a/libstdc++-v3/doc/xml/manual/build_hacking.xml +++ b/libstdc++-v3/doc/xml/manual/build_hacking.xml @@ -142,13 +142,13 @@ in the build directory starts the build process. The all targ Most comments should use {octothorpes, shibboleths, hash marks, pound signs, whatever} rather than "dnl". Nearly all comments in - configure.ac should. Comments inside macros written in ancilliary + configure.ac should. Comments inside macros written in ancillary .m4 files should. About the only comments which should not use #, but use dnl instead, are comments - outside our own macros in the ancilliary + outside our own macros in the ancillary files. The difference is that # comments show up in configure (which is most helpful for debugging), - while dnl'd lines just vanish. Since the macros in ancilliary + while dnl'd lines just vanish. Since the macros in ancillary files generate code which appears in odd places, their "outside" comments tend to not be useful while reading configure. @@ -419,7 +419,7 @@ in the build directory starts the build process. The all targ Generates two convenience libraries, one for C++98 and one for - C++11, various compability files for shared and static + C++11, various compatibility files for shared and static libraries, and then collects all the generated bits and creates the final libstdc++ libraries. diff --git a/libstdc++-v3/doc/xml/manual/configure.xml b/libstdc++-v3/doc/xml/manual/configure.xml index cf09897..3246d85 100644 --- a/libstdc++-v3/doc/xml/manual/configure.xml +++ b/libstdc++-v3/doc/xml/manual/configure.xml @@ -376,7 +376,7 @@ to standard error for certain events such as calling a pure virtual function or the invocation of the standard terminate handler. Those messages cause the library to depend on the demangler and standard I/O - facilites, which might be undesirable in a low-memory environment or + facilities, which might be undesirable in a low-memory environment or when standard error is not available. This option disables those messages. This option does not change the library ABI. diff --git a/libstdc++-v3/include/bits/atomic_base.h b/libstdc++-v3/include/bits/atomic_base.h index d9d755a..54bf213 100644 --- a/libstdc++-v3/include/bits/atomic_base.h +++ b/libstdc++-v3/include/bits/atomic_base.h @@ -255,7 +255,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * * Base type is POD with data, allowing atomic_flag to derive from * it and meet the standard layout type requirement. In addition to - * compatibilty with a C interface, this allows different + * compatibility with a C interface, this allows different * implementations of atomic_flag to use the same atomic operation * functions, via a standard conversion to the __atomic_flag_base * argument. diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h index dde2dd4..5613bdf 100644 --- a/libstdc++-v3/include/bits/random.h +++ b/libstdc++-v3/include/bits/random.h @@ -5685,11 +5685,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { return __d1._M_param == __d2._M_param; } /** - * @brief Inserts a %piecewise_constan_distribution random + * @brief Inserts a %piecewise_constant_distribution random * number distribution @p __x into the output stream @p __os. * * @param __os An output stream. - * @param __x A %piecewise_constan_distribution random number + * @param __x A %piecewise_constant_distribution random number * distribution. * * @returns The output stream with the state of @p __x inserted or in @@ -5701,11 +5701,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION const std::piecewise_constant_distribution<_RealType1>& __x); /** - * @brief Extracts a %piecewise_constan_distribution random + * @brief Extracts a %piecewise_constant_distribution random * number distribution @p __x from the input stream @p __is. * * @param __is An input stream. - * @param __x A %piecewise_constan_distribution random number + * @param __x A %piecewise_constant_distribution random number * generator engine. * * @returns The input stream with @p __x extracted or in an error diff --git a/libstdc++-v3/include/ext/cast.h b/libstdc++-v3/include/ext/cast.h index 961a962..fb220f3 100644 --- a/libstdc++-v3/include/ext/cast.h +++ b/libstdc++-v3/include/ext/cast.h @@ -38,7 +38,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * These functions are here to allow containers to support non standard * pointer types. For normal pointers, these resolve to the use of the * standard cast operation. For other types the functions will perform - * the apprpriate cast to/from the custom pointer class so long as that + * the appropriate cast to/from the custom pointer class so long as that * class meets the following conditions: * 1) has a typedef element_type which names tehe type it points to. * 2) has a get() const method which returns element_type*. diff --git a/libstdc++-v3/libsupc++/cxxabi.h b/libstdc++-v3/libsupc++/cxxabi.h index cf2c060..3e29fed 100644 --- a/libstdc++-v3/libsupc++/cxxabi.h +++ b/libstdc++-v3/libsupc++/cxxabi.h @@ -144,7 +144,7 @@ namespace __cxxabiv1 void __cxa_deleted_virtual(void) __attribute__ ((__noreturn__)); - // Exception handling auxillary. + // Exception handling auxiliary. void __cxa_bad_cast() __attribute__((__noreturn__)); diff --git a/libstdc++-v3/testsuite/ext/pb_ds/example/hash_illegal_resize.cc b/libstdc++-v3/testsuite/ext/pb_ds/example/hash_illegal_resize.cc index 94ca7d9..c2423bd 100644 --- a/libstdc++-v3/testsuite/ext/pb_ds/example/hash_illegal_resize.cc +++ b/libstdc++-v3/testsuite/ext/pb_ds/example/hash_illegal_resize.cc @@ -38,7 +38,7 @@ /** * This example shows the case where a hash-based container object is - * resized to a value which it cannot accomodate at runtime. Illegal + * resized to a value which it cannot accommodate at runtime. Illegal * runtime resizes cause an exception. */ diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/testcase.h b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/testcase.h index 6e390d2..44e1a46 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/testcase.h +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/testcase.h @@ -21,7 +21,7 @@ // // These are little PODs for special function inputs and -// expexted results for the testsuite. +// expected results for the testsuite. // // 5.2.1.1 Associated Laguerre polynomials. diff --git a/libstdc++-v3/testsuite/util/exception/safety.h b/libstdc++-v3/testsuite/util/exception/safety.h index ca31179..eaefc93 100644 --- a/libstdc++-v3/testsuite/util/exception/safety.h +++ b/libstdc++-v3/testsuite/util/exception/safety.h @@ -1198,7 +1198,7 @@ namespace __gnu_test try { // An exception while assigning might leave the container empty - // making future attemps less relevant. So we copy it before to + // making future attempts less relevant. So we copy it before to // always assign to a non empty container. It also check for copy // constructor exception safety at the same time. _Tp __clone(__container); diff --git a/libstdc++-v3/testsuite/util/testsuite_containers.h b/libstdc++-v3/testsuite/util/testsuite_containers.h index 7e41d05..e8f7e2d 100644 --- a/libstdc++-v3/testsuite/util/testsuite_containers.h +++ b/libstdc++-v3/testsuite/util/testsuite_containers.h @@ -255,7 +255,7 @@ template void linkage_check_cxx98_cxx11_erase(_Tp& container) { - // Crashing when exteral reference and internal reference symbols are + // Crashing when external reference and internal reference symbols are // equivalently mangled but have different size return types in C++98 // and C++11 signatures. erase_external(container); // C++98 @@ -266,7 +266,7 @@ template void linkage_check_cxx98_cxx11_erase_iterators(_Tp& container) { - // Crashing when exteral reference and internal reference symbols are + // Crashing when external reference and internal reference symbols are // equivalently mangled but have different size return types in C++98 // and C++11 signatures. erase_external_iterators(container);// C++98 diff --git a/libstdc++-v3/testsuite/util/testsuite_hooks.cc b/libstdc++-v3/testsuite/util/testsuite_hooks.cc index 7f6a21e..20fedbc 100644 --- a/libstdc++-v3/testsuite/util/testsuite_hooks.cc +++ b/libstdc++-v3/testsuite/util/testsuite_hooks.cc @@ -237,7 +237,7 @@ namespace __gnu_test semaphore::semaphore() { #ifdef _GLIBCXX_SYSV_SEM - // Remeber the PID for the process that created the semaphore set + // Remember the PID for the process that created the semaphore set // so that only one process will destroy the set. pid_ = getpid();