[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r35435 - in trunk/subversion: include/private libsvn_subr

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 28 Jan 2009 21:48:02 +0200

On Fri, 23 Jan 2009 12:39 -0800, "Hyrum K. Wright"
<hyrum_at_hyrumwright.org> wrote:
> Author: hwright
> Date: Fri Jan 23 12:39:08 2009
> New Revision: 35435
>
> Log:
> Update sqlite vararg binding to bind blobs.
>
...
> Modified: trunk/subversion/libsvn_subr/sqlite.c
> URL:
> http://svn.collab.net/viewvc/svn/trunk/subversion/libsvn_subr/sqlite.c?pathrev=35435&r1=35434&r2=35435
> ==============================================================================
> --- trunk/subversion/libsvn_subr/sqlite.c Fri Jan 23 12:34:18 2009
> (r35434)
> +++ trunk/subversion/libsvn_subr/sqlite.c Fri Jan 23 12:39:08 2009
> (r35435)
> @@ -229,6 +229,12 @@ vbindf(svn_sqlite__stmt_t *stmt, const c
> va_arg(ap, apr_int64_t)));
> break;
>
> + case 'b':
> + SVN_ERR(svn_sqlite__bind_blob(stmt, count,
> + va_arg(ap, const void *),
> + va_arg(ap, apr_size_t)));
> + break;
> +

Can we use two va_arg() calls inside the function call? IIRC, the order
of evaluation of parameters to a function call is not defined...

Daniel

> default:
> SVN_ERR_MALFUNCTION();
> }
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=495&dsMessageId=1045354
Received on 2009-01-28 21:04:29 CET

This is an archived mail posted to the Subversion Dev mailing list.