Differences From Artifact [a3ad4c5cb9]:
- File src/doc.c — part of check-in [815b4fc493] at 2020-12-04 18:35:21 on branch trunk — The variadic function builtin_fossil_js_bundle_or() was using 0 as a sentinel to detect end-of-list, but that isn't equivalent to NULL in a list of pointed-to objects in all C compilers, on all systems. Using a GCC/Clang function attribute to force a warning when 0 is passed instead of NULL, then fixed all resulting warnings. This fixes the SEGV reported in [forum:/forumpost/5feca9c36a|forum post 5feca9c36a] on Mac OS X 10.11 with Clang from Xcode 7. Later versions of Clang on macOS don't have this problem, but it's still UB, so fixing it may solve some pain for us later on. (user: wyoung size: 47013) [more...]
To Artifact [77a86b58bd]:
- File src/doc.c — part of check-in [8ac0830bfc] at 2020-12-22 11:58:34 on branch body-feature-class — Calling the new style_set_current_feature() function to override the new TH1 variable $current_feature for Fossil UI pages where the page name isn't what we want used as the "body" CSS class. For the most part, this matches the value currently being passed to style_finish_page(), but a few have changed with the benefit of hindsight. Not all calls to style_finish_page() have a corresponding call to the new function since the default value for $current_page now suffices. (user: wyoung size: 47049)
| ︙ | |||
904 905 906 907 908 909 910 911 912 913 914 915 916 917 | 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 | + |
#ifdef FOSSIL_ENABLE_TH1_DOCS
, "index.th1"
#endif
};
login_check_credentials();
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
style_set_current_feature("doc");
blob_init(&title, 0, 0);
zDfltTitle = isUV ? "" : "Documentation";
db_begin_transaction();
while( rid==0 && (++nMiss)<=count(azSuffix) ){
zName = P("name");
if( isUV ){
if( zName==0 ) zName = "index.wiki";
|
| ︙ |