Commit c45cc5e0 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Dridi Boukelmoune

Whitespace OCD

parent 03fd56af
...@@ -520,42 +520,41 @@ vjsn_dump(const struct vjsn *js, FILE *fo) ...@@ -520,42 +520,41 @@ vjsn_dump(const struct vjsn *js, FILE *fo)
* *
* And run this python in test_parsing: * And run this python in test_parsing:
import glob import glob
skip = {} skip = {}
def emit(fin): def emit(fin):
if fin in skip: if fin in skip:
return return
x = bytearray(open(fin).read()) x = bytearray(open(fin).read())
if 0 in x: if 0 in x:
return return
if len(x) > 1000: if len(x) > 1000:
return return
t = '\t"' t = '\t"'
for i in x: for i in x:
t += "\\x%02x" % i t += "\\x%02x" % i
if len(t) > 64: if len(t) > 64:
print(t + '"') print(t + '"')
t = '\t"' t = '\t"'
print(t + '",') print(t + '",')
print("const char *good[] = {") print("const char *good[] = {")
l = list(glob.glob("y_*")) l = list(glob.glob("y_*"))
l.sort() l.sort()
for f in l: for f in l:
emit(f) emit(f)
print("\tNULL") print("\tNULL")
print("};") print("};")
print("const char *bad[] = {") print("const char *bad[] = {")
l = list(glob.glob("n_*")) l = list(glob.glob("n_*"))
l.sort() l.sort()
for f in l: for f in l:
emit(f) emit(f)
print("\tNULL") print("\tNULL")
print("};") print("};")
*/ */
static const char *good[] = { static const char *good[] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment