瀏覽代碼

This is, of course, the neater and much more obvious way to do it.

tags/v0.9.3
Michael Brown 19 年之前
父節點
當前提交
ffe77e0683
共有 1 個檔案被更改,包括 3 行新增9 行删除
  1. 3
    9
      src/core/config.c

+ 3
- 9
src/core/config.c 查看文件

@@ -22,25 +22,19 @@
22 22
 
23 23
 #ifdef BUILD_SERIAL
24 24
 #include "config/.buildserial.h"
25
-#define BUILD_SERIAL_STR "#" XSTR(BUILD_SERIAL_NUM)
25
+#define BUILD_SERIAL_STR " #" XSTR(BUILD_SERIAL_NUM)
26 26
 #else
27 27
 #define BUILD_SERIAL_STR ""
28 28
 #endif
29 29
 
30 30
 #ifdef BUILD_ID
31
-#define BUILD_ID_STR BUILD_ID
31
+#define BUILD_ID_STR " " BUILD_ID
32 32
 #else
33 33
 #define BUILD_ID_STR ""
34 34
 #endif
35 35
 
36
-#if defined(BUILD_ID) && defined(BUILD_SERIAL)
37
-#define BUILD_SPACER " "
38
-#else
39
-#define BUILD_SPACER ""
40
-#endif
41
-
42 36
 #if defined(BUILD_ID) || defined(BUILD_SERIAL)
43
-#define BUILD_STRING " [build " BUILD_ID_STR BUILD_SPACER BUILD_SERIAL_STR "]"
37
+#define BUILD_STRING " [build" BUILD_ID_STR BUILD_SERIAL_STR "]"
44 38
 #else
45 39
 #define BUILD_STRING ""
46 40
 #endif

Loading…
取消
儲存