[Info-vax] Bliss

Arne Vajhøj arne at vajhoej.dk
Fri Jul 19 13:56:37 EDT 2024


On 7/17/2024 11:45 PM, Lawrence D'Oliveiro wrote:
> On Sat, 13 Jul 2024 16:36:39 -0400, Hunter Goatley wrote:
>> On 7/13/2024 2:30 AM, Lawrence D'Oliveiro wrote:
>>> Slightly annoying that global names must be uppercased.
>>
>> Yeah.
> 
> Tried this patch, and my compiler build is now case-sensitive. Builtin
> and reserved names must still be uppercased, but your own symbols
> (particularly references to names defined in C code) can be
> lowercased:
> 
> diff -u lib/frontend/scanner.c{-orig,}
> --- lib/frontend/scanner.c-orig 2024-07-13 10:52:16.426465872 +1200
> +++ lib/frontend/scanner.c      2024-07-18 15:39:51.026148083 +1200
> @@ -75,8 +75,8 @@
>       '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 0, 0, 0, 0, 0, 0,
>       0, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
>       'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 0, 0, 0, 0, '_',
> -    0, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
> -    'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 0, 0, 0, 0, 0,
> +    0, 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
> +    'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 0, 0, 0, 0, 0,
>       0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
>       0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
>       0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

I think that is a good change.

Uppercasing makes sense on VMS - that is traditional VMS
behavior.

Compile with /NAME=AS_IS, link with option case_sensitive=YES
etc. are a PITA.

But this compiler is on Linux and I find it difficult to
see any case where uppercasing makes sense.

Matt should include it. Possible as an option, but please
on by default.

Arne




More information about the Info-vax mailing list