summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
authorxHire <xhire@tuxportal.cz>2009-05-26 01:01:17 +0200
committerxHire <xhire@tuxportal.cz>2009-05-26 01:12:24 +0200
commitdaa5951908a7228f88cfd1cbf1f0353389d98758 (patch)
tree462b1d69a3d3ab573df213017f2cb09f1a2157ba /src/base
parent53fdb78257cd4bf454f255deede74d8e98e752fb (diff)
Rectified the coding style in path.h.in
Fixed some old comments (//) and whitespace
Diffstat (limited to 'src/base')
-rw-r--r--src/base/path.h.in57
1 files changed, 31 insertions, 26 deletions
diff --git a/src/base/path.h.in b/src/base/path.h.in
index 7e3a7a6..afa4161 100644
--- a/src/base/path.h.in
+++ b/src/base/path.h.in
@@ -1,27 +1,32 @@
#ifndef PATH_H
- #cmakedefine USE_MAGICK
- #define TUXANCI_VERSION "@TUXANCI_VERSION@"
- #define PATH_H
- #define PREFIX "@CMAKE_INSTALL_PREFIX@"
- #ifdef PUBLIC_SERVER
- #define APPNAME "tuxanci-server"
- #define SERVER_CONFIG "@CMAKE_CONF_PATH@" "/" APPNAME "/server.conf"
- #else
- #define APPNAME "tuxanci"
- #endif
- #define PATH_DIR "@CMAKE_DATA_PATH@" "/" APPNAME "/"
- // windows bug
- #ifndef __WIN32__
- #define PATH_MODULES "@LIB_INSTALL_DIR@" "/" APPNAME "/"
- #else
- #define PATH_MODULES PREFIX
- #endif
- #define PATH_IMAGE PATH_DIR "images/"
- #define PATH_ARENA PATH_DIR "arena/"
- #define PATH_SOUND PATH_DIR "sound/"
- #define PATH_MUSIC PATH_DIR "music/"
- #define PATH_LOCALE "@CMAKE_LOCALE_PATH@" "/"
- #define PATH_DOC "@CMAKE_DOC_PATH@" "/"
- #define PACKAGE "tuxanci"
- #include "main.h"
-#endif
+#define PATH_H
+
+#include "main.h"
+
+#cmakedefine USE_MAGICK
+#define TUXANCI_VERSION "@TUXANCI_VERSION@"
+#define PREFIX "@CMAKE_INSTALL_PREFIX@"
+#ifndef PUBLIC_SERVER
+ #define APPNAME "tuxanci"
+#else /* PUBLIC_SERVER */
+ #define APPNAME "tuxanci-server"
+ #define SERVER_CONFIG "@CMAKE_CONF_PATH@" "/" APPNAME "/server.conf"
+#endif /* PUBLIC_SERVER */
+#define PATH_DIR "@CMAKE_DATA_PATH@" "/" APPNAME "/"
+
+/* windows bug */
+#ifndef __WIN32__
+ #define PATH_MODULES "@LIB_INSTALL_DIR@" "/" APPNAME "/"
+#else /* __WIN32__ */
+ #define PATH_MODULES PREFIX
+#endif /* __WIN32__ */
+
+#define PATH_IMAGE PATH_DIR "images/"
+#define PATH_ARENA PATH_DIR "arena/"
+#define PATH_SOUND PATH_DIR "sound/"
+#define PATH_MUSIC PATH_DIR "music/"
+#define PATH_LOCALE "@CMAKE_LOCALE_PATH@" "/"
+#define PATH_DOC "@CMAKE_DOC_PATH@" "/"
+#define PACKAGE "tuxanci"
+
+#endif /* PATH_H */