Skip to contentSkip to conversation

dtrace backend: add function to reserved words

PATCH Applied Alon Levy 2 participants 2 messages Sep 1, 2012 – Sep 22, 2012

lore
Share & tools
lore

Alon Levy

author
#0 lore raw

PATCH 1/1 dtrace backend: add function to reserved words

---
 scripts/tracetool/backend/dtrace.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/tracetool/backend/dtrace.py +1 -1
index 9cab75c..6be7047 100644
@@ -87,7 +87,7 @@ def stap(events):
         if len(e.args) > 0:
             for name in e.args.names():
                 # Append underscore to reserved keywords
-                if name in ('limit', 'in', 'next', 'self'):
+                if name in ('limit', 'in', 'next', 'self', 'function'):
                     name += '_'
                 out('  %s = $arg%d;' % (name, i))
                 i += 1
Signature · 1 line
1.7.12