Skip to content

Conversation

@MisakaVan
Copy link
Owner

This pull request includes several changes to improve identifier management and error handling in the codebase, as well as updates to documentation and test files. The most important changes include modifying how identifiers are registered and checked, updating the documentation to reflect these changes, and adding new test cases to ensure the correctness of the implementation.

Identifier Management and Error Handling:

  • src/lang.c: Replaced check_identifier_* functions with register_identifier_* functions to ensure identifiers are registered correctly when defining structs, unions, and enums. [1] [2] [3]
  • src/lib.c: Updated conflict_identifier_register_lut to reflect the correct conflict rules between struct, union, and enum names. Added suggestions in check_identifier_in_table function to guide users on correct identifier usage. [1] [2]

Documentation Updates:

  • doc/parser.md: Added a new section on unresolved issues related to identifier management and updated the description of how struct/union/enum identifiers are handled. [1] [2]

Test File Updates:

Script Updates:

  • batchtest.sh: Modified the script to run tests only on files with the .jtl.h extension by introducing a new inputext variable. [1] [2]

@MisakaVan MisakaVan merged commit fe470b7 into main Dec 14, 2024
1 check passed
@MisakaVan MisakaVan deleted the dev branch December 14, 2024 20:01
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.

2 participants