Fix code generator: add always a comma after each signature argument.
For example "((i)i)" produced: member(const ::DBus::Struct< ::DBus::Struct< int32_t >int32_t >& arg) And now it produces: member(const ::DBus::Struct< ::DBus::Struct< int32_t >, int32_t >& arg)
This commit is contained in:
parent
987d0f72a4
commit
21ba70529d
1 changed files with 4 additions and 10 deletions
|
@ -127,12 +127,6 @@ void _parse_signature(const string &signature, string &type, unsigned int &i)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i+1 < signature.length() && signature[i+1] != ')' && signature[i+1] != '}')
|
|
||||||
{
|
|
||||||
type += ", ";
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '(':
|
case '(':
|
||||||
|
@ -160,14 +154,14 @@ void _parse_signature(const string &signature, string &type, unsigned int &i)
|
||||||
}
|
}
|
||||||
type += atom;
|
type += atom;
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (i+1 < signature.length() && signature[i+1] != ')' && signature[i+1] != '}')
|
if (i+1 < signature.length() && signature[i+1] != ')' && signature[i+1] != '}')
|
||||||
{
|
{
|
||||||
type += ", ";
|
type += ", ";
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue