Fossil SCM

Remove strglob() function, which isn't used any more. Various doc fixes, (cherry-picked from the svn-import branch).

jan.nijtmans 2015-01-15 09:57 trunk
Commit 2c79aed2d5bceca4e06f63d4f5f8559f27906afd
+1 -1
--- src/db.c
+++ src/db.c
@@ -2645,11 +2645,11 @@
26452645
}
26462646
}
26472647
}else{
26482648
isManifest = 0;
26492649
while( ctrlSettings[i].name
2650
- && strncmp(ctrlSettings[i].name, zName, n)==0
2650
+ && strncmp(ctrlSettings[i].name, zName, n)==0
26512651
){
26522652
print_setting(&ctrlSettings[i], db_open_local(0));
26532653
i++;
26542654
}
26552655
}
26562656
--- src/db.c
+++ src/db.c
@@ -2645,11 +2645,11 @@
2645 }
2646 }
2647 }else{
2648 isManifest = 0;
2649 while( ctrlSettings[i].name
2650 && strncmp(ctrlSettings[i].name, zName, n)==0
2651 ){
2652 print_setting(&ctrlSettings[i], db_open_local(0));
2653 i++;
2654 }
2655 }
2656
--- src/db.c
+++ src/db.c
@@ -2645,11 +2645,11 @@
2645 }
2646 }
2647 }else{
2648 isManifest = 0;
2649 while( ctrlSettings[i].name
2650 && strncmp(ctrlSettings[i].name, zName, n)==0
2651 ){
2652 print_setting(&ctrlSettings[i], db_open_local(0));
2653 i++;
2654 }
2655 }
2656
+1 -1
--- src/foci.c
+++ src/foci.c
@@ -31,11 +31,11 @@
3131
@ CREATE TABLE files_of_checkin(
3232
@ checkinID INTEGER, -- RID for the checkin manifest
3333
@ filename TEXT, -- Name of a file
3434
@ uuid TEXT, -- SHA1 hash of the file
3535
@ previousName TEXT, -- Name of the file in previous checkin
36
-@ prem TEXT -- Permissions on the file
36
+@ perm TEXT -- Permissions on the file
3737
@ );
3838
;
3939
4040
#if INTERFACE
4141
/*
4242
--- src/foci.c
+++ src/foci.c
@@ -31,11 +31,11 @@
31 @ CREATE TABLE files_of_checkin(
32 @ checkinID INTEGER, -- RID for the checkin manifest
33 @ filename TEXT, -- Name of a file
34 @ uuid TEXT, -- SHA1 hash of the file
35 @ previousName TEXT, -- Name of the file in previous checkin
36 @ prem TEXT -- Permissions on the file
37 @ );
38 ;
39
40 #if INTERFACE
41 /*
42
--- src/foci.c
+++ src/foci.c
@@ -31,11 +31,11 @@
31 @ CREATE TABLE files_of_checkin(
32 @ checkinID INTEGER, -- RID for the checkin manifest
33 @ filename TEXT, -- Name of a file
34 @ uuid TEXT, -- SHA1 hash of the file
35 @ previousName TEXT, -- Name of the file in previous checkin
36 @ perm TEXT -- Permissions on the file
37 @ );
38 ;
39
40 #if INTERFACE
41 /*
42
-19
--- src/glob.c
+++ src/glob.c
@@ -138,29 +138,10 @@
138138
z += i+1;
139139
}
140140
return p;
141141
}
142142
143
-/*
144
-** Return non-zero if string z matches glob pattern zGlob and zero if the
145
-** pattern does not match.
146
-**
147
-** Globbing rules:
148
-**
149
-** '*' Matches any sequence of zero or more characters.
150
-**
151
-** '?' Matches exactly one character.
152
-**
153
-** [...] Matches one character from the enclosed list of
154
-** characters.
155
-**
156
-** [^...] Matches one character not in the enclosed list.
157
-*/
158
-int strglob(const char *zGlob, const char *z){
159
- return sqlite3_strglob(zGlob, z)==0;
160
-}
161
-
162143
/*
163144
** Return true (non-zero) if zString matches any of the patterns in
164145
** the Glob. The value returned is actually a 1-based index of the pattern
165146
** that matched. Return 0 if none of the patterns match zString.
166147
**
167148
--- src/glob.c
+++ src/glob.c
@@ -138,29 +138,10 @@
138 z += i+1;
139 }
140 return p;
141 }
142
143 /*
144 ** Return non-zero if string z matches glob pattern zGlob and zero if the
145 ** pattern does not match.
146 **
147 ** Globbing rules:
148 **
149 ** '*' Matches any sequence of zero or more characters.
150 **
151 ** '?' Matches exactly one character.
152 **
153 ** [...] Matches one character from the enclosed list of
154 ** characters.
155 **
156 ** [^...] Matches one character not in the enclosed list.
157 */
158 int strglob(const char *zGlob, const char *z){
159 return sqlite3_strglob(zGlob, z)==0;
160 }
161
162 /*
163 ** Return true (non-zero) if zString matches any of the patterns in
164 ** the Glob. The value returned is actually a 1-based index of the pattern
165 ** that matched. Return 0 if none of the patterns match zString.
166 **
167
--- src/glob.c
+++ src/glob.c
@@ -138,29 +138,10 @@
138 z += i+1;
139 }
140 return p;
141 }
142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143 /*
144 ** Return true (non-zero) if zString matches any of the patterns in
145 ** the Glob. The value returned is actually a 1-based index of the pattern
146 ** that matched. Return 0 if none of the patterns match zString.
147 **
148
+5 -5
--- src/schema.c
+++ src/schema.c
@@ -126,11 +126,11 @@
126126
@ info TEXT, -- contact information
127127
@ mtime DATE, -- last change. seconds since 1970
128128
@ photo BLOB -- JPEG image of this user
129129
@ );
130130
@
131
-@ -- The VAR table holds miscellanous information about the repository.
131
+@ -- The config table holds miscellanous information about the repository.
132132
@ -- in the form of name-value pairs.
133133
@ --
134134
@ CREATE TABLE config(
135135
@ name TEXT PRIMARY KEY NOT NULL, -- Primary name of the entry
136136
@ value CLOB, -- Content of the named parameter
@@ -449,12 +449,12 @@
449449
#if EXPORT_INTERFACE
450450
# define MAX_INT_TAG 16 /* The largest pre-assigned tag id */
451451
#endif
452452
453453
/*
454
-** The schema for the locate FOSSIL database file found at the root
455
-** of very check-out. This database contains the complete state of
454
+** The schema for the local FOSSIL database file found at the root
455
+** of every check-out. This database contains the complete state of
456456
** the checkout.
457457
*/
458458
const char zLocalSchema[] =
459459
@ -- The VVAR table holds miscellanous information about the local database
460460
@ -- in the form of name-value pairs. This is similar to the VAR table
@@ -481,12 +481,12 @@
481481
@ -- Vfile.chnged is 0 for unmodified files, 1 for files that have
482482
@ -- been edited or which have been subjected to a 3-way merge.
483483
@ -- Vfile.chnged is 2 if the file has been replaced from a different
484484
@ -- version by the merge and 3 if the file has been added by a merge.
485485
@ -- Vfile.chnged is 4|5 is the same as 2|3, but the operation has been
486
-@ -- done by an --integrate merge. The difference between vfile.chnged==2|4
487
-@ -- and a regular add is that with vfile.chnged==2|4 we know that the
486
+@ -- done by an --integrate merge. The difference between vfile.chnged==3|5
487
+@ -- and a regular add is that with vfile.chnged==3|5 we know that the
488488
@ -- current version of the file is already in the repository.
489489
@ --
490490
@ CREATE TABLE vfile(
491491
@ id INTEGER PRIMARY KEY, -- ID of the checked out file
492492
@ vid INTEGER REFERENCES blob, -- The baseline this file is part of.
493493
--- src/schema.c
+++ src/schema.c
@@ -126,11 +126,11 @@
126 @ info TEXT, -- contact information
127 @ mtime DATE, -- last change. seconds since 1970
128 @ photo BLOB -- JPEG image of this user
129 @ );
130 @
131 @ -- The VAR table holds miscellanous information about the repository.
132 @ -- in the form of name-value pairs.
133 @ --
134 @ CREATE TABLE config(
135 @ name TEXT PRIMARY KEY NOT NULL, -- Primary name of the entry
136 @ value CLOB, -- Content of the named parameter
@@ -449,12 +449,12 @@
449 #if EXPORT_INTERFACE
450 # define MAX_INT_TAG 16 /* The largest pre-assigned tag id */
451 #endif
452
453 /*
454 ** The schema for the locate FOSSIL database file found at the root
455 ** of very check-out. This database contains the complete state of
456 ** the checkout.
457 */
458 const char zLocalSchema[] =
459 @ -- The VVAR table holds miscellanous information about the local database
460 @ -- in the form of name-value pairs. This is similar to the VAR table
@@ -481,12 +481,12 @@
481 @ -- Vfile.chnged is 0 for unmodified files, 1 for files that have
482 @ -- been edited or which have been subjected to a 3-way merge.
483 @ -- Vfile.chnged is 2 if the file has been replaced from a different
484 @ -- version by the merge and 3 if the file has been added by a merge.
485 @ -- Vfile.chnged is 4|5 is the same as 2|3, but the operation has been
486 @ -- done by an --integrate merge. The difference between vfile.chnged==2|4
487 @ -- and a regular add is that with vfile.chnged==2|4 we know that the
488 @ -- current version of the file is already in the repository.
489 @ --
490 @ CREATE TABLE vfile(
491 @ id INTEGER PRIMARY KEY, -- ID of the checked out file
492 @ vid INTEGER REFERENCES blob, -- The baseline this file is part of.
493
--- src/schema.c
+++ src/schema.c
@@ -126,11 +126,11 @@
126 @ info TEXT, -- contact information
127 @ mtime DATE, -- last change. seconds since 1970
128 @ photo BLOB -- JPEG image of this user
129 @ );
130 @
131 @ -- The config table holds miscellanous information about the repository.
132 @ -- in the form of name-value pairs.
133 @ --
134 @ CREATE TABLE config(
135 @ name TEXT PRIMARY KEY NOT NULL, -- Primary name of the entry
136 @ value CLOB, -- Content of the named parameter
@@ -449,12 +449,12 @@
449 #if EXPORT_INTERFACE
450 # define MAX_INT_TAG 16 /* The largest pre-assigned tag id */
451 #endif
452
453 /*
454 ** The schema for the local FOSSIL database file found at the root
455 ** of every check-out. This database contains the complete state of
456 ** the checkout.
457 */
458 const char zLocalSchema[] =
459 @ -- The VVAR table holds miscellanous information about the local database
460 @ -- in the form of name-value pairs. This is similar to the VAR table
@@ -481,12 +481,12 @@
481 @ -- Vfile.chnged is 0 for unmodified files, 1 for files that have
482 @ -- been edited or which have been subjected to a 3-way merge.
483 @ -- Vfile.chnged is 2 if the file has been replaced from a different
484 @ -- version by the merge and 3 if the file has been added by a merge.
485 @ -- Vfile.chnged is 4|5 is the same as 2|3, but the operation has been
486 @ -- done by an --integrate merge. The difference between vfile.chnged==3|5
487 @ -- and a regular add is that with vfile.chnged==3|5 we know that the
488 @ -- current version of the file is already in the repository.
489 @ --
490 @ CREATE TABLE vfile(
491 @ id INTEGER PRIMARY KEY, -- ID of the checked out file
492 @ vid INTEGER REFERENCES blob, -- The baseline this file is part of.
493

Keyboard Shortcuts

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