@@ -94,6 +94,9 @@ for (var i = 0; i < rows.length; ++i) {
9494 if ( file_line_pattern . test ( cell . className ) ) {
9595 var line = cell . textContent ;
9696
97+ /////////////
98+ // C++ BIT //
99+ /////////////
97100 // check line has a C++ #include, if so pull the header path
98101 // ensure it has a ".h", and a "/", to exclude STL
99102 if ( test_cpp_include ( line ) ) {
@@ -127,19 +130,14 @@ for (var i = 0; i < rows.length; ++i) {
127130 var srcPath = link . replace ( "interface" , "src" ) ;
128131 var cppSrc = srcPath . replace ( ".h" , ".cpp" ) ;
129132 var ccSrc = srcPath . replace ( ".h" , ".cc" ) ;
130- check_URL_add_link ( cppSrc , cell ) ;
133+ // try .cc first, if not try cpp
131134 check_URL_add_link ( ccSrc , cell ) ;
132- // console.log(a);
133- // if (check_URL_add_link(cppSrc))
134- // srcPath = cppSrc;
135- // else if (check_URL_add_link(ccSrc))
136- // srcPath = ccSrc;
137- // if (srcPath != link.replace("interface", "src")) {
138- // var srcText = "   <a href=\""+srcPath+"\" style=\"text-decoration:underline;\">[goto src]</a>";
139- // cell.innerHTML = cell.innerHTML.concat(srcText);
140- // }
135+ check_URL_add_link ( cppSrc , cell ) ;
141136 }
142137
138+ ////////////////
139+ // PYTHON BIT //
140+ ////////////////
143141 // tests for python imports/fragments
144142 var config = test_py_import ( line ) ;
145143 // if we have a valid python config, turn it into a path
0 commit comments