-
Notifications
You must be signed in to change notification settings - Fork 8
Alternative string pointers (preliminary support for 64-bit) #409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| /test/error_handling/*.spl | ||
| # !/test/*.exe see below | ||
|
|
||
| test2/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is strange, but mostly harmless.
| // Set up weather file, TDV file, and DESCONDs | ||
| // Do each phase, allowing file or location changes. | ||
| // Messages errors. | ||
| CSE_EF( Top.tp_WthrInit() ) // also uses Top .tp_wfName, .skyModel [,.isDT] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this partly redundant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The function actually did not do what the comments said.
| case DTFLOAT: | ||
| floatCase: // number-choice comes here (from default) if does not contain choice | ||
|
|
||
| #if 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the #if 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will look after merge.
Description
To support a 64 bit implementation, the PR replaces char* pointers within records with 4 byte handles that allow access to strings. This allows 4 byte NANDLE values to be used to link to string expressions. On 64 bit systems, char* pointers are 8 bytes while floats are 4 bytes which would complicate the NANDLE/expression scheme.
A new test "commands.cse" has been added that exercises some tricky cases related to object manipulation and string expressions.
No changes in input or other function. All tests pass with small-if-any results changes.