small fix of static function order
da91dfc9
1 file(s) · +18 −18
| 13 | 13 | static unsigned int nlayouts = 0; |
|
| 14 | 14 | static unsigned int nmaster = NMASTER; |
|
| 15 | 15 | ||
| 16 | - | static void |
|
| 17 | - | incratio(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 | - | ||
| 34 | 16 | static double /* simple pow() */ |
|
| 35 | 17 | spow(double x, double y) |
|
| 36 | 18 | { |
|
| 109 | 91 | } |
|
| 110 | 92 | ||
| 111 | 93 | LAYOUTS |
|
| 94 | + | ||
| 95 | + | static void |
|
| 96 | + | incratio(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 | 112 | ||
| 113 | 113 | /* extern */ |
|
| 114 | 114 | ||