ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.381 by root, Mon Jun 27 21:29:35 2011 UTC vs.
Revision 1.382 by sf-exg, Thu Jun 30 13:13:59 2011 UTC

964 memset ((void *)(base), 0, sizeof (*(base)) * (count)) 964 memset ((void *)(base), 0, sizeof (*(base)) * (count))
965 965
966#define array_needsize(type,base,cur,cnt,init) \ 966#define array_needsize(type,base,cur,cnt,init) \
967 if (expect_false ((cnt) > (cur))) \ 967 if (expect_false ((cnt) > (cur))) \
968 { \ 968 { \
969 int ocur_ = (cur); \ 969 int ecb_unused ocur_ = (cur); \
970 (base) = (type *)array_realloc \ 970 (base) = (type *)array_realloc \
971 (sizeof (type), (base), &(cur), (cnt)); \ 971 (sizeof (type), (base), &(cur), (cnt)); \
972 init ((base) + (ocur_), (cur) - ocur_); \ 972 init ((base) + (ocur_), (cur) - ocur_); \
973 } 973 }
974 974

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines