Fix parsing multiple struct fields defined in one line
This commit is contained in:
parent
246798a0ba
commit
16ad9fbd73
|
|
@ -589,7 +589,7 @@ void GetDataTypeAndName(const char *typeName, int typeNameLen, char *type, char
|
||||||
{
|
{
|
||||||
for (int k = typeNameLen; k > 0; k--)
|
for (int k = typeNameLen; k > 0; k--)
|
||||||
{
|
{
|
||||||
if (typeName[k] == ' ')
|
if (typeName[k] == ' ' && typeName[k - 1] != ',')
|
||||||
{
|
{
|
||||||
// Function name starts at this point (and ret type finishes at this point)
|
// Function name starts at this point (and ret type finishes at this point)
|
||||||
MemoryCopy(type, typeName, k);
|
MemoryCopy(type, typeName, k);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user