home · contact · privacy
Moved window configuration files into their own config/windows/ subdirectory.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 29 Aug 2013 22:57:33 +0000 (00:57 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 29 Aug 2013 22:57:33 +0000 (00:57 +0200)
12 files changed:
config/Win_Info [deleted file]
config/Win_Keys [deleted file]
config/Win_Log [deleted file]
config/Win_Map [deleted file]
config/toggle_win_order [deleted file]
config/windows/Info [new file with mode: 0644]
config/windows/Keys [new file with mode: 0644]
config/windows/Log [new file with mode: 0644]
config/windows/Map [new file with mode: 0644]
config/windows/toggle_order [new file with mode: 0644]
src/wincontrol.c
src/wincontrol.h

diff --git a/config/Win_Info b/config/Win_Info
deleted file mode 100644 (file)
index 5ebcc55..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-3
-20
diff --git a/config/Win_Keys b/config/Win_Keys
deleted file mode 100644 (file)
index 8defa01..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-0
-29
diff --git a/config/Win_Log b/config/Win_Log
deleted file mode 100644 (file)
index 245603a..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
--4
-20
diff --git a/config/Win_Map b/config/Win_Map
deleted file mode 100644 (file)
index 7ed456a..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-0
--51
diff --git a/config/toggle_win_order b/config/toggle_win_order
deleted file mode 100644 (file)
index 0b431e9..0000000
+++ /dev/null
@@ -1 +0,0 @@
-kmil
diff --git a/config/windows/Info b/config/windows/Info
new file mode 100644 (file)
index 0000000..5ebcc55
--- /dev/null
@@ -0,0 +1,2 @@
+3
+20
diff --git a/config/windows/Keys b/config/windows/Keys
new file mode 100644 (file)
index 0000000..8defa01
--- /dev/null
@@ -0,0 +1,2 @@
+0
+29
diff --git a/config/windows/Log b/config/windows/Log
new file mode 100644 (file)
index 0000000..245603a
--- /dev/null
@@ -0,0 +1,2 @@
+-4
+20
diff --git a/config/windows/Map b/config/windows/Map
new file mode 100644 (file)
index 0000000..7ed456a
--- /dev/null
@@ -0,0 +1,2 @@
+0
+-51
diff --git a/config/windows/toggle_order b/config/windows/toggle_order
new file mode 100644 (file)
index 0000000..0b431e9
--- /dev/null
@@ -0,0 +1 @@
+kmil
index 4ebf9ef666a308d9fb6c5c5c94b3be8f9cfd7eee..f4861d833c6869bc46947a5b3beb5c22651bd749 100644 (file)
@@ -19,7 +19,7 @@ extern struct Win init_win_from_file(struct World * world, char * w_name,
                                      void (* f) (struct Win *))
 {
     char * err = "Trouble in init_win_from_file() with malloc().";
-    char * prefix = "config/Win_";
+    char * prefix = "config/windows/";
     uint8_t size = strlen(prefix) + strlen(w_name) + 1;
     char * path = malloc(size);
     exit_err(NULL == path, world, err);
@@ -51,7 +51,7 @@ extern void sorted_wintoggle(struct World * world)
 {
     char * err = "Trouble in sorted_wintoggle() with fopen() on file "
                  "'config/toggle_win_order'.";
-    FILE * file = fopen("config/toggle_win_order", "r");
+    FILE * file = fopen("config/windows/toggle_order", "r");
     exit_err(NULL == file, world, err);
     uint16_t linemax;
     textfile_sizes(file, &linemax, NULL);
index 33c3b76f397296f1fd2774245c2b7d297c3bd749..ba81ea36275bd3041f102ac62cc1fd13add04cd2 100644 (file)
@@ -17,7 +17,7 @@ struct World;
 
 
 /* Wrapper around init_win() that reads the desired window size from a file
- * at the path prefixing the provided win name "w_name" with "config/Win_".
+ * at the path prefixing the provided win name "w_name" with "config/windows/".
  * "f" is the window drawing function (Win._draw()).
  */
 extern struct Win init_win_from_file(struct World * world, char * w_name,
@@ -27,8 +27,8 @@ extern struct Win init_win_from_file(struct World * world, char * w_name,
 
 
 /* Toggle windows in world->wins in the order desribed by the first line of
- * config/toggled_win_order, wherein each character may correspond to one
- * hardcoded window.
+ * config/windows/toggled_win_order, wherein each character may correspond to
+ * one hardcoded window.
  */
 extern void sorted_wintoggle(struct World * world);