mirror of
https://github.com/vim/vim.git
synced 2025-11-14 23:04:02 -05:00
patch 9.1.1840: Generating prototype files does not work on all platforms
Problem: Generating prototype files does not work on all platforms
Solution: Rework prototypes generation using python instead of cproto,
enable it in CI to test it for each PR (Hirohito Higashi).
closes: #18045
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ce5f9f45af
commit
e7c765fe59
14
src/crypt.c
14
src/crypt.c
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
#include "vim.h"
|
||||
|
||||
#if defined(FEAT_CRYPT) || defined(PROTO)
|
||||
#if defined(FEAT_CRYPT)
|
||||
/*
|
||||
* Optional encryption support.
|
||||
* Mohsin Ahmed, mosh@sasi.com, 1998-09-24
|
||||
@@ -77,7 +77,7 @@ typedef struct {
|
||||
static int crypt_sodium_init_(cryptstate_T *state, char_u *key, crypt_arg_T *arg);
|
||||
static long crypt_sodium_buffer_decode(cryptstate_T *state, char_u *from, size_t len, char_u **buf_out, int last);
|
||||
static long crypt_sodium_buffer_encode(cryptstate_T *state, char_u *from, size_t len, char_u **buf_out, int last);
|
||||
# if defined(FEAT_SODIUM) || defined(PROTO)
|
||||
# if defined(FEAT_SODIUM)
|
||||
static void crypt_long_long_to_char(long long n, char_u *s);
|
||||
static void crypt_int_to_char(int n, char_u *s);
|
||||
static long long crypt_char_to_long_long(char_u *s);
|
||||
@@ -191,7 +191,7 @@ static cryptmethod_T cryptmethods[CRYPT_M_COUNT] = {
|
||||
// to avoid that a text file is recognized as encrypted.
|
||||
};
|
||||
|
||||
#if defined(FEAT_SODIUM) || defined(PROTO)
|
||||
#if defined(FEAT_SODIUM)
|
||||
typedef struct {
|
||||
size_t count;
|
||||
unsigned char key[crypto_box_SEEDBYTES];
|
||||
@@ -332,7 +332,7 @@ load_sodium(void)
|
||||
}
|
||||
# endif
|
||||
|
||||
# if defined(DYNAMIC_SODIUM) || defined(PROTO)
|
||||
# if defined(DYNAMIC_SODIUM)
|
||||
int
|
||||
sodium_enabled(int verbose)
|
||||
{
|
||||
@@ -437,7 +437,7 @@ crypt_get_header_len(int method_nr)
|
||||
}
|
||||
|
||||
|
||||
#if defined(FEAT_SODIUM) || defined(PROTO)
|
||||
#if defined(FEAT_SODIUM)
|
||||
/*
|
||||
* Get maximum crypt method specific length of the file header in bytes.
|
||||
*/
|
||||
@@ -1287,7 +1287,7 @@ crypt_sodium_buffer_decode(
|
||||
# endif
|
||||
}
|
||||
|
||||
# if defined(FEAT_SODIUM) || defined(PROTO)
|
||||
# if defined(FEAT_SODIUM)
|
||||
void
|
||||
crypt_sodium_lock_key(char_u *key)
|
||||
{
|
||||
@@ -1319,7 +1319,7 @@ crypt_sodium_randombytes_random(void)
|
||||
return randombytes_random();
|
||||
}
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
#if defined(FEAT_EVAL)
|
||||
static void
|
||||
crypt_sodium_report_hash_params(
|
||||
unsigned long long opslimit,
|
||||
|
||||
Reference in New Issue
Block a user