[hackers] [dwm] small fix of static function order

From: Anselm R. Garbe <garbeam_AT_gmail.com>
Date: Sat Aug 04 11:02:15 2007

changeset: 934:1e8e98b7544d
tag: tip
user: Anselm R. Garbe <garbeam_AT_gmail.com>
date: Sat Aug 04 10:57:56 2007 +0200
summary: small fix of static function order

diff -r f7619f63380a -r 1e8e98b7544d layout.c
--- a/layout.c Sat Aug 04 10:51:39 2007 +0200
+++ b/layout.c Sat Aug 04 10:57:56 2007 +0200
@@ -12,24 +12,6 @@ static double vratio = VRATIO;
 static double vratio = VRATIO;
 static unsigned int nlayouts = 0;
 static unsigned int nmaster = NMASTER;
-
-static void
-incratio(const char *arg, double *ratio, double def) {
- double delta;
-
- if(lt->arrange != tile)
- return;
- if(!arg)
- *ratio = def;
- else {
- if(1 == sscanf(arg, "%lf", &delta)) {
- if(delta + (*ratio) < .1 || delta + (*ratio) > 1.9)
- return;
- *ratio += delta;
- }
- }
- lt->arrange();
-}
 
 static double /* simple pow() */
 spow(double x, double y)
@@ -110,6 +92,24 @@ tile(void) {
 
 LAYOUTS
 
+static void
+incratio(const char *arg, double *ratio, double def) {
+ double delta;
+
+ if(lt->arrange != tile)
+ return;
+ if(!arg)
+ *ratio = def;
+ else {
+ if(1 == sscanf(arg, "%lf", &delta)) {
+ if(delta + (*ratio) < .1 || delta + (*ratio) > 1.9)
+ return;
+ *ratio += delta;
+ }
+ }
+ lt->arrange();
+}
+
 /* extern */
 
 void
Received on Sat Aug 04 2007 - 11:02:15 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:44 UTC