wc-duck / datalibrary

Open Source Data Library for data serialization.
Other
42 stars 8 forks source link

Issues with parsing type-strings #64

Closed lundmark closed 6 years ago

lundmark commented 6 years ago

If I define a struct member like this: { "name" : "apa", "type" : "Random *" },

and Random is a struct, the type outputted will not be a pointer but rather a normal struct (and no warning about it).

if I instead do { "name" : "apa", "type" : "Random*" },

it will become a: const struct Random* apa;

I don't want it as const. Why is it const?

wc-duck commented 6 years ago

Both sound like bugs... I'll look into it!

wc-duck commented 6 years ago

I'll take a pass on bugs at lunch tomorrow!

wc-duck commented 6 years ago

This case ( and a whole bunch of other invalid formats/chars ) is detected now and reported as an error + giving suggestions on what is a valid format.