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 Dec 16 14:12:18 2008  
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 Dec 16 14:12:18 2008, 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:


And rtai_version.h defines:

#define RTAI_MANGLE_VERSION(a,b,c) (((a) * 65536) + ((b) * 256) + (c))

So RTAI_VERSION_CODE expands to:

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

which is obviously not very useful!



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

Attach File(s):

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.


    Error: not logged in



    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup