Browse code

Allow customization of config.h via config.def.h

John Hawthorn authored on 07/11/2015 09:37:03
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-#define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW
2
-
3
-#define SCORE_GAP_LEADING -0.005
4
-#define SCORE_GAP_TRAILING -0.005
5
-#define SCORE_GAP_INNER -0.01
6
-#define SCORE_MATCH_CONSECUTIVE 1.0
7
-#define SCORE_MATCH_SLASH 0.9
8
-#define SCORE_MATCH_WORD 0.8
9
-#define SCORE_MATCH_CAPITAL 0.7
10
-#define SCORE_MATCH_DOT 0.6
Browse code

Apply clang-format to all files

Apologies that this uses my preferred formatting style: mostly the same
as Linux, but without a break between function and brace. Adds spaces in
a few places they weren't before.

John Hawthorn authored on 07/11/2015 05:45:02
Showing 1 changed files
... ...
@@ -1,10 +1,10 @@
1 1
 #define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW
2 2
 
3
-#define SCORE_GAP_LEADING      -0.005
4
-#define SCORE_GAP_TRAILING     -0.005
5
-#define SCORE_GAP_INNER        -0.01
3
+#define SCORE_GAP_LEADING -0.005
4
+#define SCORE_GAP_TRAILING -0.005
5
+#define SCORE_GAP_INNER -0.01
6 6
 #define SCORE_MATCH_CONSECUTIVE 1.0
7
-#define SCORE_MATCH_SLASH       0.9
8
-#define SCORE_MATCH_WORD        0.8
9
-#define SCORE_MATCH_CAPITAL     0.7
10
-#define SCORE_MATCH_DOT         0.6
7
+#define SCORE_MATCH_SLASH 0.9
8
+#define SCORE_MATCH_WORD 0.8
9
+#define SCORE_MATCH_CAPITAL 0.7
10
+#define SCORE_MATCH_DOT 0.6
Browse code

Move scoring constants into config.h

John Hawthorn authored on 19/09/2014 00:28:21
Showing 1 changed files
... ...
@@ -1 +1,10 @@
1 1
 #define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW
2
+
3
+#define SCORE_GAP_LEADING      -0.005
4
+#define SCORE_GAP_TRAILING     -0.005
5
+#define SCORE_GAP_INNER        -0.01
6
+#define SCORE_MATCH_CONSECUTIVE 1.0
7
+#define SCORE_MATCH_SLASH       0.9
8
+#define SCORE_MATCH_WORD        0.8
9
+#define SCORE_MATCH_CAPITAL     0.7
10
+#define SCORE_MATCH_DOT         0.6
Browse code

Add config.h

John Hawthorn authored on 17/09/2014 01:41:49
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1 @@
1
+#define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW