minor style issues

This commit is contained in:
fluxgen 2002-08-02 13:00:23 +00:00
parent c28bd74feb
commit 82d7a8d13d

View file

@ -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
@ -62,9 +62,7 @@
#include <X11/extensions/shape.h>
#endif // SHAPE
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif // HAVE_STDIO_H
#include <cstdio>
#ifdef STDC_HEADERS
#include <stdlib.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"