helpReal-Time Application Interface - Support: sr #2218, RTAI_VERSION_CODE and...

 
 
Show feedback again

sr #2218: RTAI_VERSION_CODE and "special" releases

Submitted by:  None
Submitted on:  Tue 16 Dec 2008 02:12:18 PM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue 16 Dec 2008 02:12:18 PM UTC, original submission:

Some external code (e.g. comedi) uses the value of the RTAI_VERSION_CODE macro in preprocessor conditional tests, but for special releases such as rtai-3.6-cv this does not produce a valid preprocessor integral constant expression.

For example, in rtai-3.6-cv, rtai_config.h defines:

#define CONFIG_RTAI_VERSION_MAJOR 3
#define CONFIG_RTAI_VERSION_MINOR 6-cv
#define CONFIG_RTAI_REVISION_LEVEL

And rtai_version.h defines:

#define RTAI_MANGLE_VERSION(a,b,c) (((a) * 65536) + ((b) * 256) + (c))
#define RTAI_VERSION_CODE RTAI_MANGLE_VERSION(CONFIG_RTAI_VERSION_MAJOR,CONFIG_RTAI_VERSION_MINOR,CONFIG_RTAI_REVISION_LEVEL)

So RTAI_VERSION_CODE expands to:

(((3) * 65536) + ((6-cv) * 256) + ())

which is obviously not very useful!

Anonymous

 

(Note: upload size limit is set to 1024 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

 

Carbon-Copy List
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

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

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup