Fossil SCM

Remove some more duplicates in comments. No functional changes.

danield 2025-12-28 23:00 trunk
Commit d83638e40e3d335e9d260f7738c288b4c19a85e504546c192a3bd89d71df5588
+1 -1
--- src/cgi.c
+++ src/cgi.c
@@ -1682,11 +1682,11 @@
16821682
** be extended in the future.
16831683
**
16841684
** Checks are omitted for any logged-in user.
16851685
**
16861686
** This is the primary defense against attack. Fossil should easily be
1687
-** proof against SQL injection and XSS attacks even without without this
1687
+** proof against SQL injection and XSS attacks even without this
16881688
** routine. Rather, this is an attempt to avoid denial-of-service caused
16891689
** by persistent spiders that hammer the server with dozens or hundreds of
16901690
** probes per seconds as they look for vulnerabilities. In other
16911691
** words, this is an effort to reduce the CPU load imposed by malicious
16921692
** spiders. Though those routine might help make attacks harder, it is
16931693
--- src/cgi.c
+++ src/cgi.c
@@ -1682,11 +1682,11 @@
1682 ** be extended in the future.
1683 **
1684 ** Checks are omitted for any logged-in user.
1685 **
1686 ** This is the primary defense against attack. Fossil should easily be
1687 ** proof against SQL injection and XSS attacks even without without this
1688 ** routine. Rather, this is an attempt to avoid denial-of-service caused
1689 ** by persistent spiders that hammer the server with dozens or hundreds of
1690 ** probes per seconds as they look for vulnerabilities. In other
1691 ** words, this is an effort to reduce the CPU load imposed by malicious
1692 ** spiders. Though those routine might help make attacks harder, it is
1693
--- src/cgi.c
+++ src/cgi.c
@@ -1682,11 +1682,11 @@
1682 ** be extended in the future.
1683 **
1684 ** Checks are omitted for any logged-in user.
1685 **
1686 ** This is the primary defense against attack. Fossil should easily be
1687 ** proof against SQL injection and XSS attacks even without this
1688 ** routine. Rather, this is an attempt to avoid denial-of-service caused
1689 ** by persistent spiders that hammer the server with dozens or hundreds of
1690 ** probes per seconds as they look for vulnerabilities. In other
1691 ** words, this is an effort to reduce the CPU load imposed by malicious
1692 ** spiders. Though those routine might help make attacks harder, it is
1693
+1 -1
--- src/fileedit.c
+++ src/fileedit.c
@@ -400,11 +400,11 @@
400400
** This routine uses the state from the given fully-populated pCI
401401
** argument to add pCI->fileContent to the database, and create and
402402
** save a manifest for that change. Ownership of pCI and its contents
403403
** are unchanged.
404404
**
405
-** This function may may modify pCI as follows:
405
+** This function may modify pCI as follows:
406406
**
407407
** - If one of Manifest pCI->pParent or pCI->zParentUuid are NULL,
408408
** then the other will be assigned based on its counterpart. Both
409409
** may not be NULL.
410410
**
411411
--- src/fileedit.c
+++ src/fileedit.c
@@ -400,11 +400,11 @@
400 ** This routine uses the state from the given fully-populated pCI
401 ** argument to add pCI->fileContent to the database, and create and
402 ** save a manifest for that change. Ownership of pCI and its contents
403 ** are unchanged.
404 **
405 ** This function may may modify pCI as follows:
406 **
407 ** - If one of Manifest pCI->pParent or pCI->zParentUuid are NULL,
408 ** then the other will be assigned based on its counterpart. Both
409 ** may not be NULL.
410 **
411
--- src/fileedit.c
+++ src/fileedit.c
@@ -400,11 +400,11 @@
400 ** This routine uses the state from the given fully-populated pCI
401 ** argument to add pCI->fileContent to the database, and create and
402 ** save a manifest for that change. Ownership of pCI and its contents
403 ** are unchanged.
404 **
405 ** This function may modify pCI as follows:
406 **
407 ** - If one of Manifest pCI->pParent or pCI->zParentUuid are NULL,
408 ** then the other will be assigned based on its counterpart. Both
409 ** may not be NULL.
410 **
411
--- src/fossil.confirmer.js
+++ src/fossil.confirmer.js
@@ -168,11 +168,11 @@
168168
childs.forEach((e)=>target.appendChild(e));
169169
}
170170
}
171171
const formatCountdown = (txt, number) => txt + " ["+number+"]";
172172
if(opt.pinSize && opt.confirmText){
173
- /* Try to pin the element's width the the greater of its
173
+ /* Try to pin the element's width to the greater of its
174174
current width or its waiting-on-confirmation width
175175
to avoid layout reflow when it's activated. */
176176
const digits = (''+(opt.timeout/1000 || opt.ticks)).length;
177177
const lblLong = formatCountdown(opt.confirmText, "00000000".substr(0,digits+1));
178178
const w1 = parseInt(target.getBoundingClientRect().width);
179179
--- src/fossil.confirmer.js
+++ src/fossil.confirmer.js
@@ -168,11 +168,11 @@
168 childs.forEach((e)=>target.appendChild(e));
169 }
170 }
171 const formatCountdown = (txt, number) => txt + " ["+number+"]";
172 if(opt.pinSize && opt.confirmText){
173 /* Try to pin the element's width the the greater of its
174 current width or its waiting-on-confirmation width
175 to avoid layout reflow when it's activated. */
176 const digits = (''+(opt.timeout/1000 || opt.ticks)).length;
177 const lblLong = formatCountdown(opt.confirmText, "00000000".substr(0,digits+1));
178 const w1 = parseInt(target.getBoundingClientRect().width);
179
--- src/fossil.confirmer.js
+++ src/fossil.confirmer.js
@@ -168,11 +168,11 @@
168 childs.forEach((e)=>target.appendChild(e));
169 }
170 }
171 const formatCountdown = (txt, number) => txt + " ["+number+"]";
172 if(opt.pinSize && opt.confirmText){
173 /* Try to pin the element's width to the greater of its
174 current width or its waiting-on-confirmation width
175 to avoid layout reflow when it's activated. */
176 const digits = (''+(opt.timeout/1000 || opt.ticks)).length;
177 const lblLong = formatCountdown(opt.confirmText, "00000000".substr(0,digits+1));
178 const w1 = parseInt(target.getBoundingClientRect().width);
179
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -35,11 +35,11 @@
3535
}
3636
const D = window.fossil.dom;
3737
const allToggles = [/*collection of all diff-toggle checkboxes*/];
3838
let checkedCount =
3939
0 /* When showing more than one diff, keep track of how many
40
- "show/hide" checkboxes are are checked so we can update the
40
+ "show/hide" checkboxes are checked so we can update the
4141
"show/hide all" label dynamically. */;
4242
let btnAll /* UI control to show/hide all diffs */;
4343
/* Install a diff-toggle button for the given diff table element. */
4444
const addToggle = function(diffElem){
4545
const sib = diffElem.previousElementSibling,
@@ -718,11 +718,11 @@
718718
: undefined;
719719
const keySbsScroll = 'sync-diff-scroll' /* F.storage key for persistent user preference */;
720720
if( eToggleParent ){
721721
/* Add a checkbox to toggle sbs scroll sync. Remember that in
722722
order to be UI-consistent in the /vdiff page we have to ensure
723
- that the checkbox is to the LEFT of of its label. We store the
723
+ that the checkbox is to the LEFT of its label. We store the
724724
sync-scroll preference in F.storage (not a cookie) so that it
725725
persists across page loads and different apps. */
726726
cbSync = D.checkbox(keySbsScroll, F.storage.getBool(keySbsScroll,true));
727727
D.append(eToggleParent, D.append(
728728
D.addClass(D.create('span'), 'input-with-label'),
729729
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -35,11 +35,11 @@
35 }
36 const D = window.fossil.dom;
37 const allToggles = [/*collection of all diff-toggle checkboxes*/];
38 let checkedCount =
39 0 /* When showing more than one diff, keep track of how many
40 "show/hide" checkboxes are are checked so we can update the
41 "show/hide all" label dynamically. */;
42 let btnAll /* UI control to show/hide all diffs */;
43 /* Install a diff-toggle button for the given diff table element. */
44 const addToggle = function(diffElem){
45 const sib = diffElem.previousElementSibling,
@@ -718,11 +718,11 @@
718 : undefined;
719 const keySbsScroll = 'sync-diff-scroll' /* F.storage key for persistent user preference */;
720 if( eToggleParent ){
721 /* Add a checkbox to toggle sbs scroll sync. Remember that in
722 order to be UI-consistent in the /vdiff page we have to ensure
723 that the checkbox is to the LEFT of of its label. We store the
724 sync-scroll preference in F.storage (not a cookie) so that it
725 persists across page loads and different apps. */
726 cbSync = D.checkbox(keySbsScroll, F.storage.getBool(keySbsScroll,true));
727 D.append(eToggleParent, D.append(
728 D.addClass(D.create('span'), 'input-with-label'),
729
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -35,11 +35,11 @@
35 }
36 const D = window.fossil.dom;
37 const allToggles = [/*collection of all diff-toggle checkboxes*/];
38 let checkedCount =
39 0 /* When showing more than one diff, keep track of how many
40 "show/hide" checkboxes are checked so we can update the
41 "show/hide all" label dynamically. */;
42 let btnAll /* UI control to show/hide all diffs */;
43 /* Install a diff-toggle button for the given diff table element. */
44 const addToggle = function(diffElem){
45 const sib = diffElem.previousElementSibling,
@@ -718,11 +718,11 @@
718 : undefined;
719 const keySbsScroll = 'sync-diff-scroll' /* F.storage key for persistent user preference */;
720 if( eToggleParent ){
721 /* Add a checkbox to toggle sbs scroll sync. Remember that in
722 order to be UI-consistent in the /vdiff page we have to ensure
723 that the checkbox is to the LEFT of its label. We store the
724 sync-scroll preference in F.storage (not a cookie) so that it
725 persists across page loads and different apps. */
726 cbSync = D.checkbox(keySbsScroll, F.storage.getBool(keySbsScroll,true));
727 D.append(eToggleParent, D.append(
728 D.addClass(D.create('span'), 'input-with-label'),
729
--- src/fossil.dom.js
+++ src/fossil.dom.js
@@ -259,11 +259,11 @@
259259
dom.td = dom.createElemFactoryWithOptionalParent('td');
260260
dom.th = dom.createElemFactoryWithOptionalParent('th');
261261
262262
/**
263263
Creates and returns a FIELDSET element, optionaly with a LEGEND
264
- element added to it. If legendText is an HTMLElement then is is
264
+ element added to it. If legendText is an HTMLElement then it is
265265
assumed to be a LEGEND and is appended as-is, else it is assumed
266266
(if truthy) to be a value suitable for passing to
267267
dom.append(aLegendElement,...).
268268
*/
269269
dom.fieldset = function(legendText){
270270
--- src/fossil.dom.js
+++ src/fossil.dom.js
@@ -259,11 +259,11 @@
259 dom.td = dom.createElemFactoryWithOptionalParent('td');
260 dom.th = dom.createElemFactoryWithOptionalParent('th');
261
262 /**
263 Creates and returns a FIELDSET element, optionaly with a LEGEND
264 element added to it. If legendText is an HTMLElement then is is
265 assumed to be a LEGEND and is appended as-is, else it is assumed
266 (if truthy) to be a value suitable for passing to
267 dom.append(aLegendElement,...).
268 */
269 dom.fieldset = function(legendText){
270
--- src/fossil.dom.js
+++ src/fossil.dom.js
@@ -259,11 +259,11 @@
259 dom.td = dom.createElemFactoryWithOptionalParent('td');
260 dom.th = dom.createElemFactoryWithOptionalParent('th');
261
262 /**
263 Creates and returns a FIELDSET element, optionaly with a LEGEND
264 element added to it. If legendText is an HTMLElement then it is
265 assumed to be a LEGEND and is appended as-is, else it is assumed
266 (if truthy) to be a value suitable for passing to
267 dom.append(aLegendElement,...).
268 */
269 dom.fieldset = function(legendText){
270
--- src/fossil.fetch.js
+++ src/fossil.fetch.js
@@ -61,11 +61,11 @@
6161
reported here, else they are reported through onerror().
6262
Unfortunately, XHR fires two events for a timeout: an
6363
onreadystatechange() and an ontimeout(), in that order. From the
6464
former, however, we cannot unambiguously identify the error as
6565
having been caused by a timeout, so clients which set ontimeout()
66
- will get _two_ callback calls: one with with an HTTP error response
66
+ will get _two_ callback calls: one with an HTTP error response
6767
followed immediately by an ontimeout() response. Error objects
6868
passed to this will have (.name='timeout', .status=xhr.HttpStatus).
6969
In the context of the callback, the options object is "this", Like
7070
onerror(), any exceptions thrown by the ontimeout() handler are
7171
suppressed, but may generate a console error message. The onerror()
7272
--- src/fossil.fetch.js
+++ src/fossil.fetch.js
@@ -61,11 +61,11 @@
61 reported here, else they are reported through onerror().
62 Unfortunately, XHR fires two events for a timeout: an
63 onreadystatechange() and an ontimeout(), in that order. From the
64 former, however, we cannot unambiguously identify the error as
65 having been caused by a timeout, so clients which set ontimeout()
66 will get _two_ callback calls: one with with an HTTP error response
67 followed immediately by an ontimeout() response. Error objects
68 passed to this will have (.name='timeout', .status=xhr.HttpStatus).
69 In the context of the callback, the options object is "this", Like
70 onerror(), any exceptions thrown by the ontimeout() handler are
71 suppressed, but may generate a console error message. The onerror()
72
--- src/fossil.fetch.js
+++ src/fossil.fetch.js
@@ -61,11 +61,11 @@
61 reported here, else they are reported through onerror().
62 Unfortunately, XHR fires two events for a timeout: an
63 onreadystatechange() and an ontimeout(), in that order. From the
64 former, however, we cannot unambiguously identify the error as
65 having been caused by a timeout, so clients which set ontimeout()
66 will get _two_ callback calls: one with an HTTP error response
67 followed immediately by an ontimeout() response. Error objects
68 passed to this will have (.name='timeout', .status=xhr.HttpStatus).
69 In the context of the callback, the options object is "this", Like
70 onerror(), any exceptions thrown by the ontimeout() handler are
71 suppressed, but may generate a console error message. The onerror()
72
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -357,11 +357,11 @@
357357
/** Either scrolls .message-widget element eMsg into view
358358
immediately or, if it represents an inlined image, delays
359359
the scroll until the image is loaded, at which point it will
360360
scroll to either the newest message, if one is set or to
361361
eMsg (the liklihood is good, at least on initial page load,
362
- that the the image won't be loaded until other messages have
362
+ that the image won't be loaded until other messages have
363363
been injected). */
364364
scheduleScrollOfMsg: function(eMsg){
365365
if(1===+eMsg.dataset.hasImage){
366366
eMsg.querySelector('img').addEventListener(
367367
'load', ()=>(this.e.newestMessage || eMsg).scrollIntoView(false)
368368
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -357,11 +357,11 @@
357 /** Either scrolls .message-widget element eMsg into view
358 immediately or, if it represents an inlined image, delays
359 the scroll until the image is loaded, at which point it will
360 scroll to either the newest message, if one is set or to
361 eMsg (the liklihood is good, at least on initial page load,
362 that the the image won't be loaded until other messages have
363 been injected). */
364 scheduleScrollOfMsg: function(eMsg){
365 if(1===+eMsg.dataset.hasImage){
366 eMsg.querySelector('img').addEventListener(
367 'load', ()=>(this.e.newestMessage || eMsg).scrollIntoView(false)
368
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -357,11 +357,11 @@
357 /** Either scrolls .message-widget element eMsg into view
358 immediately or, if it represents an inlined image, delays
359 the scroll until the image is loaded, at which point it will
360 scroll to either the newest message, if one is set or to
361 eMsg (the liklihood is good, at least on initial page load,
362 that the image won't be loaded until other messages have
363 been injected). */
364 scheduleScrollOfMsg: function(eMsg){
365 if(1===+eMsg.dataset.hasImage){
366 eMsg.querySelector('img').addEventListener(
367 'load', ()=>(this.e.newestMessage || eMsg).scrollIntoView(false)
368
--- src/fossil.page.fileedit.js
+++ src/fossil.page.fileedit.js
@@ -1149,11 +1149,11 @@
11491149
return this;
11501150
};
11511151
11521152
/**
11531153
Fetches the page preview based on the contents and settings of
1154
- this page's input fields, and updates the UI with with the
1154
+ this page's input fields, and updates the UI with the
11551155
preview.
11561156
11571157
Returns this object, noting that the operation is async.
11581158
*/
11591159
P.preview = function f(switchToTab){
11601160
--- src/fossil.page.fileedit.js
+++ src/fossil.page.fileedit.js
@@ -1149,11 +1149,11 @@
1149 return this;
1150 };
1151
1152 /**
1153 Fetches the page preview based on the contents and settings of
1154 this page's input fields, and updates the UI with with the
1155 preview.
1156
1157 Returns this object, noting that the operation is async.
1158 */
1159 P.preview = function f(switchToTab){
1160
--- src/fossil.page.fileedit.js
+++ src/fossil.page.fileedit.js
@@ -1149,11 +1149,11 @@
1149 return this;
1150 };
1151
1152 /**
1153 Fetches the page preview based on the contents and settings of
1154 this page's input fields, and updates the UI with the
1155 preview.
1156
1157 Returns this object, noting that the operation is async.
1158 */
1159 P.preview = function f(switchToTab){
1160
--- src/fossil.page.wikiedit.js
+++ src/fossil.page.wikiedit.js
@@ -1457,11 +1457,11 @@
14571457
return this;
14581458
};
14591459
14601460
/**
14611461
Fetches the page preview based on the contents and settings of
1462
- this page's input fields, and updates the UI with with the
1462
+ this page's input fields, and updates the UI with the
14631463
preview.
14641464
14651465
Returns this object, noting that the operation is async.
14661466
*/
14671467
P.preview = function f(switchToTab){
14681468
--- src/fossil.page.wikiedit.js
+++ src/fossil.page.wikiedit.js
@@ -1457,11 +1457,11 @@
1457 return this;
1458 };
1459
1460 /**
1461 Fetches the page preview based on the contents and settings of
1462 this page's input fields, and updates the UI with with the
1463 preview.
1464
1465 Returns this object, noting that the operation is async.
1466 */
1467 P.preview = function f(switchToTab){
1468
--- src/fossil.page.wikiedit.js
+++ src/fossil.page.wikiedit.js
@@ -1457,11 +1457,11 @@
1457 return this;
1458 };
1459
1460 /**
1461 Fetches the page preview based on the contents and settings of
1462 this page's input fields, and updates the UI with the
1463 preview.
1464
1465 Returns this object, noting that the operation is async.
1466 */
1467 P.preview = function f(switchToTab){
1468
--- src/fossil.pikchr.js
+++ src/fossil.pikchr.js
@@ -54,11 +54,11 @@
5454
meta) is handled differently everywhere. Shift is used
5555
by the browser, Ctrl doesn't work on an iMac, and Alt is
5656
intercepted by most Linux window managers to control
5757
window movement! So... we just listen for *any* of them
5858
(except Shift) and the user will need to find one which
59
- works on on their environment. */
59
+ works on their environment. */
6060
|| this.classList.contains('toggle')){
6161
this.classList.toggle('source');
6262
ev.stopPropagation();
6363
ev.preventDefault();
6464
}
6565
--- src/fossil.pikchr.js
+++ src/fossil.pikchr.js
@@ -54,11 +54,11 @@
54 meta) is handled differently everywhere. Shift is used
55 by the browser, Ctrl doesn't work on an iMac, and Alt is
56 intercepted by most Linux window managers to control
57 window movement! So... we just listen for *any* of them
58 (except Shift) and the user will need to find one which
59 works on on their environment. */
60 || this.classList.contains('toggle')){
61 this.classList.toggle('source');
62 ev.stopPropagation();
63 ev.preventDefault();
64 }
65
--- src/fossil.pikchr.js
+++ src/fossil.pikchr.js
@@ -54,11 +54,11 @@
54 meta) is handled differently everywhere. Shift is used
55 by the browser, Ctrl doesn't work on an iMac, and Alt is
56 intercepted by most Linux window managers to control
57 window movement! So... we just listen for *any* of them
58 (except Shift) and the user will need to find one which
59 works on their environment. */
60 || this.classList.contains('toggle')){
61 this.classList.toggle('source');
62 ev.stopPropagation();
63 ev.preventDefault();
64 }
65
--- src/fossil.wikiedit-wysiwyg.js
+++ src/fossil.wikiedit-wysiwyg.js
@@ -459,11 +459,11 @@
459459
editor.
460460
461461
Must either be called via an onPageLoad handler via the site
462462
skin's footer or else it can be called manually from the dev
463463
tools console. Calling it too early (e.g. in the page footer
464
- outside of an an onPageLoad handler) will crash because wikiedit
464
+ outside of an onPageLoad handler) will crash because wikiedit
465465
has not been initialized.
466466
*/
467467
init: function(){
468468
initDoc();
469469
const content = F.page.wikiContent() || '';
470470
--- src/fossil.wikiedit-wysiwyg.js
+++ src/fossil.wikiedit-wysiwyg.js
@@ -459,11 +459,11 @@
459 editor.
460
461 Must either be called via an onPageLoad handler via the site
462 skin's footer or else it can be called manually from the dev
463 tools console. Calling it too early (e.g. in the page footer
464 outside of an an onPageLoad handler) will crash because wikiedit
465 has not been initialized.
466 */
467 init: function(){
468 initDoc();
469 const content = F.page.wikiContent() || '';
470
--- src/fossil.wikiedit-wysiwyg.js
+++ src/fossil.wikiedit-wysiwyg.js
@@ -459,11 +459,11 @@
459 editor.
460
461 Must either be called via an onPageLoad handler via the site
462 skin's footer or else it can be called manually from the dev
463 tools console. Calling it too early (e.g. in the page footer
464 outside of an onPageLoad handler) will crash because wikiedit
465 has not been initialized.
466 */
467 init: function(){
468 initDoc();
469 const content = F.page.wikiContent() || '';
470
+1 -1
--- src/graph.c
+++ src/graph.c
@@ -51,11 +51,11 @@
5151
5252
/*
5353
** The type of integer identifiers for rows of the graph.
5454
**
5555
** For a normal /timeline graph, the identifiers are never that big
56
-** an an ordinary 32-bit int will work fine. But for the /finfo page,
56
+** an ordinary 32-bit int will work fine. But for the /finfo page,
5757
** the identifier is a combination of the BLOB.RID and the FILENAME.FNID
5858
** values, and so it can become quite large for repos that have both many
5959
** check-ins and many files. For this reason, we make the identifier
6060
** a 64-bit integer, to dramatically reduce the risk of an overflow.
6161
*/
6262
--- src/graph.c
+++ src/graph.c
@@ -51,11 +51,11 @@
51
52 /*
53 ** The type of integer identifiers for rows of the graph.
54 **
55 ** For a normal /timeline graph, the identifiers are never that big
56 ** an an ordinary 32-bit int will work fine. But for the /finfo page,
57 ** the identifier is a combination of the BLOB.RID and the FILENAME.FNID
58 ** values, and so it can become quite large for repos that have both many
59 ** check-ins and many files. For this reason, we make the identifier
60 ** a 64-bit integer, to dramatically reduce the risk of an overflow.
61 */
62
--- src/graph.c
+++ src/graph.c
@@ -51,11 +51,11 @@
51
52 /*
53 ** The type of integer identifiers for rows of the graph.
54 **
55 ** For a normal /timeline graph, the identifiers are never that big
56 ** an ordinary 32-bit int will work fine. But for the /finfo page,
57 ** the identifier is a combination of the BLOB.RID and the FILENAME.FNID
58 ** values, and so it can become quite large for repos that have both many
59 ** check-ins and many files. For this reason, we make the identifier
60 ** a 64-bit integer, to dramatically reduce the risk of an overflow.
61 */
62
+1 -1
--- src/piechart.c
+++ src/piechart.c
@@ -26,11 +26,11 @@
2626
# define M_PI 3.1415926535897932385
2727
#endif
2828
2929
/*
3030
** Return an RGB color name given HSV values. The HSV values
31
-** must each be between between 0 and 255. The string
31
+** must each be between 0 and 255. The string
3232
** returned is held in a static buffer and is overwritten
3333
** on each call.
3434
*/
3535
const char *rgbName(unsigned char h, unsigned char s, unsigned char v){
3636
static char zColor[8];
3737
--- src/piechart.c
+++ src/piechart.c
@@ -26,11 +26,11 @@
26 # define M_PI 3.1415926535897932385
27 #endif
28
29 /*
30 ** Return an RGB color name given HSV values. The HSV values
31 ** must each be between between 0 and 255. The string
32 ** returned is held in a static buffer and is overwritten
33 ** on each call.
34 */
35 const char *rgbName(unsigned char h, unsigned char s, unsigned char v){
36 static char zColor[8];
37
--- src/piechart.c
+++ src/piechart.c
@@ -26,11 +26,11 @@
26 # define M_PI 3.1415926535897932385
27 #endif
28
29 /*
30 ** Return an RGB color name given HSV values. The HSV values
31 ** must each be between 0 and 255. The string
32 ** returned is held in a static buffer and is overwritten
33 ** on each call.
34 */
35 const char *rgbName(unsigned char h, unsigned char s, unsigned char v){
36 static char zColor[8];
37
+1 -1
--- src/printf.c
+++ src/printf.c
@@ -456,11 +456,11 @@
456456
** flag_leftjustify TRUE if a '-' is present or if the
457457
** field width was negative.
458458
** flag_zeropad TRUE if the width began with 0.
459459
** flag_long TRUE if the letter 'l' (ell) prefixed
460460
** the conversion character.
461
- ** flag_longlong TRUE if the letter 'll' (ell ell) prefixed
461
+ ** flag_longlong TRUE if the letters 'll' (ell ell) prefixed
462462
** the conversion character.
463463
** flag_blanksign TRUE if a ' ' is present.
464464
** width The specified field width. This is
465465
** always non-negative. Zero is the default.
466466
** precision The specified precision. The default
467467
--- src/printf.c
+++ src/printf.c
@@ -456,11 +456,11 @@
456 ** flag_leftjustify TRUE if a '-' is present or if the
457 ** field width was negative.
458 ** flag_zeropad TRUE if the width began with 0.
459 ** flag_long TRUE if the letter 'l' (ell) prefixed
460 ** the conversion character.
461 ** flag_longlong TRUE if the letter 'll' (ell ell) prefixed
462 ** the conversion character.
463 ** flag_blanksign TRUE if a ' ' is present.
464 ** width The specified field width. This is
465 ** always non-negative. Zero is the default.
466 ** precision The specified precision. The default
467
--- src/printf.c
+++ src/printf.c
@@ -456,11 +456,11 @@
456 ** flag_leftjustify TRUE if a '-' is present or if the
457 ** field width was negative.
458 ** flag_zeropad TRUE if the width began with 0.
459 ** flag_long TRUE if the letter 'l' (ell) prefixed
460 ** the conversion character.
461 ** flag_longlong TRUE if the letters 'll' (ell ell) prefixed
462 ** the conversion character.
463 ** flag_blanksign TRUE if a ' ' is present.
464 ** width The specified field width. This is
465 ** always non-negative. Zero is the default.
466 ** precision The specified precision. The default
467
+1 -1
--- src/schema.c
+++ src/schema.c
@@ -259,11 +259,11 @@
259259
@ -- pfnid = Parent File Name ID.
260260
@ -- isaux = pmid IS AUXiliary parent, not primary parent
261261
@ --
262262
@ -- pid==0 if the file is added by check-in mid.
263263
@ -- pid==(-1) if the file exists in a merge parents but not in the primary
264
-@ -- parent. In other words, if the file file was added by merge.
264
+@ -- parent. In other words, if the file was added by merge.
265265
@ -- fid==0 if the file is removed by check-in mid.
266266
@ --
267267
@ CREATE TABLE mlink(
268268
@ mid INTEGER, -- Check-in that contains fid
269269
@ fid INTEGER, -- New file content. 0 if deleted
270270
--- src/schema.c
+++ src/schema.c
@@ -259,11 +259,11 @@
259 @ -- pfnid = Parent File Name ID.
260 @ -- isaux = pmid IS AUXiliary parent, not primary parent
261 @ --
262 @ -- pid==0 if the file is added by check-in mid.
263 @ -- pid==(-1) if the file exists in a merge parents but not in the primary
264 @ -- parent. In other words, if the file file was added by merge.
265 @ -- fid==0 if the file is removed by check-in mid.
266 @ --
267 @ CREATE TABLE mlink(
268 @ mid INTEGER, -- Check-in that contains fid
269 @ fid INTEGER, -- New file content. 0 if deleted
270
--- src/schema.c
+++ src/schema.c
@@ -259,11 +259,11 @@
259 @ -- pfnid = Parent File Name ID.
260 @ -- isaux = pmid IS AUXiliary parent, not primary parent
261 @ --
262 @ -- pid==0 if the file is added by check-in mid.
263 @ -- pid==(-1) if the file exists in a merge parents but not in the primary
264 @ -- parent. In other words, if the file was added by merge.
265 @ -- fid==0 if the file is removed by check-in mid.
266 @ --
267 @ CREATE TABLE mlink(
268 @ mid INTEGER, -- Check-in that contains fid
269 @ fid INTEGER, -- New file content. 0 if deleted
270
+1 -1
--- src/stat.c
+++ src/stat.c
@@ -503,11 +503,11 @@
503503
** access URL.
504504
**
505505
** Algorithm:
506506
**
507507
** The public URL is given by the email-url property. But it is only
508
-** returned if there have been one more more accesses (as recorded by
508
+** returned if there have been one or more accesses (as recorded by
509509
** "baseurl:URL" entries in the CONFIG table).
510510
*/
511511
const char *public_url(void){
512512
const char *zUrl = db_get("email-url", 0);
513513
if( zUrl==0 ) return 0;
514514
--- src/stat.c
+++ src/stat.c
@@ -503,11 +503,11 @@
503 ** access URL.
504 **
505 ** Algorithm:
506 **
507 ** The public URL is given by the email-url property. But it is only
508 ** returned if there have been one more more accesses (as recorded by
509 ** "baseurl:URL" entries in the CONFIG table).
510 */
511 const char *public_url(void){
512 const char *zUrl = db_get("email-url", 0);
513 if( zUrl==0 ) return 0;
514
--- src/stat.c
+++ src/stat.c
@@ -503,11 +503,11 @@
503 ** access URL.
504 **
505 ** Algorithm:
506 **
507 ** The public URL is given by the email-url property. But it is only
508 ** returned if there have been one or more accesses (as recorded by
509 ** "baseurl:URL" entries in the CONFIG table).
510 */
511 const char *public_url(void){
512 const char *zUrl = db_get("email-url", 0);
513 if( zUrl==0 ) return 0;
514
+1 -1
--- src/th_main.c
+++ src/th_main.c
@@ -1065,11 +1065,11 @@
10651065
10661066
10671067
/*
10681068
** TH1 command: anycap STRING
10691069
**
1070
-** Return true if the current user user
1070
+** Return true if the current user
10711071
** has any one of the capabilities listed in STRING.
10721072
*/
10731073
static int anycapCmd(
10741074
Th_Interp *interp,
10751075
void *p,
10761076
--- src/th_main.c
+++ src/th_main.c
@@ -1065,11 +1065,11 @@
1065
1066
1067 /*
1068 ** TH1 command: anycap STRING
1069 **
1070 ** Return true if the current user user
1071 ** has any one of the capabilities listed in STRING.
1072 */
1073 static int anycapCmd(
1074 Th_Interp *interp,
1075 void *p,
1076
--- src/th_main.c
+++ src/th_main.c
@@ -1065,11 +1065,11 @@
1065
1066
1067 /*
1068 ** TH1 command: anycap STRING
1069 **
1070 ** Return true if the current user
1071 ** has any one of the capabilities listed in STRING.
1072 */
1073 static int anycapCmd(
1074 Th_Interp *interp,
1075 void *p,
1076

Keyboard Shortcuts

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