mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-18 10:06:54 +01:00
Last minute repairs
git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@477 f6dd340e-d3f9-0310-b409-bdd246841980
This commit is contained in:
parent
9d5f94c85a
commit
1dafad4060
5 changed files with 18 additions and 8 deletions
|
@ -1,3 +1,12 @@
|
|||
|
||||
// SEE ALSO src/htmlindex/build FOR A G++ VERSION
|
||||
|
||||
#define GPP "g++"
|
||||
#define GCC "gcc"
|
||||
|
||||
// #define GPP "g++-4.5"
|
||||
// #define GCC "gcc-4.5"
|
||||
|
||||
void programs(int docs)
|
||||
{
|
||||
md("tmp/bin");
|
||||
|
@ -14,15 +23,15 @@ void programs(int docs)
|
|||
}
|
||||
|
||||
if (!exists("tmp/bin/paren"))
|
||||
run("g++ " CPPOPT " -o tmp/bin/paren src/paren/paren.cc -lbobcat -s");
|
||||
run(GPP " " CPPOPT " -o tmp/bin/paren src/paren/paren.cc -lbobcat -s");
|
||||
|
||||
if (!exists("tmp/bin/trim"))
|
||||
run("g++ " CPPOPT " -o tmp/bin/trim src/trim/trim.cc -s");
|
||||
run(GPP " " CPPOPT " -o tmp/bin/trim src/trim/trim.cc -s");
|
||||
|
||||
if (!exists("tmp/bin/tab"))
|
||||
{
|
||||
chdir("src/tab");
|
||||
run("gcc " COPT " -o ../../tmp/bin/tab *.c -lfl -s");
|
||||
run(GCC " " COPT " -o ../../tmp/bin/tab *.c -lfl -s");
|
||||
chdir("../../");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@ void setClasses()
|
|||
|
||||
|
||||
#define COMPILER "g++"
|
||||
// #define COMPILER "g++-4.5"
|
||||
|
||||
// COPT: the set of C-options
|
||||
#define COPT "--std=c++0x -Wall -g -O3 "
|
||||
|
@ -85,7 +86,7 @@ void parser()
|
|||
"grammar" younger "parser.cc"
|
||||
) // new parser needed
|
||||
{
|
||||
exec("bison++", "-d", "-o", "parser.cc", "grammar");
|
||||
exec("bisonc++", "-d", "-o", "parser.cc", "grammar");
|
||||
printf("Note: the compilation of parser.cc may produce "
|
||||
"several compiler warnings.\n");
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ guarantee could easily be built-in (cf. section ref(TEMPLIST)) it really isn't
|
|||
required as the compiler will detect whether there are indeed two arguments
|
||||
bing passed to tt(stringcasecmp), generating an error message if not. Here is
|
||||
tt(Binder2nd)'s implementation:
|
||||
verbinsert(BIND2ND)(classtemplates/examples/ptrfun.cc)
|
||||
verbinsert(BINDER2ND)(classtemplates/examples/ptrfun.cc)
|
||||
The program shown in section ref(ADAPTABLEFUN) remains unaltered but for
|
||||
the use of tt(bind2nd), which now becomes tt(Bind2nd):
|
||||
verb(
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
inline int stringcasecmp(string const &lhs, string const &rhs)
|
||||
inline int stringcasecmp(string lhs, string rhs)
|
||||
{
|
||||
return strcasecmp(lhs.c_str(), rhs.c_str());
|
||||
}
|
||||
|
|
|
@ -50,8 +50,8 @@ be rewritten to something like:
|
|||
}
|
||||
)
|
||||
|
||||
An interesting observation is that tlurl(www.sgi.com) provides an example of
|
||||
the use of tt(mem_fun) where polymorphic members are used. If
|
||||
An interesting observation is that tlurl(http://www.sgi.com) provides an
|
||||
example of the use of tt(mem_fun) where polymorphic members are used. If
|
||||
tt(Data::display) is a virtual member function and tt(Derived1) and
|
||||
tt(Derived2) (both derived from tt(Data)) provide their own implementations of
|
||||
tt(display), then pointers to tt(Derived1) and tt(Derived2) objects can be
|
||||
|
|
Loading…
Reference in a new issue