summaryrefslogtreecommitdiffstats
path: root/usr.bin/sort/bwstring.h
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-04-30 20:39:08 +0000
committerpfg <pfg@FreeBSD.org>2014-04-30 20:39:08 +0000
commit2372623c9c03f071c3c235fceb736421d940c993 (patch)
tree33c4fc724ead781b44a9d065302cf36bcd8395a1 /usr.bin/sort/bwstring.h
parente6ff96679cf00be340be4fc5e7ccde495f96938d (diff)
downloadFreeBSD-src-2372623c9c03f071c3c235fceb736421d940c993.zip
FreeBSD-src-2372623c9c03f071c3c235fceb736421d940c993.tar.gz
MFC r264581, r264744:
Various style(9) fixes and typos in printf, grep, sort and patch. #define should be followed by a tab.
Diffstat (limited to 'usr.bin/sort/bwstring.h')
-rw-r--r--usr.bin/sort/bwstring.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/sort/bwstring.h b/usr.bin/sort/bwstring.h
index 93098f3..7402ec6 100644
--- a/usr.bin/sort/bwstring.h
+++ b/usr.bin/sort/bwstring.h
@@ -28,7 +28,7 @@
*/
#if !defined(__BWSTRING_H__)
-#define __BWSTRING_H__
+#define __BWSTRING_H__
#include <stdbool.h>
#include <stdio.h>
@@ -41,7 +41,7 @@
extern bool byte_sort;
/* wchar_t is of 4 bytes: */
-#define SIZEOF_WCHAR_STRING(LEN) ((LEN)*sizeof(wchar_t))
+#define SIZEOF_WCHAR_STRING(LEN) ((LEN)*sizeof(wchar_t))
/*
* Binary "wide" string
@@ -64,7 +64,7 @@ struct reader_buffer
typedef void *bwstring_iterator;
-#define BWSLEN(s) ((s)->len)
+#define BWSLEN(s) ((s)->len)
struct bwstring *bwsalloc(size_t sz);
@@ -135,7 +135,7 @@ bws_get_iter_value(bwstring_iterator iter)
int
bws_iterator_cmp(bwstring_iterator iter1, bwstring_iterator iter2, size_t len);
-#define BWS_GET(bws, pos) ((MB_CUR_MAX == 1) ? ((bws)->data.cstr[(pos)]) : (bws)->data.wstr[(pos)])
+#define BWS_GET(bws, pos) ((MB_CUR_MAX == 1) ? ((bws)->data.cstr[(pos)]) : (bws)->data.wstr[(pos)])
void initialise_months(void);
OpenPOWER on IntegriCloud