Fossil SCM

Trivial makeheaders patch from [https://fossil-scm.org/forum/forumpost/0fc3f6b8d8], plus a small typo fix.

stephan 2020-07-21 12:52 trunk
Commit 00ad7ef3f2caf9342aa3b12cad2a1d36943d04bfe072de928cffb8b7c5ac8ed7
1 file changed +2 -1
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -299,11 +299,11 @@
299299
** to construct large in-memory strings from lots of smaller components.
300300
*/
301301
typedef struct String String;
302302
struct String {
303303
int nAlloc; /* Number of bytes allocated */
304
- int nUsed; /* Number of bytes used (not counting null terminator) */
304
+ int nUsed; /* Number of bytes used (not counting nul terminator) */
305305
char *zText; /* Text of the string */
306306
};
307307
308308
/*
309309
** The following structure contains a lot of state information used
@@ -1405,10 +1405,11 @@
14051405
default:
14061406
break;
14071407
}
14081408
if( skipOne ){
14091409
pFirst = pFirst->pNext;
1410
+ skipOne = 0;
14101411
continue;
14111412
}
14121413
/* Fall thru to the next case */
14131414
case TT_Number:
14141415
if( needSpace ){
14151416
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -299,11 +299,11 @@
299 ** to construct large in-memory strings from lots of smaller components.
300 */
301 typedef struct String String;
302 struct String {
303 int nAlloc; /* Number of bytes allocated */
304 int nUsed; /* Number of bytes used (not counting null terminator) */
305 char *zText; /* Text of the string */
306 };
307
308 /*
309 ** The following structure contains a lot of state information used
@@ -1405,10 +1405,11 @@
1405 default:
1406 break;
1407 }
1408 if( skipOne ){
1409 pFirst = pFirst->pNext;
 
1410 continue;
1411 }
1412 /* Fall thru to the next case */
1413 case TT_Number:
1414 if( needSpace ){
1415
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -299,11 +299,11 @@
299 ** to construct large in-memory strings from lots of smaller components.
300 */
301 typedef struct String String;
302 struct String {
303 int nAlloc; /* Number of bytes allocated */
304 int nUsed; /* Number of bytes used (not counting nul terminator) */
305 char *zText; /* Text of the string */
306 };
307
308 /*
309 ** The following structure contains a lot of state information used
@@ -1405,10 +1405,11 @@
1405 default:
1406 break;
1407 }
1408 if( skipOne ){
1409 pFirst = pFirst->pNext;
1410 skipOne = 0;
1411 continue;
1412 }
1413 /* Fall thru to the next case */
1414 case TT_Number:
1415 if( needSpace ){
1416

Keyboard Shortcuts

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