Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/09/09 14:10
Read: times


 
#169587 - word |= 0x0000;
Responding to: ???'s previous message
Andy Neil said:
Csmg Sarma said:
static uint16_t word;
 

Could you not come up with something even slightly meaningful?!

The name of a variable should give a good indication of what its value means.

But remember that not all use of that poor "word" in the posted source is so very meaningful:
word |= 0x0000;

I kind of get a feeling that "word" should have been a 32-bit variable and that the constant to or in didn't fit in a 16-bit constant :)

List of 7 messages in thread
TopicAuthorDate
Timer Capture 2 ISR Execution.            01/01/70 00:00      
   Why the Large model?            01/01/70 00:00      
      Large Model on SDCC            01/01/70 00:00      
   WHICH variable            01/01/70 00:00      
      Variable            01/01/70 00:00      
         That is a *really* bad name for a variable!            01/01/70 00:00      
            word |= 0x0000;            01/01/70 00:00      

Back to Subject List