On Oct 30, 2007, at 6:17 AM, Lucian Adrian Grijincu wrote:
On 10/30/07, jean-frederic clere <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:
Author: trawick
Date: Mon Oct 29 13:36:08 2007
New Revision: 589846
URL: http://svn.apache.org/viewvc?rev=589846&view=rev
Log:
AIX C compiler won't add to void * in picky mode
It seems I also had problems on HP-UX:
+++
if (amt) {
<<<<<<< .mine
/* rv = apr_file_write_full(thefile, vec[i].iov_base +
amt, */
void *ptr = vec[i].iov_base;
ptr = ptr + amt;
rv = apr_file_write_full(thefile, ptr,
=======
does the C standard allow void* arithmetics?
No, because when incrementing how does one know how much to
increment it...? C is smart enough to know how much to "really"
move the pointer with p += 1 depending on what p is actually pointing
to; but with void, there is no real "size" associated with it.