From patchwork Wed May 14 02:46:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 901 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx23.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 8C0A63600BE for ; Tue, 13 May 2014 19:46:55 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14314964) id 3A20E63869237; Tue, 13 May 2014 19:46:55 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx23.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx23.g.dreamhost.com (Postfix) with ESMTPS id F056C63869227 for ; Tue, 13 May 2014 19:46:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=vCnfT1MYMV8b2JEo7LJTVuTRZiQXj 4v7XA9verFMP81hRj2T3A+JBe8SSw0Kha+l9Rardt0oHM/+XZsK1jTSjv36YjXnU fc2hwNopg7fly5zz2SS1hVu1JCmiJjq7S4GFVdiI4gP9x9XkfmeiJOPSE0HWPtDd VmJY5du4yv5/aI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=qVH9MwbspFveY+VYg/4F7tkp2Qo=; b=jpE oIXU+UXBbyddlYLf/Cv6MT2Vufte/JgUbRcA+Jews5pGu7jKeTil6Iudy5Zwj8XQ qnb44ZPf1cFjkCiIvxQaUH22DMoEYHFBt8kk6STM24yT4Zs/QzCI/sWnF33nYLSE WM3yOcnde+dhOJi8kTJjtBRtdgzgOxSR/H4a0Kf8= Received: (qmail 30664 invoked by alias); 14 May 2014 02:46:53 -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 30644 invoked by uid 89); 14 May 2014 02:46:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f42.google.com Received: from mail-pa0-f42.google.com (HELO mail-pa0-f42.google.com) (209.85.220.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 14 May 2014 02:46:52 +0000 Received: by mail-pa0-f42.google.com with SMTP id rd3so1047818pab.29 for ; Tue, 13 May 2014 19:46:50 -0700 (PDT) X-Received: by 10.68.237.228 with SMTP id vf4mr820617pbc.131.1400035610324; Tue, 13 May 2014 19:46:50 -0700 (PDT) Received: from seba.sebabeach.org.gmail.com (173-13-178-50-sfba.hfc.comcastbusiness.net. [173.13.178.50]) by mx.google.com with ESMTPSA id eh4sm554248pbc.79.2014.05.13.19.46.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 May 2014 19:46:49 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [commit] minor cleanups in py-cmd.c Date: Tue, 13 May 2014 19:46:31 -0700 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in Hi. fyi, I committed this. 2014-05-13 Doug Evans * python/py-cmd.c (cmdpy_completer): Add comment. (completers): Make const. diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c index c24bca7..524ba5a 100644 --- a/gdb/python/py-cmd.c +++ b/gdb/python/py-cmd.c @@ -32,13 +32,15 @@ /* Struct representing built-in completion types. */ struct cmdpy_completer { - /* Python symbol name. */ + /* Python symbol name. + This isn't a const char * for Python 2.4's sake. + PyModule_AddIntConstant only takes a char *, sigh. */ char *name; /* Completion function. */ completer_ftype *completer; }; -static struct cmdpy_completer completers[] = +static const struct cmdpy_completer completers[] = { { "COMPLETE_NONE", noop_completer }, { "COMPLETE_FILENAME", filename_completer },