From 82d7a8d13dfb3c6ae85c87d7846c70112b7f15ab Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 2 Aug 2002 13:00:23 +0000 Subject: minor style issues --- src/fluxbox.cc | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 7e60062..6338f11 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.62 2002/07/14 01:00:23 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.63 2002/08/02 13:00:23 fluxgen Exp $ //Use GNU extensions #ifndef _GNU_SOURCE @@ -58,38 +58,36 @@ #include #include -#ifdef SHAPE +#ifdef SHAPE #include #endif // SHAPE -#ifdef HAVE_STDIO_H -# include -#endif // HAVE_STDIO_H +#include -#ifdef STDC_HEADERS -# include -# include +#ifdef STDC_HEADERS +#include +#include #endif // STDC_HEADERS -#ifdef HAVE_UNISTD_H -# include -# include +#ifdef HAVE_UNISTD_H +#include +#include #endif // HAVE_UNISTD_H -#ifdef HAVE_SYS_PARAM_H -# include +#ifdef HAVE_SYS_PARAM_H +#include #endif // HAVE_SYS_PARAM_H #ifndef MAXPATHLEN #define MAXPATHLEN 255 #endif // MAXPATHLEN -#ifdef HAVE_SYS_SELECT_H -# include +#ifdef HAVE_SYS_SELECT_H +#include #endif // HAVE_SYS_SELECT_H -#ifdef HAVE_SIGNAL_H -# include +#ifdef HAVE_SIGNAL_H +#include #endif // HAVE_SIGNAL_H #ifdef HAVE_SYS_SIGNAL_H @@ -124,14 +122,20 @@ using namespace std; #ifndef HAVE_BASENAME -static inline char *basename (char *); -static inline char *basename (char *s) { +namespace { + +char *basename (char *s) { char *save = s; - while (*s) if (*s++ == '/') save = s; + while (*s) { + if (*s++ == '/') + save = s; + } return save; } +}; + #endif // HAVE_BASENAME #define RC_PATH "fluxbox" -- cgit v0.11.2