From 1c2edc543478633fb8a68e224d1f56a76d562487 Mon Sep 17 00:00:00 2001 From: Jesse Rosenstock Date: Fri, 19 Jun 2020 09:01:24 +0200 Subject: [PATCH] AddBitField: Rename Width arg to BitWidth This makes the arg consistent with the SymEntry field name. --- src/cc65/symtab.c | 4 ++-- src/cc65/symtab.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index a31c11bfc..f19a251bd 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -597,7 +597,7 @@ SymEntry* AddStructSym (const char* Name, unsigned Type, unsigned Size, SymTable -SymEntry* AddBitField (const char* Name, unsigned Offs, unsigned BitOffs, unsigned Width) +SymEntry* AddBitField (const char* Name, unsigned Offs, unsigned BitOffs, unsigned BitWidth) /* Add a bit field to the local symbol table and return the symbol entry */ { /* Do we have an entry with this name already? */ @@ -616,7 +616,7 @@ SymEntry* AddBitField (const char* Name, unsigned Offs, unsigned BitOffs, unsign Entry->Type = type_uint; Entry->V.B.Offs = Offs; Entry->V.B.BitOffs = BitOffs; - Entry->V.B.BitWidth = Width; + Entry->V.B.BitWidth = BitWidth; /* Add the entry to the symbol table */ AddSymEntry (SymTab, Entry); diff --git a/src/cc65/symtab.h b/src/cc65/symtab.h index cd736ec1e..62e731042 100644 --- a/src/cc65/symtab.h +++ b/src/cc65/symtab.h @@ -149,7 +149,7 @@ unsigned short FindSPAdjustment (const char* Name); SymEntry* AddStructSym (const char* Name, unsigned Type, unsigned Size, SymTable* Tab); /* Add a struct/union entry and return it */ -SymEntry* AddBitField (const char* Name, unsigned Offs, unsigned BitOffs, unsigned Width); +SymEntry* AddBitField (const char* Name, unsigned Offs, unsigned BitOffs, unsigned BitWidth); /* Add a bit field to the local symbol table and return the symbol entry */ SymEntry* AddConstSym (const char* Name, const Type* T, unsigned Flags, long Val);