| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This patch cleans up access to the keyword tables, used by the script parser and syntax such as `the commandNames`. The tables are now accessible via global variables `MCkeywordtablepointers` and `MCkeywordtablesizes` which are defined in `scriptpt.h`; and all direct access to the underlying tables in other files have been updated to use them.
| LT **MCkeywordtablepointers = (LT **)table_pointers; | ||
| uint4 MCkeywordtablepointerssize = table_pointers_size; | ||
| uint2 *MCkeywordtablesizes = (uint2 *)table_sizes; | ||
| uint4 MCkeywordtablesizessize = table_sizes_size; |
There was a problem hiding this comment.
Could the global variables be defined as const instead of the const-ness being cast away? e.g const LT * const * const MCkeywordtablepointers = table_pointers; (a constant pointer to constant pointers to constant LTs)
If not perhaps const_cast should be used here to signify what is being done.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This patch cleans up access to the keyword tables, used by the script parser
and syntax such as the commandNames. The tables are now accessible via
global variables MCkeywordtablepointers and MCkeywordtablesizes which are
defined in scriptpt.h; and all direct access to the underlying tables in
other files have been updated to use them.
Closes https://quality.livecode.com/show_bug.cgi?id=23148