Fossil SCM

Comment fix to go with previous UB NULL fix.

wyoung 2020-12-04 19:22 trunk
Commit 4d88ef4fcdc1a5c074eb2106afc9ad9bf309c92ffba28b5809d29a80f37ca8cc
1 file changed +5 -3
+5 -3
--- src/builtin.c
+++ src/builtin.c
@@ -775,13 +775,15 @@
775775
** initialize the window.fossil JS API. The first argument is the NAME
776776
** part of the first API to emit. All subsequent arguments must be
777777
** strings of the NAME part of additional fossil.NAME.js files,
778778
** followed by a NULL argument to terminate the list.
779779
**
780
-** e.g. pass it ("fetch", "dom", "tabs", 0) to load those 3 APIs (or
781
-** pass it ("fetch","tabs",0), as "dom" is a dependency of "tabs", so
782
-** it will be automatically loaded). Do not forget the trailing 0!
780
+** e.g. pass it ("fetch", "dom", "tabs", NULL) to load those 3 APIs (or
781
+** pass it ("fetch","tabs",NULL), as "dom" is a dependency of "tabs", so
782
+** it will be automatically loaded). Do not forget the trailing NULL,
783
+** and do not pass 0 instead, since that isn't always equivalent to NULL
784
+** in this context.
783785
**
784786
** If it is JS_BUNDLED then this routine queues up an emit of ALL of
785787
** the JS fossil.XYZ.js APIs which are not strictly specific to a
786788
** single page, and then calls builtin_fulfill_js_requests(). The idea
787789
** is that we can get better bundle caching and reduced HTTP requests
788790
--- src/builtin.c
+++ src/builtin.c
@@ -775,13 +775,15 @@
775 ** initialize the window.fossil JS API. The first argument is the NAME
776 ** part of the first API to emit. All subsequent arguments must be
777 ** strings of the NAME part of additional fossil.NAME.js files,
778 ** followed by a NULL argument to terminate the list.
779 **
780 ** e.g. pass it ("fetch", "dom", "tabs", 0) to load those 3 APIs (or
781 ** pass it ("fetch","tabs",0), as "dom" is a dependency of "tabs", so
782 ** it will be automatically loaded). Do not forget the trailing 0!
 
 
783 **
784 ** If it is JS_BUNDLED then this routine queues up an emit of ALL of
785 ** the JS fossil.XYZ.js APIs which are not strictly specific to a
786 ** single page, and then calls builtin_fulfill_js_requests(). The idea
787 ** is that we can get better bundle caching and reduced HTTP requests
788
--- src/builtin.c
+++ src/builtin.c
@@ -775,13 +775,15 @@
775 ** initialize the window.fossil JS API. The first argument is the NAME
776 ** part of the first API to emit. All subsequent arguments must be
777 ** strings of the NAME part of additional fossil.NAME.js files,
778 ** followed by a NULL argument to terminate the list.
779 **
780 ** e.g. pass it ("fetch", "dom", "tabs", NULL) to load those 3 APIs (or
781 ** pass it ("fetch","tabs",NULL), as "dom" is a dependency of "tabs", so
782 ** it will be automatically loaded). Do not forget the trailing NULL,
783 ** and do not pass 0 instead, since that isn't always equivalent to NULL
784 ** in this context.
785 **
786 ** If it is JS_BUNDLED then this routine queues up an emit of ALL of
787 ** the JS fossil.XYZ.js APIs which are not strictly specific to a
788 ** single page, and then calls builtin_fulfill_js_requests(). The idea
789 ** is that we can get better bundle caching and reduced HTTP requests
790

Keyboard Shortcuts

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