# usage with curfloo-0.76b from http://www.jfcinnovations.com/curfloo # cd curfloo-0.76b && patch -p1 < /path/to/thisfile(curfloo-gcc3.1-partial.patch) diff -ur curfloo-0.76c.original/CFStatusBar.H curfloo-0.76c/CFStatusBar.H --- curfloo-0.76c.original/CFStatusBar.H Sun Aug 20 15:23:46 2000 +++ curfloo-0.76c/CFStatusBar.H Thu May 23 11:03:04 2002 @@ -4,6 +4,8 @@ #include "Widget.H" #include +using namespace std; + class CFStatusBar: public Widget { public: CFStatusBar(int wdth); diff -ur curfloo-0.76c.original/Logger.C curfloo-0.76c/Logger.C --- curfloo-0.76c.original/Logger.C Fri Aug 18 18:20:44 2000 +++ curfloo-0.76c/Logger.C Thu May 23 10:45:47 2002 @@ -4,7 +4,7 @@ #include #include -Logger:: Logger(int level=1, const char *fname=NULL, const char *loc="", const char *suffix="") { +Logger:: Logger(int level, const char *fname, const char *loc, const char *suffix) { int len; char diff -ur curfloo-0.76c.original/MenuBar.C curfloo-0.76c/MenuBar.C --- curfloo-0.76c.original/MenuBar.C Fri Aug 18 18:20:44 2000 +++ curfloo-0.76c/MenuBar.C Thu May 23 11:02:23 2002 @@ -156,7 +156,7 @@ } int MenuBar::addMenu(string name, Menu *wgt, Char activator, - bool alignright=false) { + bool alignright) { int rv; if (((*wgt).height()+1) > _height) { _height=(*wgt).height()+1; diff -ur curfloo-0.76c.original/Socket.H curfloo-0.76c/Socket.H --- curfloo-0.76c.original/Socket.H Fri Aug 18 18:20:48 2000 +++ curfloo-0.76c/Socket.H Thu May 23 10:46:53 2002 @@ -8,6 +8,8 @@ #include #include +using namespace std; + class Socket { public: Socket(const string &host,unsigned short port, long flags=0L); diff -ur curfloo-0.76c.original/StrList.H curfloo-0.76c/StrList.H --- curfloo-0.76c.original/StrList.H Sun Aug 20 16:53:44 2000 +++ curfloo-0.76c/StrList.H Thu May 23 10:47:27 2002 @@ -5,6 +5,8 @@ #include #include +using namespace std; + class StrList { public: StrList(bool sort=true); diff -ur curfloo-0.76c.original/StrUtil.H curfloo-0.76c/StrUtil.H --- curfloo-0.76c.original/StrUtil.H Sun Dec 9 17:13:35 2001 +++ curfloo-0.76c/StrUtil.H Thu May 23 10:47:55 2002 @@ -3,6 +3,8 @@ #include +using namespace std; + class StrUtil { public: int grep(const string &pattern, const string &str); diff -ur curfloo-0.76c.original/Text.C curfloo-0.76c/Text.C --- curfloo-0.76c.original/Text.C Fri Aug 18 18:20:44 2000 +++ curfloo-0.76c/Text.C Thu May 23 11:24:14 2002 @@ -125,7 +125,7 @@ return (setText(rstr,maxlen,bow)); } -Text Text::chop(unsigned int col, bool bow=false, bool skipnl=true) { +Text Text::chop(unsigned int col, bool bow, bool skipnl) { Text // f, tmp; @@ -148,7 +148,7 @@ } if (bound) { vector::iterator - hack= &_txt[bound]; + hack= _txt.begin() + bound; for (vector::iterator i=hack; i < _txt.end(); i++) { tmp._txt.push_back(*i); } @@ -172,7 +172,7 @@ bound=col; } vector::iterator - hack= &_txt[bound]; + hack= _txt.begin() + bound; for (vector::iterator i=hack; i < _txt.end(); i++) { tmp._txt.push_back(*i); } @@ -194,7 +194,7 @@ } tlock(); vector::iterator - hack= &_txt[col]; + hack= _txt.begin() + col; _txt.insert(hack,c); if (c.getSymbol() == '\n') _lines++; @@ -208,7 +208,7 @@ return -1; tlock(); vector::iterator - hack= &_txt[col]; + hack= _txt.begin() + col; if (((*hack).getSymbol()=='\n') && (c.getSymbol()!='\n')) _lines--; if (((*hack).getSymbol()!='\n') && (c.getSymbol()=='\n')) @@ -224,7 +224,7 @@ return -1; tlock(); vector::iterator - hack= &_txt[col]; + hack= _txt.begin() + col; _txt.erase(hack); _lines=1; tunlock(); Only in curfloo-0.76c: Text.C~ diff -ur curfloo-0.76c.original/Text.H curfloo-0.76c/Text.H --- curfloo-0.76c.original/Text.H Sun Dec 9 17:13:48 2001 +++ curfloo-0.76c/Text.H Thu May 23 10:49:14 2002 @@ -8,6 +8,8 @@ #include #include +using namespace std; + class Text: public Widget { public: Text(const char *str=NULL,unsigned int maxlen=0, bool bow=false); diff -ur curfloo-0.76c.original/WidgetList.H curfloo-0.76c/WidgetList.H --- curfloo-0.76c.original/WidgetList.H Fri Aug 18 18:20:48 2000 +++ curfloo-0.76c/WidgetList.H Thu May 23 11:01:48 2002 @@ -6,6 +6,8 @@ #include #include "Widget.H" +using namespace std; + typedef struct widdata_ { Widget *widp; string name; diff -ur curfloo-0.76c.original/Window.C curfloo-0.76c/Window.C --- curfloo-0.76c.original/Window.C Mon Aug 21 16:39:26 2000 +++ curfloo-0.76c/Window.C Thu May 23 11:02:44 2002 @@ -153,7 +153,7 @@ return (_widlist.remove(name)); } -const Widget *Window::get(unsigned int idx=0) { +const Widget *Window::get(unsigned int idx) { return (_widlist.get(idx)); } diff -ur curfloo-0.76c.original/YahooPacket.H curfloo-0.76c/YahooPacket.H --- curfloo-0.76c.original/YahooPacket.H Sat Sep 16 19:31:03 2000 +++ curfloo-0.76c/YahooPacket.H Thu May 23 10:48:34 2002 @@ -35,6 +35,8 @@ pkt_grafiti = 0x00000080 }; +using namespace std; + class YahooPacket { public: YahooPacket(yhPacketType ptype=pkt_undefined,