Skip to content

Conversation

@chipbarnaby
Copy link
Contributor

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.

/test/error_handling/*.spl
# !/test/*.exe see below

test2/
Copy link
Contributor

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.

Comment on lines -926 to -929
// 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]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this partly redundant?

Copy link
Contributor Author

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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will look after merge.

@chipbarnaby chipbarnaby merged commit df0bb42 into main Jul 18, 2023
@chipbarnaby chipbarnaby deleted the alt-string-ptrs branch July 18, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants