Bug 255328 mkdepend command line defines may be broken

http://www.mozilla.org/hacking/portable-cpp.html#no_cpp_comments_in_c
caught by m.calderbank@iname.com
This commit is contained in:
timeless%mozdev.org 2004-08-26 13:33:19 +00:00
parent 0cd20b929c
commit fb1b2a3df7

View File

@ -238,7 +238,9 @@ main(int argc, char *argv[])
argc--;
offset = 0;
}
//offset +1 here since first def letter cannot be `=`
/* offset +1 here since first def letter
* cannot be `=`
*/
for (p = argv[0] + offset + 1; *p; p++)
if (*p == '=') {
*p = ' ';