mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 05:06:49 +03:00
Do not indent goto labels
This commit is contained in:
parent
1420e72566
commit
fd8c6a6295
|
@ -9,6 +9,7 @@ BinPackParameters: false
|
||||||
BreakBeforeBraces: Attach
|
BreakBeforeBraces: Attach
|
||||||
ColumnLimit: 88
|
ColumnLimit: 88
|
||||||
DerivePointerAlignment: false
|
DerivePointerAlignment: false
|
||||||
|
IndentGotoLabels: false
|
||||||
IndentWidth: 4
|
IndentWidth: 4
|
||||||
Language: Cpp
|
Language: Cpp
|
||||||
PointerAlignment: Right
|
PointerAlignment: Right
|
||||||
|
|
|
@ -82,7 +82,7 @@ glzwe(
|
||||||
UINT32 end_of_data) {
|
UINT32 end_of_data) {
|
||||||
switch (st->entry_state) {
|
switch (st->entry_state) {
|
||||||
case LZW_TRY_IN1:
|
case LZW_TRY_IN1:
|
||||||
get_first_byte:
|
get_first_byte:
|
||||||
if (!*in_avail) {
|
if (!*in_avail) {
|
||||||
if (end_of_data) {
|
if (end_of_data) {
|
||||||
goto end_of_data;
|
goto end_of_data;
|
||||||
|
@ -94,7 +94,7 @@ glzwe(
|
||||||
(*in_avail)--;
|
(*in_avail)--;
|
||||||
|
|
||||||
case LZW_TRY_IN2:
|
case LZW_TRY_IN2:
|
||||||
encode_loop:
|
encode_loop:
|
||||||
if (!*in_avail) {
|
if (!*in_avail) {
|
||||||
if (end_of_data) {
|
if (end_of_data) {
|
||||||
st->code = st->head;
|
st->code = st->head;
|
||||||
|
@ -127,7 +127,7 @@ glzwe(
|
||||||
st->code = st->head;
|
st->code = st->head;
|
||||||
st->put_state = PUT_HEAD;
|
st->put_state = PUT_HEAD;
|
||||||
goto put_code;
|
goto put_code;
|
||||||
insert_code_or_clear: /* jump here after put_code */
|
insert_code_or_clear: /* jump here after put_code */
|
||||||
if (st->next_code < CODE_LIMIT) {
|
if (st->next_code < CODE_LIMIT) {
|
||||||
st->codes[st->probe] =
|
st->codes[st->probe] =
|
||||||
(st->next_code << 20) | (st->head << 8) | st->tail;
|
(st->next_code << 20) | (st->head << 8) | st->tail;
|
||||||
|
@ -140,7 +140,7 @@ glzwe(
|
||||||
st->code = st->clear_code;
|
st->code = st->clear_code;
|
||||||
st->put_state = PUT_CLEAR;
|
st->put_state = PUT_CLEAR;
|
||||||
goto put_code;
|
goto put_code;
|
||||||
reset_after_clear: /* jump here after put_code */
|
reset_after_clear: /* jump here after put_code */
|
||||||
glzwe_reset(st);
|
glzwe_reset(st);
|
||||||
}
|
}
|
||||||
st->head = st->tail;
|
st->head = st->tail;
|
||||||
|
@ -150,9 +150,9 @@ glzwe(
|
||||||
glzwe_reset(st);
|
glzwe_reset(st);
|
||||||
st->code = st->clear_code;
|
st->code = st->clear_code;
|
||||||
st->put_state = PUT_INIT_CLEAR;
|
st->put_state = PUT_INIT_CLEAR;
|
||||||
put_code:
|
put_code:
|
||||||
st->code_bits_left = st->code_width;
|
st->code_bits_left = st->code_width;
|
||||||
check_buf_bits:
|
check_buf_bits:
|
||||||
if (!st->buf_bits_left) { /* out buffer full */
|
if (!st->buf_bits_left) { /* out buffer full */
|
||||||
|
|
||||||
case LZW_TRY_OUT1:
|
case LZW_TRY_OUT1:
|
||||||
|
@ -190,11 +190,11 @@ glzwe(
|
||||||
return GLZW_INTERNAL_ERROR;
|
return GLZW_INTERNAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
end_of_data:
|
end_of_data:
|
||||||
st->code = st->end_code;
|
st->code = st->end_code;
|
||||||
st->put_state = PUT_END;
|
st->put_state = PUT_END;
|
||||||
goto put_code;
|
goto put_code;
|
||||||
flush_code_buffer: /* jump here after put_code */
|
flush_code_buffer: /* jump here after put_code */
|
||||||
if (st->buf_bits_left < 8) {
|
if (st->buf_bits_left < 8) {
|
||||||
case LZW_TRY_OUT2:
|
case LZW_TRY_OUT2:
|
||||||
if (!*out_avail) {
|
if (!*out_avail) {
|
||||||
|
|
|
@ -346,7 +346,7 @@ ImagingJpegEncode(Imaging im, ImagingCodecState state, UINT8 *buf, int bytes) {
|
||||||
}
|
}
|
||||||
jpeg_finish_compress(&context->cinfo);
|
jpeg_finish_compress(&context->cinfo);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
/* Clean up */
|
/* Clean up */
|
||||||
if (context->comment) {
|
if (context->comment) {
|
||||||
free(context->comment);
|
free(context->comment);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user