summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-05 17:46:44 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-05 17:46:44 -0400
commitdbd353352d8d6dff23ac1a87601a7c0eac688ad4 (patch)
treee71ffb133e94210e31129dc4ec6c0403b1c34ec7 /devtools
parent51acb55669c76de87d0af493039dd7caf2ab2f2b (diff)
downloadgpsd-dbd353352d8d6dff23ac1a87601a7c0eac688ad4.tar.gz
ind -> i as a loop variable name.
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/tablegen.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/devtools/tablegen.py b/devtools/tablegen.py
index 10251620..78632599 100755
--- a/devtools/tablegen.py
+++ b/devtools/tablegen.py
@@ -95,16 +95,16 @@ def make_driver_code(wfp):
print >>wfp, '#define ELEMENT_SIZE %s' % trailing
if explicit:
lengthfield = last
- print >>wfp, indent + "for (ind = 0; ind < %s; ind++) {" % lengthfield
+ print >>wfp, indent + "for (i = 0; i < %s; i++) {" % lengthfield
else:
lengthfield = "n" + arrayname
- print >>wfp, indent + "for (ind = 0; ARRAY_BASE + (ELEMENT_SIZE*ind) <= ais_context->bitlen; ind++) {"
+ print >>wfp, indent + "for (i = 0; ARRAY_BASE + (ELEMENT_SIZE*i) < bitlen; i++) {"
indent += step
- print >>wfp, indent + "int a = ARRAY_BASE + (ELEMENT_SIZE*ind);"
+ print >>wfp, indent + "int a = ARRAY_BASE + (ELEMENT_SIZE*i);"
continue
offset = offsets[i].split('-')[0]
if arrayname:
- target = "%s.%s[ind].%s" % (structname, arrayname, name)
+ target = "%s.%s[i].%s" % (structname, arrayname, name)
offset = "a + " + offset
else:
target = "%s.%s" % (structname, name)