diff options
| author | Rusty Wagner <rusty@vector35.com> | 2017-01-11 21:18:08 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2017-01-11 21:18:08 -0500 |
| commit | 844e1aa5b4f89de2ffc1990824b094c553068642 (patch) | |
| tree | 7e3c220249b0a27cd86a0f0c91728f4a229eec49 /python | |
| parent | 09a68bdd84d4789626f5c8b8631f61e7a41ca03d (diff) | |
Create qualified name object
Diffstat (limited to 'python')
| -rw-r--r-- | python/generator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/generator.cpp b/python/generator.cpp index 4c313fdd..485655c2 100644 --- a/python/generator.cpp +++ b/python/generator.cpp @@ -98,7 +98,7 @@ void OutputType(FILE* out, Type* type, bool isReturnType = false, bool isCallbac fprintf(out, "ctypes.c_double"); break; case NamedTypeReferenceClass: - fprintf(out, "%s", type->GetQualifiedName(type->GetNamedTypeReference()->GetName()).c_str()); + fprintf(out, "%s", type->GetNamedTypeReference()->GetName().GetString().c_str()); break; case PointerTypeClass: if (isCallback || (type->GetChildType()->GetClass() == VoidTypeClass)) @@ -153,7 +153,7 @@ int main(int argc, char* argv[]) Architecture::Register(new GeneratorArchitecture()); // Parse API header to get type and function information - map<vector<string>, Ref<Type>> types, vars, funcs; + map<QualifiedName, Ref<Type>> types, vars, funcs; string errors; bool ok = Architecture::GetByName("generator")->ParseTypesFromSourceFile(argv[1], types, vars, funcs, errors); fprintf(stderr, "%s", errors.c_str()); |
