next pass of cleaning up micropatch.c

Wolfgang Denk wd at denx.de
Sat Oct 9 08:32:38 EST 2004


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.

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
God runs electromagnetics by wave theory on  Monday,  Wednesday,  and
Friday,  and the Devil runs them by quantum theory on Tuesday, Thurs-
day, and Saturday.                                   -- William Bragg



More information about the Linuxppc-embedded mailing list