From: Paul L. <pdo...@us...> - 2005-07-21 07:23:48
|
Update of /cvsroot/serverfilters/serversidefilter/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6500 Modified Files: filtercmd.c Log Message: Parsing of PHP files now supports comment lines that start with # sign too Index: filtercmd.c =================================================================== RCS file: /cvsroot/serverfilters/serversidefilter/script/filtercmd.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** filtercmd.c 21 Jul 2005 07:10:26 -0000 1.5 --- filtercmd.c 21 Jul 2005 07:23:40 -0000 1.6 *************** *** 521,524 **** --- 521,529 ---- if (commentpos && commentpos < s) return 0; + /* look for # comment marker, making sure the # can't be + treated as a comment by the compiler */ + commentpos = strstr(line, "#"); + if (commentpos && commentpos < s) return 0; + /* skip ahead to either ' or " or a number */ s += strcspn(s, "\"'0123456789\0\n"); |