Hello there,
I'm new here and seldom use mail list. Please tell me if I did something
improper.
Now I'm learning ansi C and socket programming these days. I read polipo
source code and saw this (in event.c):
/* Let the compiler optimise the common cases */
if(dsize == sizeof(void*))
memcpy(event->data, data, sizeof(void*));
else if(dsize == sizeof(StreamRequestRec))
memcpy(event->data, data, sizeof(StreamRequestRec));
else if(dsize > 0)
memcpy(event->data, data, dsize);
I really don't understand why this is a "optimise". I'll appreciate if
someone can help.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users