run_doxygen: Tighter search expression for sed.
2002-11-21 Phil Edwards <pme@gcc.gnu.org> * docs/doxygen/run_doxygen: Tighter search expression for sed. * docs/doxygen/stdheader.cc: Handle the case of good headers. From-SVN: r59332
This commit is contained in:
parent
e5e5d78d70
commit
53e0a44759
@ -1,3 +1,8 @@
|
||||
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
|
||||
|
||||
* docs/doxygen/run_doxygen: Tighter search expression for sed.
|
||||
* docs/doxygen/stdheader.cc: Handle the case of good headers.
|
||||
|
||||
2002-11-21 Phil Edwards <pme@gcc.gnu.org>
|
||||
|
||||
* acinclude.m4: Uniform formatting.
|
||||
|
@ -208,7 +208,7 @@ g++ ${srcdir}/docs/doxygen/stdheader.cc -o ./stdheader
|
||||
problematic=`egrep -l '#include <.*_.*>' [a-z]*.3`
|
||||
for f in $problematic; do
|
||||
# this is also slow, but safe and easy to debug
|
||||
oldh=`sed -n '/#include </s/.*<\(.*\)>.*/\1/p' $f`
|
||||
oldh=`sed -n '/fC#include </s/.*<\(.*\)>.*/\1/p' $f`
|
||||
newh=`echo $oldh | ./stdheader`
|
||||
sed "s=${oldh}=${newh}=" $f > TEMP
|
||||
mv TEMP $f
|
||||
|
@ -111,6 +111,13 @@ void do_word (std::string const& longheader)
|
||||
{
|
||||
std::string::size_type start = 0;
|
||||
|
||||
// if it doesn't contain a "." then it's already a std header
|
||||
if (longheader.find(".") == std::string::npos)
|
||||
{
|
||||
std::cout << longheader << '\n';
|
||||
return;
|
||||
}
|
||||
|
||||
if (longheader.substr(start,5) == "bits/") start += 5;
|
||||
if ((longheader.substr(start,4) == "stl_") ||
|
||||
(longheader.substr(start,4) == "std_"))
|
||||
|
Loading…
Reference in New Issue
Block a user