bugAVR C Runtime Library - Bugs: bug #9013, Macroses as a program block.

 
 

bug #9013: Macroses as a program block.

Submitted by:  None
Submitted on:  Wed 19 May 2004 09:33:44 PM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 22 Jul 2004 09:45:44 PM UTC, comment #1:

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

Joerg Wunsch <joerg_wunsch>
Project Administrator
Wed 19 May 2004 09:33:44 PM UTC, 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'.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 22 Jul 2004 09:45:44 PM UTCjoerg_wunschStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1