[pypy-commit] pypy vmprof: Revert 2f9e91643e10: it's wrongish and it's not needed any more
arigo
noreply at buildbot.pypy.org
Thu Apr 2 16:15:51 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch: vmprof
Changeset: r76688:6b7f4d1bccce
Date: 2015-04-02 16:15 +0200
http://bitbucket.org/pypy/pypy/changeset/6b7f4d1bccce/
Log: Revert 2f9e91643e10: it's wrongish and it's not needed any more
diff --git a/rpython/translator/c/node.py b/rpython/translator/c/node.py
--- a/rpython/translator/c/node.py
+++ b/rpython/translator/c/node.py
@@ -126,9 +126,8 @@
return self.prefix + name
def verbatim_field_name(self, name):
- if name.startswith('c_'): # produced in this way by rffi
- return name[2:]
- return name
+ assert name.startswith('c_') # produced in this way by rffi
+ return name[2:]
def c_struct_field_type(self, name):
return self.STRUCT._flds[name]
More information about the pypy-commit
mailing list