Skip to content

Commit 2fea4f4

Browse files
committed
Gadgets/Stdrev: Split C++98 and C++03 standards
1 parent b33cf16 commit 2fea4f4

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

gadgets/standard_revisions.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,25 @@ $(function() {
7171
// Standard revision identification 'enums'. Thoughout the plugin it is
7272
// assumed that the values are integers starting at zero and thus they can
7373
// be used as an index in regular arrays.
74-
var Rev_c = { DIFF: 0, FIRST: 1, C89: 1, C99: 2, C11: 3, LAST: 4 };
75-
var Rev_cxx = { DIFF: 0, FIRST: 1, CXX98: 1, CXX11: 2, CXX14: 3, CXX17: 4, CXX20: 5, LAST: 6 };
74+
var Rev_c = {
75+
DIFF: 0,
76+
FIRST: 1,
77+
C89: 1,
78+
C99: 2,
79+
C11: 3,
80+
LAST: 4
81+
};
82+
var Rev_cxx = {
83+
DIFF: 0,
84+
FIRST: 1,
85+
CXX98: 1,
86+
CXX03: 2,
87+
CXX11: 3,
88+
CXX14: 4,
89+
CXX17: 5,
90+
CXX20: 6,
91+
LAST: 7,
92+
};
7693

7794
var Rev;
7895

@@ -105,6 +122,7 @@ $(function() {
105122
];
106123

107124
var rev_css_classes_cxx = [
125+
{ rev: Rev.CXX03, since: 't-since-cxx03', until: 't-until-cxx03' },
108126
{ rev: Rev.CXX11, since: 't-since-cxx11', until: 't-until-cxx11' },
109127
{ rev: Rev.CXX14, since: 't-since-cxx14', until: 't-until-cxx14' },
110128
{ rev: Rev.CXX17, since: 't-since-cxx17', until: 't-until-cxx17' },

0 commit comments

Comments
 (0)