[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Re: 0 bytes in Cobol strings
From: |
Keisuke Nishida |
Subject: |
Re: [open-cobol-list] Re: 0 bytes in Cobol strings |
Date: |
Tue Apr 6 10:56:02 2004 |
User-agent: |
Wanderlust/2.10.0 (Venus) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (UnebigoryĆmae) APEL/10.3 Emacs/21.2 (i386-redhat-linux-gnu) MULE/5.0 (SAKAKI) |
At Fri, 2 Apr 2004 12:20:21 -0500 (EST),
David Korn wrote:
>
> Perhaps the compiler should allow the first line of the file to contain
> information to specify a character which will be mapped into \0 in
> output_string() in codegen.c.
>
> For example if the first line contains
> -ZERO 0x1
> then this line would be used by the compiler so that when the byte
> 0x1 is output in a string, it would be output as \0 in C.
I don't want to implement this kind of extension.
The standard way of writing the null character would be to use
X'' literal like this:
VALUE '...' & X'000000000C'.
However, I haven't implemented the `&' operator (literal
concatenation). Gee.
In any event, \0 is a valid alphanumeric character, so
I'll fix the compiler.
Keisuke