next pass of cleaning up micropatch.c

Robert P. J. Day rpjday at mindspring.com
Sat Oct 9 09:10:01 EST 2004


On Sat, 9 Oct 2004, Wolfgang Denk wrote:

> In message <Pine.LNX.4.60.0410081643100.25430 at dell.enoriver.com> you wrote:
>>
>> nice idea, but sadly, doomed to failure.  note that the code to copy
>> the patch arrays *requires* you to be able to take the sizeof() those
>> arrays to know *exactly* how much to copy.  if you pass the array to a
>> function by its address, i'm pretty sure you lose the ability to take
>> its sizeof() anymore, isn't that right?
>
> This is not right. Guess how memcpy() works - it's a function, btw.

sure.  and it accepts a size parameter, which is why it works.  i'm 
not sure what you're getting at.

rday



More information about the Linuxppc-embedded mailing list