Fix coding style

It was about damn time. Consistency is very important in such a
big codebase.
This commit is contained in:
FRIGN
2014-11-13 18:29:30 +01:00
committed by sin
parent e35d9e62a5
commit eee98ed3a4
70 changed files with 622 additions and 557 deletions

View File

@@ -3,6 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
#include "util.h"
typedef struct {
@@ -30,7 +31,7 @@ main(int argc, char *argv[])
ARGBEGIN {
case 't':
tabsize = estrtol(EARGF(usage()), 0);
if(tabsize <= 0)
if (tabsize <= 0)
eprintf("unexpand: invalid tabsize\n", argv[0]);
/* Fallthrough: -t implies -a */
case 'a':
@@ -84,12 +85,12 @@ unexpandspan(unsigned int n, unsigned int col)
{
unsigned int off = (col-n) % tabsize;
if(n + off >= tabsize && n > 1)
if (n + off >= tabsize && n > 1)
n += off;
for(; n >= tabsize; n -= tabsize)
for (; n >= tabsize; n -= tabsize)
out('\t');
while(n--)
while (n--)
out(' ');
}