avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Problems with ATMEGA8 USART


From: Dave Hansen
Subject: Re: [avr-gcc-list] Problems with ATMEGA8 USART
Date: Tue, 16 Aug 2005 14:07:28 -0400




From: Dave Hylands <address@hidden>

> Be warned that the head/tail usage can be something of a religious
> war with people. There are those who champion the opposite roles
> of head/tail, and remember it with "when you join a queue, should you
> join at the head or the tail ?" - so if you inherit code, it is
> always worth double checking which rule the author is following.

I get around this problem with cicular buffers by having get and put
ptrs or indicies. It makes it much more obvious what they do.

In the past I've used left and right. That way, the code is compatible with a deque. But of course, it also makes it _less_ obvious what they do...

Regards,
  -=Dave






reply via email to

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