in reply to Re: Slow Regex - How to Optimize
in thread Slow Regex - How to Optimize
Notice that your code has a subtle bug.Even if he is running the code through CPP first (to strip out comments, expand macros, rejoin lines), he still has plenty of corner cases to worry about (strings, fucntion pointers, etc)...
#define p printf int mai\ n/*this is a comment: main()*/(int argc, char **argv) { int (*f)(int, char **) = &main; p("hello world: main()\n"); if(argc>0) f((argc-1),argv); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Slow Regex - How to Optimize
by Anonymous Monk on Aug 30, 2005 at 23:30 UTC |