Commit bf484551 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Oops, typo.

parent c4380367
......@@ -170,6 +170,7 @@ clean:
g_outputGetSetC.write('\n/* Helper functions for NATIVE encodings */\n\n')
def WorkOnType(nodeTypeName: str) -> None:
inform("Python_A_mapper: Working on type '%s'...", nodeTypeName)
typ = CleanNameAsPythonWants(nodeTypeName)
g_outputGetSetH.write('void SetDataFor_%s(void *dest, void *src);\n' % typ)
g_outputGetSetH.write("byte* MovePtrBySizeOf_%s(byte *pData);\n" % typ)
......
......@@ -411,7 +411,7 @@ def ParseAsnFileList(listOfFilenames: List[str]) -> None: # pylint: disable=inv
# and mark any types not inside it as artificial.
os.system("mono \"" + asn1SccPath + "\" -customStg \"" + asn1SccDir + "/xml.stg:" + xmlAST + "2\" -customStgAstVersion 1 \"" + "\" \"".join(listOfFilenames) + "\"")
realTypes = {}
for line in os.popen("grep 'ExportedType>' \"" + xmlAST + "2\"").readlines(): # pylint: disable=anomalous-backslash-in-string
for line in os.popen("grep 'ExportedType\>' \"" + xmlAST + "2\"").readlines(): # flake8: noqa pylint: disable=anomalous-backslash-in-string
line = re.sub(r'^.*Name="', '', line.strip())
line = re.sub(r'" />$', '', line)
realTypes[line] = 1
......
Supports Markdown
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