Fossil SCM

This seems to fix the missing is-sorted check in manifest_parse(), but (A) it needs more testing and (B) could use a better error message than the one it ends up generating.

stephan 2021-02-10 22:13 trunk
Commit 2e7a0aacdb1ff31e1744665b4219ee1b8598ea7c8d279490c843e631bd1a95c1
1 file changed +1
--- src/manifest.c
+++ src/manifest.c
@@ -538,10 +538,11 @@
538538
x.atEol = 1;
539539
while( (cType = next_card(&x))!=0 && cType>=cPrevType ){
540540
lineNo++;
541541
if( cType<'A' || cType>'Z' ) SYNTAX("bad card type");
542542
seenCard |= 1 << (cType-'A');
543
+ cPrevType = cType;
543544
switch( cType ){
544545
/*
545546
** A <filename> <target> ?<source>?
546547
**
547548
** Identifies an attachment to either a wiki page or a ticket.
548549
--- src/manifest.c
+++ src/manifest.c
@@ -538,10 +538,11 @@
538 x.atEol = 1;
539 while( (cType = next_card(&x))!=0 && cType>=cPrevType ){
540 lineNo++;
541 if( cType<'A' || cType>'Z' ) SYNTAX("bad card type");
542 seenCard |= 1 << (cType-'A');
 
543 switch( cType ){
544 /*
545 ** A <filename> <target> ?<source>?
546 **
547 ** Identifies an attachment to either a wiki page or a ticket.
548
--- src/manifest.c
+++ src/manifest.c
@@ -538,10 +538,11 @@
538 x.atEol = 1;
539 while( (cType = next_card(&x))!=0 && cType>=cPrevType ){
540 lineNo++;
541 if( cType<'A' || cType>'Z' ) SYNTAX("bad card type");
542 seenCard |= 1 << (cType-'A');
543 cPrevType = cType;
544 switch( cType ){
545 /*
546 ** A <filename> <target> ?<source>?
547 **
548 ** Identifies an attachment to either a wiki page or a ticket.
549

Keyboard Shortcuts

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