Fossil SCM

Pedantic function rename, as it will become relevant when work on the ajaxifying the forum start.

stephan 2020-07-31 16:49 ajax-wiki-editor
Commit 41ce65fc31eb6da64c63568c53a468ade30b2127dfc9c66453f2d184577a2c8e
2 files changed +1 -1 +1 -1
+1 -1
--- src/forum.c
+++ src/forum.c
@@ -752,11 +752,11 @@
752752
753753
/*
754754
** Callback for use with style.c:BundleEmitters. Emits all JS code
755755
** required by this page.
756756
*/
757
-void forum_emit_js_bundle(void){
757
+void forumpost_emit_js_bundle(void){
758758
style_emit_script_builtin(1, 0, "forum.js");
759759
style_emit_script_fossil_bootstrap(1);
760760
style_emit_script_dom(1, 0);
761761
style_emit_script_builtin(1, 0, "fossil.page.forumpost.js");
762762
}
763763
--- src/forum.c
+++ src/forum.c
@@ -752,11 +752,11 @@
752
753 /*
754 ** Callback for use with style.c:BundleEmitters. Emits all JS code
755 ** required by this page.
756 */
757 void forum_emit_js_bundle(void){
758 style_emit_script_builtin(1, 0, "forum.js");
759 style_emit_script_fossil_bootstrap(1);
760 style_emit_script_dom(1, 0);
761 style_emit_script_builtin(1, 0, "fossil.page.forumpost.js");
762 }
763
--- src/forum.c
+++ src/forum.c
@@ -752,11 +752,11 @@
752
753 /*
754 ** Callback for use with style.c:BundleEmitters. Emits all JS code
755 ** required by this page.
756 */
757 void forumpost_emit_js_bundle(void){
758 style_emit_script_builtin(1, 0, "forum.js");
759 style_emit_script_fossil_bootstrap(1);
760 style_emit_script_dom(1, 0);
761 style_emit_script_builtin(1, 0, "fossil.page.forumpost.js");
762 }
763
+1 -1
--- src/style.c
+++ src/style.c
@@ -1143,11 +1143,11 @@
11431143
** Map each required bundle here...
11441144
*/
11451145
static const BundleEmitter BundleEmitters[] = {
11461146
/* Keep these sorted for bsearch() */
11471147
{"fileedit.js", fileedit_emit_js_bundle},
1148
-{"forum.js", forum_emit_js_bundle},
1148
+{"forum.js", forumpost_emit_js_bundle},
11491149
{"wikiedit.js", wikiedit_emit_js_bundle}
11501150
};
11511151
11521152
/*
11531153
** Comparison function for bsearch() for searching a BundleEmitter
11541154
--- src/style.c
+++ src/style.c
@@ -1143,11 +1143,11 @@
1143 ** Map each required bundle here...
1144 */
1145 static const BundleEmitter BundleEmitters[] = {
1146 /* Keep these sorted for bsearch() */
1147 {"fileedit.js", fileedit_emit_js_bundle},
1148 {"forum.js", forum_emit_js_bundle},
1149 {"wikiedit.js", wikiedit_emit_js_bundle}
1150 };
1151
1152 /*
1153 ** Comparison function for bsearch() for searching a BundleEmitter
1154
--- src/style.c
+++ src/style.c
@@ -1143,11 +1143,11 @@
1143 ** Map each required bundle here...
1144 */
1145 static const BundleEmitter BundleEmitters[] = {
1146 /* Keep these sorted for bsearch() */
1147 {"fileedit.js", fileedit_emit_js_bundle},
1148 {"forum.js", forumpost_emit_js_bundle},
1149 {"wikiedit.js", wikiedit_emit_js_bundle}
1150 };
1151
1152 /*
1153 ** Comparison function for bsearch() for searching a BundleEmitter
1154

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button