aka-demik / superobject

Automatically exported from https://code.google.com/p/superobject/
0 stars 1 forks source link

Bug in free pascal when not using {$DEFINE UNICODE} #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use lazarus free pascal IDE
2. Remove the {$DEFINE UNICODE}, or just put a dot like this {.$DEFINE UNICODE}
3. Try to compile any application with superobject unit

What is the expected output? What do you see instead?

superobject.pas(2166,55) Error: Incompatible type for arg no. 7: Got
"TSuperType", expected "ISuperObject"

What version of the product are you using? On what operating system?
1.2.2 - Windows XP

Please provide any additional information below.

on line 2166 we see the code
ParseEx(tok, buffera, size, this, options, put, dt)
where a parameter is missing.
the missing parameter is "strict" and the corrected line is
ParseEx(tok, buffera, size, strict, this, options, put, dt)
once you do this, the problem is solved and the unit compiles with any
Lazarus application.

Thanks to Henri Gourvest for this great work. It is very useful.

Original issue reported on code.google.com by daviccos...@gmail.com on 27 Dec 2009 at 9:27

GoogleCodeExporter commented 9 years ago
JSON must be unicode, this compiler option is deprecated.
removed in revision 10

Original comment by hgourv...@gmail.com on 28 Dec 2009 at 9:05