1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

clang format apply

This commit is contained in:
Leonid Fedorov
2022-01-21 16:43:49 +00:00
parent 6b6411229f
commit 04752ec546
1376 changed files with 393460 additions and 412662 deletions

View File

@ -3,8 +3,10 @@
//#include "my_global.h"
/* Macros to make switching between C and C++ mode easier */
#ifdef __cplusplus
#define C_MODE_START extern "C" {
#define C_MODE_END }
#define C_MODE_START \
extern "C" \
{
#define C_MODE_END }
#else
#define C_MODE_START
#define C_MODE_END
@ -13,26 +15,31 @@
namespace funcexp
{
class SQL_CRYPT
{
struct my_rnd_struct rand,org_rand;
char decode_buff[256],encode_buff[256];
struct my_rnd_struct rand, org_rand;
char decode_buff[256], encode_buff[256];
uint shift;
public:
SQL_CRYPT() {}
SQL_CRYPT(ulong *seed)
SQL_CRYPT()
{
}
SQL_CRYPT(ulong* seed)
{
init(seed);
}
~SQL_CRYPT() {}
void init(ulong *seed);
void reinit() { shift=0; rand=org_rand; }
void encode(char *str, uint length);
void decode(char *str, uint length);
~SQL_CRYPT()
{
}
void init(ulong* seed);
void reinit()
{
shift = 0;
rand = org_rand;
}
void encode(char* str, uint length);
void decode(char* str, uint length);
};
}
} // namespace funcexp