[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] enum with 8 bit encoding

From: Peter N Lewis
Subject: Re: [avr-gcc-list] enum with 8 bit encoding
Date: Fri, 19 Apr 2002 23:00:47 +0800

At 21:06 +0200 18/4/02, Carsten Beth wrote:

Thank you for the suggestions, but they don't have any influence on the
generated code. Maybe the shortest size for the constants are ints?!

Well, I guess the obvious solution left is to just define the typedef separate from the enums:

   set_state            = 's',
   send_eeprom          = 'm',
   change_eeprom        = 'l',
   send_det             = 'd',
   synchonization       = 'r',
   end_of_block         = 'e'

typedef char t_symbol;


<http://www.interarchy.com/>  <ftp://ftp.interarchy.com/interarchy.hqx>
avr-gcc-list at http://avr1.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]