aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mbyte.h
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-10-12 16:56:52 +0200
committerGitHub <noreply@github.com>2021-10-12 07:56:52 -0700
commit40be47e0faef7aa015eb4ba44ceb1ee1a03e97cf (patch)
treec46f06f4c40d85e308017e379a97fd1aebcebef1 /src/nvim/mbyte.h
parentee342d3cef97aa2414c05261b448228ae3277862 (diff)
downloadrneovim-40be47e0faef7aa015eb4ba44ceb1ee1a03e97cf.tar.gz
rneovim-40be47e0faef7aa015eb4ba44ceb1ee1a03e97cf.tar.bz2
rneovim-40be47e0faef7aa015eb4ba44ceb1ee1a03e97cf.zip
refactor: format all C files under nvim/ #15977
* refactor: format all C files under nvim * refactor: disable formatting for Vim-owned files: * src/nvim/indent_c.c * src/nvim/regexp.c * src/nvim/regexp_nfa.c * src/nvim/testdir/samples/memfile_test.c
Diffstat (limited to 'src/nvim/mbyte.h')
-rw-r--r--src/nvim/mbyte.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/nvim/mbyte.h b/src/nvim/mbyte.h
index 536d58be1f..9926f27411 100644
--- a/src/nvim/mbyte.h
+++ b/src/nvim/mbyte.h
@@ -1,12 +1,12 @@
#ifndef NVIM_MBYTE_H
#define NVIM_MBYTE_H
-#include <stdint.h>
#include <stdbool.h>
+#include <stdint.h>
#include <string.h>
-#include "nvim/iconv.h"
#include "nvim/func_attr.h"
+#include "nvim/iconv.h"
#include "nvim/os/os_defs.h" // For indirect
#include "nvim/types.h" // for char_u
@@ -22,21 +22,21 @@
// max length of an unicode char
#define MB_MAXCHAR 6
-/* properties used in enc_canon_table[] (first three mutually exclusive) */
+// properties used in enc_canon_table[] (first three mutually exclusive)
#define ENC_8BIT 0x01
#define ENC_DBCS 0x02
#define ENC_UNICODE 0x04
-#define ENC_ENDIAN_B 0x10 /* Unicode: Big endian */
-#define ENC_ENDIAN_L 0x20 /* Unicode: Little endian */
+#define ENC_ENDIAN_B 0x10 // Unicode: Big endian
+#define ENC_ENDIAN_L 0x20 // Unicode: Little endian
-#define ENC_2BYTE 0x40 /* Unicode: UCS-2 */
-#define ENC_4BYTE 0x80 /* Unicode: UCS-4 */
-#define ENC_2WORD 0x100 /* Unicode: UTF-16 */
+#define ENC_2BYTE 0x40 // Unicode: UCS-2
+#define ENC_4BYTE 0x80 // Unicode: UCS-4
+#define ENC_2WORD 0x100 // Unicode: UTF-16
-#define ENC_LATIN1 0x200 /* Latin1 */
-#define ENC_LATIN9 0x400 /* Latin9 */
-#define ENC_MACROMAN 0x800 /* Mac Roman (not Macro Man! :-) */
+#define ENC_LATIN1 0x200 // Latin1
+#define ENC_LATIN9 0x400 // Latin9
+#define ENC_MACROMAN 0x800 // Mac Roman (not Macro Man! :-)
// TODO(bfredl): eventually we should keep only one of the namings
#define mb_ptr2len utfc_ptr2len
@@ -63,9 +63,9 @@ typedef enum {
typedef struct {
int vc_type; ///< Zero or more ConvFlags.
int vc_factor; ///< Maximal expansion factor.
-# ifdef HAVE_ICONV
+#ifdef HAVE_ICONV
iconv_t vc_fd; ///< Value for CONV_ICONV.
-# endif
+#endif
bool vc_fail; ///< What to do with invalid characters: if true, fail,
///< otherwise use '?'.
} vimconv_T;