Exact Case Usage
MicroC supports “exact case” naming of textual elements across the product. For each textual element (including data types, data items, subroutines, events, actions, and conditions), MicroC holds two names:
The case-sensitive name is a regular field in the database. Throughout MicroC (including the Dictionary, static reactions, mini-specs and so on), the exact-case name is used. The Code Generator uses the exact-case name when generating full expressions—when preprocessor macros (for data items, user-defined types, and subroutines) are not used. Preprocessor macros remain uppercase only.
Note: You cannot use different cases of the same name for different variables because they resolve to the same name. For example, both Ab and aB resolve to AB.The first time you specify an element, MicroC records its exact case, and converts any subsequent references to it to the same convention. For example, if you first enter “aB,” MicroC converts any case combination of it (“AB,” “Ab,” “ab,” or “aB”) to aB. Use the Rename option in the dictionary to respecify the name or case of the element.
Note that the check model tool will warn you when two strings (the case-sensitive name and the uppercase name) do not match. This might happen if you change the setting of the Case Sensitive Name attribute. By default, MicroC uses case-sensitive names.
The following aspects of MicroC require exact-case handling:
●Exact-case usage is not supported in local parameters of subroutines, nor context variables.