Commit df0f0fd1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Avoid "const const" duplication

parent f81b8e57
...@@ -843,7 +843,10 @@ for i in sp_variables: ...@@ -843,7 +843,10 @@ for i in sp_variables:
fo.write('",\n') fo.write('",\n')
else: else:
fo.write('\t "VRT_r_%s(req)",\n' % cnam) fo.write('\t "VRT_r_%s(req)",\n' % cnam)
if i[4][:5] != "const":
fh.write(ctyp + " VRT_r_%s(const %s);\n" % (cnam, i[4])) fh.write(ctyp + " VRT_r_%s(const %s);\n" % (cnam, i[4]))
else:
fh.write(ctyp + " VRT_r_%s(%s);\n" % (cnam, i[4]))
restrict(fo, i[2]) restrict(fo, i[2])
if len(i[3]) == 0: if len(i[3]) == 0:
......
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