diff options
author | Craig Tiller <ctiller@google.com> | 2016-04-18 22:19:00 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-04-18 22:19:00 -0700 |
commit | 942568bc9d7f606a24c2f5f1cb922c3c3c57be9c (patch) | |
tree | 96e84d53b193364d28884d728fcb39c55107589a /tools | |
parent | 69b6d4ef621ab1fe9c7ca7f12b9e0c64d33d5fdb (diff) |
Better dictionary
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/codegen/core/gen_static_metadata.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/codegen/core/gen_static_metadata.py b/tools/codegen/core/gen_static_metadata.py index e7b9c35808..b38555e355 100755 --- a/tools/codegen/core/gen_static_metadata.py +++ b/tools/codegen/core/gen_static_metadata.py @@ -289,6 +289,9 @@ print >>C print >>D, '# hpack fuzzing dictionary' for i, elem in enumerate(all_strs): print >>D, '%s' % (esc_dict([len(elem)] + [ord(c) for c in elem])) +for i, elem in enumerate(all_elems): + print >>D, '%s' % (esc_dict([0, len(elem[0])] + [ord(c) for c in elem[0]] + + [len(elem[1])] + [ord(c) for c in elem[1]])) print >>H, '#define GRPC_STATIC_MDELEM_COUNT %d' % len(all_elems) print >>H, 'extern grpc_mdelem grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT];' |