Thursday, November 30, 2006
The power of regular expressions
So I needed to change every one of our ACE #include preprocessor macros that was globally scoped to be locally scoped.
In other words, every reference such as:
needed to be converted to:
There were about two hundred of them spread across 430 files.
Ah, the power of regex:
sed -i '/^#include <ace/s/[<>]/"/g' *.cpp
November 30, 2006
Share to Twitter
Share to Facebook
Share to Pinterest