aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-08-23 07:34:31 +0000
committerGuy Harris <guy@alum.mit.edu>2003-08-23 07:34:31 +0000
commite045533febe6e8ff8f2e26341bd7581015f156ac (patch)
tree20aac71852acf75010e90b851fdd77e6397f87d6 /plugins
parent51282e83df99b78b2aa9e5680c444bad42c8d673 (diff)
The Python 1.5.2 I have installed didn't seem to like "+=", so use "x =
x + y" instead. svn path=/trunk/; revision=8218
Diffstat (limited to 'plugins')
-rw-r--r--plugins/plugin_gen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/plugin_gen.py b/plugins/plugin_gen.py
index fea239de7a..e9f8fab693 100644
--- a/plugins/plugin_gen.py
+++ b/plugins/plugin_gen.py
@@ -1,7 +1,7 @@
#! /usr/bin/python
# -*- python -*-
#
-# $Id: plugin_gen.py,v 1.2 2003/08/18 20:17:55 guy Exp $
+# $Id: plugin_gen.py,v 1.3 2003/08/23 07:34:31 guy Exp $
#
# mmelchior@xs4all.nl
#
@@ -54,7 +54,7 @@ while 1:
# print "= ", decl
matchobj = pattName.match(decl)
if matchobj:
- count += 1
+ count = count + 1
name = matchobj.group(1)
# print " ", name
f2.write("#define %s (*p_%s)\n" % (name, name))
@@ -62,7 +62,7 @@ while 1:
f4.write("addr_%s p_%s;\n" % (name, name))
f5.write(replace("typedef %s\n" % decl, name, "(*addr_%s)" % name))
f6.write(name)
- pos += len(name) + 2
+ pos = pos + len(name) + 2
if pos > 60:
pos = 0
f6.write(",\n")