From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29338 invoked by alias); 3 Jun 2003 20:40:56 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29262 invoked from network); 3 Jun 2003 20:40:53 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.131) by sources.redhat.com with SMTP; 3 Jun 2003 20:40:53 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 3790D2B2F for ; Tue, 3 Jun 2003 16:40:46 -0400 (EDT) Message-ID: <3EDD07CD.1020900@redhat.com> Date: Tue, 03 Jun 2003 20:40:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: some const char * trivia Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-06/txt/msg00138.txt.bz2 I got slightly carried away with trying to eliminate some -Wwrite-strings errors. I'm trying to put the resultant mess on cagney_writestrings-20030508-branch. Anyway, I learnt two things: - the cli callbacks cause much grief An incremental approach where a new call back function signature (that took a const char *) was introduced might make that transition easier. - strtol(const char *, char **, int base) is a pain Perhaphs something like: LONGEST strtolongest (const char *b, const char **p, int base); would be useful. Andrew