From: uz Date: Sat, 29 Aug 2009 19:04:21 +0000 (+0000) Subject: Rename Width to BitWidth. X-Git-Tag: V2.13.0rc1~183 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7ced0a2ceb04920b7f029bc6dea1501f0db69f50;p=cc65 Rename Width to BitWidth. git-svn-id: svn://svn.cc65.org/cc65/trunk@4073 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/symentry.h b/src/cc65/symentry.h index d9139a8b7..1f91ff409 100644 --- a/src/cc65/symentry.h +++ b/src/cc65/symentry.h @@ -135,7 +135,7 @@ struct SymEntry { struct { unsigned Offs; /* Byte offset into struct */ unsigned BitOffs; /* Bit offset into last byte */ - unsigned Width; /* Width in bits */ + unsigned BitWidth; /* Width in bits */ } B; /* Data for functions */ diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index c3ca6ba94..6ab25d374 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -593,10 +593,10 @@ SymEntry* AddBitField (const char* Name, unsigned Offs, unsigned BitOffs, unsign Entry = NewSymEntry (Name, SC_BITFIELD); /* Set the symbol attributes. Bit-fields are always of type unsigned */ - Entry->Type = type_uint; - Entry->V.B.Offs = Offs; - Entry->V.B.BitOffs = BitOffs; - Entry->V.B.Width = Width; + Entry->Type = type_uint; + Entry->V.B.Offs = Offs; + Entry->V.B.BitOffs = BitOffs; + Entry->V.B.BitWidth = Width; /* Add the entry to the symbol table */ AddSymEntry (SymTab, Entry);