Fossil SCM
Comment fix to go with previous UB NULL fix.
Commit
4d88ef4fcdc1a5c074eb2106afc9ad9bf309c92ffba28b5809d29a80f37ca8cc
Parent
815b4fc493c433a…
1 file changed
+5
-3
+5
-3
| --- src/builtin.c | ||
| +++ src/builtin.c | ||
| @@ -775,13 +775,15 @@ | ||
| 775 | 775 | ** initialize the window.fossil JS API. The first argument is the NAME |
| 776 | 776 | ** part of the first API to emit. All subsequent arguments must be |
| 777 | 777 | ** strings of the NAME part of additional fossil.NAME.js files, |
| 778 | 778 | ** followed by a NULL argument to terminate the list. |
| 779 | 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! | |
| 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. | |
| 783 | 785 | ** |
| 784 | 786 | ** If it is JS_BUNDLED then this routine queues up an emit of ALL of |
| 785 | 787 | ** the JS fossil.XYZ.js APIs which are not strictly specific to a |
| 786 | 788 | ** single page, and then calls builtin_fulfill_js_requests(). The idea |
| 787 | 789 | ** is that we can get better bundle caching and reduced HTTP requests |
| 788 | 790 |
| --- 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 |