apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: svn commit: r589846 - /apr/apr/trunk/file_io/unix/fullrw.c
Date Tue, 30 Oct 2007 12:35:57 GMT

On Oct 30, 2007, at 6:17 AM, Lucian Adrian Grijincu wrote:

> On 10/30/07, jean-frederic clere <jfclere@gmail.com> wrote:
>> trawick@apache.org 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.


Mime
View raw message