Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 09854EEEA for ; Wed, 13 Feb 2013 16:29:39 +0000 (UTC) Received: (qmail 27160 invoked by uid 500); 13 Feb 2013 16:29:38 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 27066 invoked by uid 500); 13 Feb 2013 16:29:38 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 26897 invoked by uid 99); 13 Feb 2013 16:29:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 16:29:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ben@reser.org designates 50.197.89.41 as permitted sender) Received: from [50.197.89.41] (HELO mail.brain.org) (50.197.89.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 16:29:23 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.brain.org (Postfix) with ESMTP id 75DD9179E279 for ; Wed, 13 Feb 2013 08:29:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at fornix.brain.org Received: from mail.brain.org ([127.0.0.1]) by localhost (fornix.brain.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j3W-IYMzuleC for ; Wed, 13 Feb 2013 08:28:56 -0800 (PST) Received: from mail-oa0-f46.google.com (mail-oa0-f46.google.com [209.85.219.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.brain.org (Postfix) with ESMTPSA id 99D21179E121 for ; Wed, 13 Feb 2013 08:28:56 -0800 (PST) Received: by mail-oa0-f46.google.com with SMTP id k1so1469369oag.19 for ; Wed, 13 Feb 2013 08:28:55 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.31.170 with SMTP id b10mr16822688oei.34.1360772935720; Wed, 13 Feb 2013 08:28:55 -0800 (PST) Received: by 10.60.170.44 with HTTP; Wed, 13 Feb 2013 08:28:55 -0800 (PST) In-Reply-To: References: <092299f6-ef92-4fcb-b591-8d938337b47c@googlegroups.com> <65ecbf72-223a-4296-9b80-5e5484f5baff@googlegroups.com> Date: Wed, 13 Feb 2013 08:28:55 -0800 Message-ID: Subject: Re: [PATCH] Small fixes to the Perl bindings From: Ben Reser To: Roderich Schupp Cc: Subversion Development Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Feb 13, 2013 at 6:57 AM, Roderich Schupp wrote: > Ouch. Your diagnosis is correct, though I can't reproduce your symptoms :) > The previously failing tests in t/9wc.t do not cover the problematic > conversion. > For that, you would have to pass a Perl _svn_opt_opt_revision_t object > (e.g. obtained from the return value of > SVN::Wc::parse_externals_description3) > into a wrapped function expecting a C *svn_opt_revision_t, e.g. > SVN::Client::log. Actually you don't even have to do that. Retrieving values out of a svn_opt_revision_t object would have exercised the issue since you're calling the generated accessor function (e.g. _wrap_svn_opt_revision_t_kind_get()) which is taking the svn_opt_revision_t object which SWIG applies the typemap to. > Anyway, the pointer to pointer thing is ugly. What about the following patch > that makes it more explicit that the converted argument may be assigned to? Thanks that is cleaner. Applied in r1445705.