752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
|
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
|
+
+
+
+
-
+
|
/* A valid uuid */
}else if( sz==1 && zUuid[0]=='*' ){
zUuid = 0;
}else{
SYNTAX("malformed UUID on T-card");
}
defossilize(zName);
if( zName[0]=='-' ){
if( zValue && *zValue ){
SYNTAX("T-card -name with value");
}
if( zName[0]!='-' && zName[0]!='+' && zName[0]!='*' ){
}else if( zName[0]!='+' && zName[0]!='*' ){
SYNTAX("T-card name does not begin with '-', '+', or '*'");
}
if( validate16(&zName[1], strlen(&zName[1])) ){
/* Do not allow tags whose names look like UUIDs */
SYNTAX("T-card name looks like a UUID");
}
if( p->nTag>=p->nTagAlloc ){
|
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
|
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
|
-
+
-
-
-
-
|
}else if( strcmp(zName, "+closed")==0 ){
blob_append(&comment, " Marked \"Closed\"", -1);
if( zValue && *zValue ){
blob_appendf(&comment, " with note \"%h\"", zValue);
}
blob_append(&comment, ".", 1);
}else if( strcmp(zName, "-closed")==0 ){
blob_append(&comment, " Removed the \"Closed\" mark", -1);
blob_append(&comment, " Removed the \"Closed\" mark.", -1);
if( zValue && *zValue ){
blob_appendf(&comment, " with note \"%h\"", zValue);
}
blob_append(&comment, ".", 1);
}else {
if( zName[0]=='-' ){
blob_appendf(&comment, " Cancel \"%h\"", &zName[1]);
}else if( zName[0]=='+' ){
blob_appendf(&comment, " Add \"%h\"", &zName[1]);
}else{
blob_appendf(&comment, " Add propagating \"%h\"", &zName[1]);
|