avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] [bugs #9013] Macroses as a program block.


From: Joerg Wunsch
Subject: [avr-libc-dev] [bugs #9013] Macroses as a program block.
Date: Thu, 22 Jul 2004 17:49:01 -0400
User-agent: Mozilla/5.0 Galeon/1.2.13 (X11; FreeBSD i386; U;) Gecko/0

This mail is an automated notification from the bugs tracker
 of the project: AVR C Runtime Library.

/**************************************************************************/
[bugs #9013] Latest Modifications:

Changes by: 
                Joerg Wunsch <address@hidden>
'Date: 
                Thu 07/22/04 at 21:45 (Europe/Berlin)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
Appropriate do { ... } while (0) protection has been added
to avr/sleep.h, and avr/ina90.h.bugs #9013] Macroses as a program block.






/**************************************************************************/
[bugs #9013] Full Item Snapshot:

URL: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=9013>
Project: AVR C Runtime Library
Submitted by: 0
On: Wed 05/19/04 at 21:33

Category:  Header
Severity:  5 - Average
Item Group:  None
Resolution:  Fixed
Assigned to:  None
Originator Email:  address@hidden
Status:  Closed


Summary:  Macroses as a program block.

Original Submission:  This remark conserns a few function-like macroses, that 
are defined as:

    #define foo() { ... }

This macroses are in files `sleep.h' and `ina90.h' .
Such definition produced an error, for example:

    if (flag) foo(); else ...           /* `;' is invalid       */

It would be better `do { ... } while (0)' or `static inline'.


Follow-up Comments
------------------


-------------------------------------------------------
Date: Thu 07/22/04 at 21:45         By: joerg_wunsch
Appropriate do { ... } while (0) protection has been added
to avr/sleep.h, and avr/ina90.h.bugs #9013] Macroses as a program block.












For detailed info, follow this link:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=9013>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/







reply via email to

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