Fwd: [Ctool-develop] little fixes
Brought to you by:
flisakow
From: Shaun F. <fli...@so...> - 2003-07-31 19:19:02
|
Stefan, As Steven noted, these have already been fixed on the CVS head. I was able to update fine from sf.net's just now - what kind of troubles are you experiencing? printType: cout -> out FunctionType() constructor - default initializer is commented out StringConstant - uses std:: already I guess perhaps a new bug-fix release is overdue if the released code still has these issues. Thanks, Shaun On Thursday, July 31, 2003, at 08:19 AM, Stefan Seefeld wrote: > hi there, > > trying to compile the ctool code with gcc 3.2, I run into two > minor issues with missing 'std::' prefixes and a redundant > default initializer. The patches are appended. (the diff is > against the latest release (2.11), as sf.net's cvs service > isn't working properly (sigh). > > Regards, > Stefan > --- src/decl.cpp,orig 2002-03-31 19:29:44.000000000 -0500 > +++ src/decl.cpp 2003-07-31 11:09:43.000000000 -0400 > @@ -128,7 +128,7 @@ > printBase(out,level); > > if (name != NULL) > - cout << " "; > + std::cout << " "; > } > > printBefore(out,name,level); > @@ -630,7 +630,7 @@ > } > > // o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o > -FunctionType::FunctionType(Decl *args_list = NULL) > +FunctionType::FunctionType(Decl *args_list) > : Type(TT_Function), KnR_decl(false), nArgs(0), size(0), > args(NULL), subType(NULL) > { > addArgs (args_list); > --- src/lexer.l,orig 2002-03-31 19:28:08.000000000 -0500 > +++ src/lexer.l 2003-07-31 11:10:19.000000000 -0400 > @@ -577,7 +577,7 @@ > LAST_STATE(); > *tokn_ptr = '\0'; > lvalp->consValue = > - new > StringConstant(string(tokn_buff,tokn_ptr-tokn_buff),HERE,isWide); > + new > StringConstant(std::string(tokn_buff,tokn_ptr-tokn_buff),HERE,isWide); > return(err_tok = STRING); > } > |