diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-01 18:50:21 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-01 18:50:21 -0400 |
commit | c861c6c927f4e3054270695ed9bd0b4d7c649a42 (patch) | |
tree | 78fbb5076769b3bb583a6b22b2a05d09f89f6984 /devtools | |
parent | 3fd092f78594a76eae9dfeab6ed930dbe91a6528 (diff) | |
download | gpsd-c861c6c927f4e3054270695ed9bd0b4d7c649a42.tar.gz |
Change JSON-dumper code generation to match my previous commit.
Diffstat (limited to 'devtools')
-rwxr-xr-x | devtools/tablegen.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/devtools/tablegen.py b/devtools/tablegen.py index 11658188..cdad2633 100755 --- a/devtools/tablegen.py +++ b/devtools/tablegen.py @@ -213,6 +213,7 @@ def make_json_dumper(wfp): if ftype == 'x' or not record: continue fmt = r'\"%s\":' % name + fmt_text = r'\"%s_text\":' % name if ftype == 'u': tuples.append((name, fmt+"%u", "%s", @@ -220,7 +221,10 @@ def make_json_dumper(wfp): elif ftype == 'e': tuples.append((name, fmt+"%u", "%s", - fmt+r"\"%s\"", 'FOO[%s]')) + None, None)) + tuples.append((name, + fmt_text+r"\"%s\"", 'FOO[%s]', + None, None)) elif ftype == 'i': tuples.append((name, fmt+"%d", "%s", |