summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-08-04 10:57:56 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-08-04 10:57:56 +0200
commitda91dfc948e3c66ac491bbdd1424a33aadbb5265 (patch)
treeac71659fffb52e1eb1b9df0fa020d433d7ee7fce
parentI introduced {H,V}RATIO and inc{h,v,}ratio() functions - the default behaves ... (diff)
downloaddwm-da91dfc948e3c66ac491bbdd1424a33aadbb5265.tar.gz
dwm-da91dfc948e3c66ac491bbdd1424a33aadbb5265.zip
small fix of static function order
-rw-r--r--layout.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/layout.c b/layout.c
index fa7b4eb..b475d35 100644
--- a/layout.c
+++ b/layout.c
@@ -13,24 +13,6 @@ static double vratio = VRATIO;
13static unsigned int nlayouts = 0; 13static unsigned int nlayouts = 0;
14static unsigned int nmaster = NMASTER; 14static unsigned int nmaster = NMASTER;
15 15
16static void
17incratio(const char *arg, double *ratio, double def) {
18 double delta;
19
20 if(lt->arrange != tile)
21 return;
22 if(!arg)
23 *ratio = def;
24 else {
25 if(1 == sscanf(arg, "%lf", &delta)) {
26 if(delta + (*ratio) < .1 || delta + (*ratio) > 1.9)
27 return;
28 *ratio += delta;
29 }
30 }
31 lt->arrange();
32}
33
34static double /* simple pow() */ 16static double /* simple pow() */
35spow(double x, double y) 17spow(double x, double y)
36{ 18{
@@ -110,6 +92,24 @@ tile(void) {
110 92
111LAYOUTS 93LAYOUTS
112 94
95static void
96incratio(const char *arg, double *ratio, double def) {
97 double delta;
98
99 if(lt->arrange != tile)
100 return;
101 if(!arg)
102 *ratio = def;
103 else {
104 if(1 == sscanf(arg, "%lf", &delta)) {
105 if(delta + (*ratio) < .1 || delta + (*ratio) > 1.9)
106 return;
107 *ratio += delta;
108 }
109 }
110 lt->arrange();
111}
112
113/* extern */ 113/* extern */
114 114
115void 115void