Allow spaces in pointer types (e.g. "GLchar * *").

Added todo for string->String translation that is overwritten
immediately.
This commit is contained in:
Stefanos A. 2013-10-25 08:52:34 +02:00
parent 06d2de3e7b
commit 078a1e8443

View file

@ -108,7 +108,7 @@ namespace Bind.Structures
while (type.EndsWith("*")) while (type.EndsWith("*"))
{ {
type = type.Substring(0, type.Length - 1); type = type.Substring(0, type.Length - 1).Trim();
Pointer++; Pointer++;
} }
} }
@ -379,10 +379,13 @@ namespace Bind.Structures
} }
else else
{ {
// Todo: what is the point of this here? It is overwritten below.
// A few translations for consistency // A few translations for consistency
switch (CurrentType.ToLower()) switch (CurrentType.ToLower())
{ {
case "string": QualifiedType = "String"; break; case "string":
QualifiedType = "String";
break;
} }
QualifiedType = s; QualifiedType = s;