Annotation of coherent/d/bin/bc/Changes, revision 1.1

1.1     ! root        1: /usr/src/cmd/bc/Changes 1/29/90
        !             2: 
        !             3: Tue Jan 30 09:01:56 1990 PST
        !             4: getnum.c
        !             5:                The bc lexer requires a number to start with a digit.
        !             6:                It formerly recognized leading "0" and "0x" as escapes.
        !             7:                But if ibase > 10 and the leading digit of a number is
        !             8:                alphabetic (e.g. hex "A000"), a leading "0" is required
        !             9:                and ambiguity about the base results (octal?).
        !            10:                Similarly, if ibase > 33, leading "0x" is ambiguous (hex?).
        !            11:                rec (I think) ripped out the leading "0" and "0x" code
        !            12:                to avoid this ambiguity.  Since I find hex escapes very
        !            13:                convenient while leaving the default ibase==10
        !            14:                (just type "0x1234" to see its decimal value),  I
        !            15:                changed getnum() to recognize C escapes "0" and "0x"
        !            16:                as prefixes for octal and hex numbers if ibase<=10.
        !            17: 
        !            18:                

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.