Re: [cc65] octal character constants bug (again :=P)

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-09-30 22:57:06


On Tue, Sep 30, 2003 at 10:46:28PM +0200, Groepaz wrote:
> " Since the value of a character constant is the numerical value
>   of the character in the machine's character set, there should
>   be a one-to-one correspondence between characters and values. "
> [note: i think this is founded on the fact that 'a' != 'b' != 'c' etc, it may
> be true only for printable characters?]

It is true for the basic character set:

    5.2.1 Character sets

    [...]

    3 Both the basic source and basic execution character sets shall have the
      following members: the 26 uppercase letters of the Latin alphabet

        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

      the 26 lowercase letters of the Latin alphabet

        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

      the 10 decimal digits

        0 1 2 3 4 5 6 7 8 9

      the following 29 graphic characters

        ! " # % & ' ( ) * + , - . / : ; < = > ? [ \ ] ^ _ { | } ~

      the space character, and control characters representing horizontal tab,
      vertical tab, and form feed.

> mmmh ok. but they are all supposed to be "non printable" (as in isprint()) ?!
> and those *are* supposed to map to unique binary values? or not? :=)

Yes, because they're part of above list.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-09-30 22:57:53 CEST