all repos — dwm @ da91dfc948e3c66ac491bbdd1424a33aadbb5265

my dwm build

small fix of static function order
Anselm R. Garbe garbeam@gmail.com
Sat, 04 Aug 2007 10:57:56 +0200
commit

da91dfc948e3c66ac491bbdd1424a33aadbb5265

parent

4135e34dfa61d32625ef20e8e38064b465402f4a

1 files changed, 18 insertions(+), 18 deletions(-)

jump to
M layout.clayout.c

@@ -13,24 +13,6 @@ 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) {

@@ -109,6 +91,24 @@ restack();

} 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 */