mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 07:41:27 +00:00
eval: Split eval.c into smaller files
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/iconv.h"
|
||||
|
||||
/*
|
||||
* Return byte length of character that starts with byte "b".
|
||||
* Returns 1 for a single-byte character.
|
||||
@@ -40,6 +42,27 @@
|
||||
#define mb_ptr2char utf_ptr2char
|
||||
#define mb_head_off utf_head_off
|
||||
|
||||
/// Flags for vimconv_T
|
||||
typedef enum {
|
||||
CONV_NONE = 0,
|
||||
CONV_TO_UTF8 = 1,
|
||||
CONV_9_TO_UTF8 = 2,
|
||||
CONV_TO_LATIN1 = 3,
|
||||
CONV_TO_LATIN9 = 4,
|
||||
CONV_ICONV = 5,
|
||||
} ConvFlags;
|
||||
|
||||
/// Structure used for string conversions
|
||||
typedef struct {
|
||||
int vc_type; ///< Zero or more ConvFlags.
|
||||
int vc_factor; ///< Maximal expansion factor.
|
||||
# ifdef USE_ICONV
|
||||
iconv_t vc_fd; ///< Value for CONV_ICONV.
|
||||
# endif
|
||||
bool vc_fail; ///< What to do with invalid characters: if true, fail,
|
||||
///< otherwise use '?'.
|
||||
} vimconv_T;
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "mbyte.h.generated.h"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user