Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: third_party/zlib/deflate.h

Issue 10957038: net: separate SPDY cookies with "; " as the new RFC requires. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address willchan's comments Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | third_party/zlib/deflate.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* deflate.h -- internal compression state 1 /* deflate.h -- internal compression state
2 * Copyright (C) 1995-2010 Jean-loup Gailly 2 * Copyright (C) 1995-2010 Jean-loup Gailly
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
6 /* WARNING: this file should *not* be used by applications. It is 6 /* WARNING: this file should *not* be used by applications. It is
7 part of the implementation of the compression library and is 7 part of the implementation of the compression library and is
8 subject to change. Applications should only use zlib.h. 8 subject to change. Applications should only use zlib.h.
9 */ 9 */
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } FAR tree_desc; 84 } FAR tree_desc;
85 85
86 typedef ush Pos; 86 typedef ush Pos;
87 typedef Pos FAR Posf; 87 typedef Pos FAR Posf;
88 typedef unsigned IPos; 88 typedef unsigned IPos;
89 89
90 /* A Pos is an index in the character window. We use short instead of int to 90 /* A Pos is an index in the character window. We use short instead of int to
91 * save space in the various tables. IPos is used only for parameter passing. 91 * save space in the various tables. IPos is used only for parameter passing.
92 */ 92 */
93 93
94 #define Z_COOKIE_HASH_SIZE 64 94 #define Z_COOKIE_HASH_SIZE 256
95 #define Z_COOKIE_HASH_MASK (Z_COOKIE_HASH_SIZE-1) 95 #define Z_COOKIE_HASH_MASK (Z_COOKIE_HASH_SIZE-1)
96 96
97 typedef struct internal_state { 97 typedef struct internal_state {
98 z_streamp strm; /* pointer back to this zlib stream */ 98 z_streamp strm; /* pointer back to this zlib stream */
99 int status; /* as the name implies */ 99 int status; /* as the name implies */
100 Bytef *pending_buf; /* output still pending */ 100 Bytef *pending_buf; /* output still pending */
101 ulg pending_buf_size; /* size of pending_buf */ 101 ulg pending_buf_size; /* size of pending_buf */
102 Bytef *pending_out; /* next pending byte to output to the stream */ 102 Bytef *pending_out; /* next pending byte to output to the stream */
103 uInt pending; /* nb of bytes in the pending buffer */ 103 uInt pending; /* nb of bytes in the pending buffer */
104 int wrap; /* bit 0 true for zlib, bit 1 true for gzip */ 104 int wrap; /* bit 0 true for zlib, bit 1 true for gzip */
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 s->dyn_dtree[d_code(dist)].Freq++; \ 338 s->dyn_dtree[d_code(dist)].Freq++; \
339 flush = (s->last_lit == s->lit_bufsize-1); \ 339 flush = (s->last_lit == s->lit_bufsize-1); \
340 } 340 }
341 #else 341 #else
342 # define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c) 342 # define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c)
343 # define _tr_tally_dist(s, distance, length, flush) \ 343 # define _tr_tally_dist(s, distance, length, flush) \
344 flush = _tr_tally(s, distance, length) 344 flush = _tr_tally(s, distance, length)
345 #endif 345 #endif
346 346
347 #endif /* DEFLATE_H */ 347 #endif /* DEFLATE_H */
OLDNEW
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | third_party/zlib/deflate.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698