From patchwork Sat Apr 8 20:12:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 19918 Received: (qmail 43842 invoked by alias); 8 Apr 2017 20:22:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 43822 invoked by uid 89); 8 Apr 2017 20:22:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1319 X-HELO: gproxy10.mail.unifiedlayer.com Received: from gproxy10-pub.mail.unifiedlayer.com (HELO gproxy10.mail.unifiedlayer.com) (69.89.20.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 08 Apr 2017 20:22:57 +0000 Received: from cmgw3 (unknown [10.0.90.84]) by gproxy10.mail.unifiedlayer.com (Postfix) with ESMTP id 76E1014272F for ; Sat, 8 Apr 2017 14:12:17 -0600 (MDT) Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id 5wCE1v00C2f2jeq01wCHcz; Sat, 08 Apr 2017 14:12:17 -0600 X-Authority-Analysis: v=2.2 cv=VKStp5HX c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=AzvcPWV-tVgA:10 a=zstS-IiYAAAA:8 a=eEDCGSbqdiIcOQlCGU0A:9 a=EEbSlzY4QSBbWc_z:21 a=XgsIADPNrl7xx23D:21 a=4G6NA9xxw8l3yy4pmD5M:22 Received: from 75-166-65-226.hlrn.qwest.net ([75.166.65.226]:43578 helo=bapiya.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cwwiU-0003Fw-8G; Sat, 08 Apr 2017 14:12:14 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 07/14] Fix up wchar_iterator comment Date: Sat, 8 Apr 2017 14:12:01 -0600 Message-Id: <20170408201208.2672-8-tom@tromey.com> In-Reply-To: <20170408201208.2672-1-tom@tromey.com> References: <20170408201208.2672-1-tom@tromey.com> X-BWhitelist: no X-Exim-ID: 1cwwiU-0003Fw-8G X-Source-Sender: 75-166-65-226.hlrn.qwest.net (bapiya.Home) [75.166.65.226]:43578 X-Source-Auth: tom+tromey.com X-Email-Count: 8 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== This fixes up a comment in charset.h that has been obsolete for a while. I think this patch is obvious. 2017-04-07 Tom Tromey * charset.h (wchar_iterator): Fix comment. --- gdb/ChangeLog | 4 ++++ gdb/charset.h | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 56b1a87..1cf860a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2017-04-07 Tom Tromey + * charset.h (wchar_iterator): Fix comment. + +2017-04-07 Tom Tromey + * charset.c (iconv_wrapper): New class. (cleanup_iconv): Remove. (convert_between_encodings): Use it. diff --git a/gdb/charset.h b/gdb/charset.h index 9e8ca4a..0d00f56 100644 --- a/gdb/charset.h +++ b/gdb/charset.h @@ -92,11 +92,7 @@ class wchar_iterator the input buffer. BYTES is the number of bytes in the input buffer. CHARSET is the name of the character set in which INPUT is encoded. WIDTH is the number of bytes in a base character of - CHARSET. - - This function either returns a new character set iterator, or calls - error. The result can be freed using a cleanup; see - make_cleanup_wchar_iterator. */ + CHARSET. */ wchar_iterator (const gdb_byte *input, size_t bytes, const char *charset, size_t width);