This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

CDL values


I'd like to have a CDL variable, flavor data, whose value
is specified as a single character.  I've not found any way
to write this, other than using the ASCII HEX equivalent.

If I write this:
  cdl_option XYZ {
    flavor data
    default_value 'a'
  }
I always get a syntax error.

Ideas?  Is this possible?

n.b. this is used in some C code where I'd like to say
  a = ch - XYZ;
instead of
  a = ch = 'a';

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]