diff options
author | selivni <selivni@yandex-team.ru> | 2022-02-10 16:47:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:47 +0300 |
commit | fd7c757f129e0df24dd53f64c9b67053da4e8799 (patch) | |
tree | 1f07ef08e24275f10c9d0ec975c71c62abbc3d8d /contrib/libs/nghttp2/lib/nghttp2_hd_huffman.h | |
parent | 0148ac5e2009a411becc605faa1e6a8801535649 (diff) | |
download | ydb-fd7c757f129e0df24dd53f64c9b67053da4e8799.tar.gz |
Restoring authorship annotation for <selivni@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/nghttp2/lib/nghttp2_hd_huffman.h')
-rw-r--r-- | contrib/libs/nghttp2/lib/nghttp2_hd_huffman.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/libs/nghttp2/lib/nghttp2_hd_huffman.h b/contrib/libs/nghttp2/lib/nghttp2_hd_huffman.h index 2bfd531816..e2bd0a03d8 100644 --- a/contrib/libs/nghttp2/lib/nghttp2_hd_huffman.h +++ b/contrib/libs/nghttp2/lib/nghttp2_hd_huffman.h @@ -26,7 +26,7 @@ #define NGHTTP2_HD_HUFFMAN_H #ifdef HAVE_CONFIG_H -# include <config.h> +# include <config.h> #endif /* HAVE_CONFIG_H */ #include <nghttp2/nghttp2.h> @@ -34,20 +34,20 @@ typedef enum { /* FSA accepts this state as the end of huffman encoding sequence. */ - NGHTTP2_HUFF_ACCEPTED = 1 << 14, + NGHTTP2_HUFF_ACCEPTED = 1 << 14, /* This state emits symbol */ - NGHTTP2_HUFF_SYM = 1 << 15, + NGHTTP2_HUFF_SYM = 1 << 15, } nghttp2_huff_decode_flag; typedef struct { - /* fstate is the current huffman decoding state, which is actually - the node ID of internal huffman tree with - nghttp2_huff_decode_flag OR-ed. We have 257 leaf nodes, but they - are identical to root node other than emitting a symbol, so we - have 256 internal nodes [1..255], inclusive. The node ID 256 is - a special node and it is a terminal state that means decoding - failed. */ - uint16_t fstate; + /* fstate is the current huffman decoding state, which is actually + the node ID of internal huffman tree with + nghttp2_huff_decode_flag OR-ed. We have 257 leaf nodes, but they + are identical to root node other than emitting a symbol, so we + have 256 internal nodes [1..255], inclusive. The node ID 256 is + a special node and it is a terminal state that means decoding + failed. */ + uint16_t fstate; /* symbol if NGHTTP2_HUFF_SYM flag set */ uint8_t sym; } nghttp2_huff_decode; @@ -55,8 +55,8 @@ typedef struct { typedef nghttp2_huff_decode huff_decode_table_type[16]; typedef struct { - /* fstate is the current huffman decoding state. */ - uint16_t fstate; + /* fstate is the current huffman decoding state. */ + uint16_t fstate; } nghttp2_hd_huff_decode_context; typedef struct { |