You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a function return value is converted from * to _Ptr, callers of that function must be aware of that change and either cast the return value back or change the type of the variable to which they are assigning the return value. If that does not happen there will be an incompatible types error.
make test to build the original code. make testchecked to build with the copies produced by checked-c-convert.
convert.sh runs checked-c-convert on the original code and outputs to *checked* files. If you re-run it, also edit parson.checked.c to use parson.checked.h. convert.sh may need modifications to run in Windows.
Compiler errors can be compared with compilerErrors.txt (produced on a Ubuntu system, not sure if it will perfectly match in Windows)
The text was updated successfully, but these errors were encountered:
If a function return value is converted from * to _Ptr, callers of that function must be aware of that change and either cast the return value back or change the type of the variable to which they are assigning the return value. If that does not happen there will be an incompatible types error.
Example: parson.checked.c:360
The converted function is declared at: parson.checked.c:94
Original code: parson.c:360
Original function declaration: parson.c:94
Error Produced: assigning to <leftside_type> from incompatible type .
To use this test case:
make test
to build the original code.make testchecked
to build with the copies produced by checked-c-convert.convert.sh
runs checked-c-convert on the original code and outputs to*checked*
files. If you re-run it, also edit parson.checked.c to use parson.checked.h. convert.sh may need modifications to run in Windows.compilerErrors.txt
(produced on a Ubuntu system, not sure if it will perfectly match in Windows)The text was updated successfully, but these errors were encountered: