regexp=`sed -e 's/^ *# *define *([a-zA-Z_][a-zA-Z0-9_]*) *0 *$/\1/' -e 't' -e 's/^ *# *define *([a-zA-Z_][a-zA-Z0-9_]*) *0x00*L* *$/\1/' -e 't' -e 'd' include/*.h`;regexp=`echo $regexp | sed -e 's/ NULL / /' -e 's/ /|/g'`;egrep -r -n "& *($regexp)[^a-zA-Z0-9_]" .
Francois Gouget fgouget@free.fr http://fgouget.free.fr/ Linux: It is now safe to turn on your computer.
Hi Francois,
how do you cater for the following in your one-liner:
include/accctrl.h:#define ACTRL_RESERVED 0x00000000 include/accctrl.h:#define ACTRL_DS_OPEN ACTRL_RESERVED
good luck :-)
But seriously what would be the best way to fix up dplayx.c?
Cheers,
Paul.