Don't allow record field names to be C/C++ keywords

Bug #541187 reported by Andrew Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Fix Released
Wishlist
Andrew Johnson

Bug Description

dbRecordtypeToH should reject field names that match C and C++ keywords including C++ alternative tokens.

Additional information:
C++ spec p. 14 lists keywords and alterntive tokens.

Original Mantis Bug: mantis-122
    http://www.aps.anl.gov/epics/mantis/view_bug_page.php?f_id=122

Tags: dbstatic

Related branches

Revision history for this message
Andrew Johnson (anj) wrote :

Fixed in my compiled-dbd branch.

The list of reserved words is combined from C++ and the DB/DBD file parser. This also requires a small change in the rules for generating the C name from the DBD field name, since the aSub record has a field NOT; now if we find the lower-case version is reserved, we use the original instead. Since the aSubRecord.c file doesn't name prec->not this is backwards-compatible.

Changed in epics-base:
status: In Progress → Fix Committed
Andrew Johnson (anj)
Changed in epics-base:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.