Reordered base64_encodedstate members by size, reordered assignments to state struct by member order
This commit is contained in:
parent
a4220df30c
commit
b10aa30f9b
2
external/libb64-1.2.1/include/b64/cencode.h
vendored
2
external/libb64-1.2.1/include/b64/cencode.h
vendored
@ -22,8 +22,8 @@ typedef struct
|
|||||||
{
|
{
|
||||||
base64_encodeflags flags;
|
base64_encodeflags flags;
|
||||||
base64_encodestep step;
|
base64_encodestep step;
|
||||||
char result;
|
|
||||||
int stepcount;
|
int stepcount;
|
||||||
|
char result;
|
||||||
} base64_encodestate;
|
} base64_encodestate;
|
||||||
|
|
||||||
void base64_init_encodestate(base64_encodestate* state_in);
|
void base64_init_encodestate(base64_encodestate* state_in);
|
||||||
|
8
external/libb64-1.2.1/src/cencode.c
vendored
8
external/libb64-1.2.1/src/cencode.c
vendored
@ -13,8 +13,8 @@ void base64_init_encodestate(base64_encodestate* state_in)
|
|||||||
{
|
{
|
||||||
state_in->flags = 0;
|
state_in->flags = 0;
|
||||||
state_in->step = step_A;
|
state_in->step = step_A;
|
||||||
state_in->result = 0;
|
|
||||||
state_in->stepcount = 0;
|
state_in->stepcount = 0;
|
||||||
|
state_in->result = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char base64_encode_value(char value_in)
|
char base64_encode_value(char value_in)
|
||||||
@ -41,8 +41,8 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out,
|
|||||||
case step_A:
|
case step_A:
|
||||||
if (plainchar == plaintextend)
|
if (plainchar == plaintextend)
|
||||||
{
|
{
|
||||||
state_in->result = result;
|
|
||||||
state_in->step = step_A;
|
state_in->step = step_A;
|
||||||
|
state_in->result = result;
|
||||||
return codechar - code_out;
|
return codechar - code_out;
|
||||||
}
|
}
|
||||||
fragment = *plainchar++;
|
fragment = *plainchar++;
|
||||||
@ -52,8 +52,8 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out,
|
|||||||
case step_B:
|
case step_B:
|
||||||
if (plainchar == plaintextend)
|
if (plainchar == plaintextend)
|
||||||
{
|
{
|
||||||
state_in->result = result;
|
|
||||||
state_in->step = step_B;
|
state_in->step = step_B;
|
||||||
|
state_in->result = result;
|
||||||
return codechar - code_out;
|
return codechar - code_out;
|
||||||
}
|
}
|
||||||
fragment = *plainchar++;
|
fragment = *plainchar++;
|
||||||
@ -63,8 +63,8 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out,
|
|||||||
case step_C:
|
case step_C:
|
||||||
if (plainchar == plaintextend)
|
if (plainchar == plaintextend)
|
||||||
{
|
{
|
||||||
state_in->result = result;
|
|
||||||
state_in->step = step_C;
|
state_in->step = step_C;
|
||||||
|
state_in->result = result;
|
||||||
return codechar - code_out;
|
return codechar - code_out;
|
||||||
}
|
}
|
||||||
fragment = *plainchar++;
|
fragment = *plainchar++;
|
||||||
|
Loading…
Reference in New Issue
Block a user