all repos — fluxbox @ b8a39c1e6c3fd7d21188193cdb874da474149d33

custom fork of the fluxbox windowmanager

stringstream header
fluxgen fluxgen
commit

b8a39c1e6c3fd7d21188193cdb874da474149d33

parent

e822437cb8c23c5e7539fa168ef5a22bc9bb08a1

1 files changed, 3 insertions(+), 15 deletions(-)

jump to
M src/ClientPattern.ccsrc/ClientPattern.cc

@@ -25,8 +25,10 @@

#include "ClientPattern.hh" #include "RegExp.hh" #include "WinClient.hh" + #include "FbTk/StringUtil.hh" #include "FbTk/App.hh" +#include "FbTk/stringstream.hh" // use GNU extensions #ifndef _GNU_SOURCE

@@ -46,20 +48,6 @@ #endif

// needed as well for index on some systems (e.g. solaris) #include <strings.h> - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif // HAVE_CONFIG_H - -#ifdef HAVE_SSTREAM -#include <sstream> -#define FB_istringstream istringstream -#elif HAVE_STRSTREAM -#include <strstream> -#define FB_istringstream istrstream -#else -#error "You dont have sstream or strstream headers!" -#endif // HAVE_STRSTREAM using namespace std;

@@ -141,7 +129,7 @@ err = FbTk::StringUtil::getStringBetween(number,

str+pos, '{', '}'); if (err > 0) { - FB_istringstream iss(number.c_str()); + FbTk_istringstream iss(number.c_str()); iss >> m_matchlimit; pos+=err; }