[dhcp-agent-commits] dhcp-agent/src dhcp-libutil.h,1.8,1.9
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2002-11-24 03:06:50
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv30737 Modified Files: dhcp-libutil.h Log Message: NELMS :-) Index: dhcp-libutil.h =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-libutil.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** dhcp-libutil.h 24 Nov 2002 01:10:00 -0000 1.8 --- dhcp-libutil.h 24 Nov 2002 03:06:47 -0000 1.9 *************** *** 255,258 **** --- 255,261 ---- /* macros. */ + /* NELMS straight out of "The Practice of Programming" Pike and Kernighan. */ + #define NELMS(x) (sizeof(x)/sizeof(x[0])) + /* log message macros. */ #define INFO_MESSAGE(...) { info_message(__VA_ARGS__); } |