Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Remove dead code to fix harmless compiler warnings. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
4c666ccf92b7827311c86bd09163eedd |
| User & Date: | drh 2017-09-20 13:35:11.252 |
Context
|
2017-09-20
| ||
| 13:36 | Fix another harmless compiler warning. check-in: 49b6f89b4f user: drh tags: trunk | |
| 13:35 | Remove dead code to fix harmless compiler warnings. check-in: 4c666ccf92 user: drh tags: trunk | |
| 13:21 | Some simple documentation on the URL Alias setup page. check-in: a3b689b3cd user: drh tags: trunk | |
Changes
Changes to src/configure.c.
| ︙ | ︙ | |||
242 243 244 245 246 247 248 |
if( strncmp(zName, "walias:/", 8)==0 ){
return CONFIGSET_ALIAS;
}
return 0;
}
/*
| < < < < < < < < | < < < < < < < < < < < < < < < < < < < < < | 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
if( strncmp(zName, "walias:/", 8)==0 ){
return CONFIGSET_ALIAS;
}
return 0;
}
/*
** A mask of all configuration tables that have been reset already.
*/
static int configHasBeenReset = 0;
/*
** Mask of modified configuration sets
*/
static int rebuildMask = 0;
/*
|
| ︙ | ︙ |
Changes to src/dispatch.c.
| ︙ | ︙ | |||
143 144 145 146 147 148 149 |
** usually is), then all query parameters are added to the CGI environment.
** Except, query parameters of the form "X!" cause any CGI X variable to be
** removed.
*/
int dispatch_alias(const char *zName, const CmdOrPage **ppCmd){
char *z;
char *zQ;
| | < | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
** usually is), then all query parameters are added to the CGI environment.
** Except, query parameters of the form "X!" cause any CGI X variable to be
** removed.
*/
int dispatch_alias(const char *zName, const CmdOrPage **ppCmd){
char *z;
char *zQ;
int i;
z = db_text(0, "SELECT value FROM config WHERE name='walias:%q'",zName);
if( z==0 ) return 1;
for(i=0; z[i] && z[i]!='?'; i++){}
if( z[i]=='?' ){
z[i] = 0;
zQ = &z[i+1];
|
| ︙ | ︙ | |||
433 434 435 436 437 438 439 |
@ </ul></td>
}
@ </tr></table>
@ <h1>Settings:</h1>
@ <table border="0"><tr>
for(i=j=0; i<MX_COMMAND; i++){
| < | 432 433 434 435 436 437 438 439 440 441 442 443 444 445 |
@ </ul></td>
}
@ </tr></table>
@ <h1>Settings:</h1>
@ <table border="0"><tr>
for(i=j=0; i<MX_COMMAND; i++){
if( (aCommand[i].eCmdFlags & CMDFLAG_SETTING)==0 ) continue;
j++;
}
n = (j+4)/5;
for(i=j=0; i<MX_COMMAND; i++){
const char *z = aCommand[i].zName;
if( (aCommand[i].eCmdFlags & CMDFLAG_SETTING)==0 ) continue;
|
| ︙ | ︙ |
Changes to src/file.c.
| ︙ | ︙ | |||
621 622 623 624 625 626 627 |
** Create the tree of directories in which zFilename belongs, if that sequence
** of directories does not already exist.
**
** On success, return zero. On error, return errorReturn if positive, otherwise
** print an error message and abort.
*/
int file_mkfolder(const char *zFilename, int forceFlag, int errorReturn){
| | | 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 |
** Create the tree of directories in which zFilename belongs, if that sequence
** of directories does not already exist.
**
** On success, return zero. On error, return errorReturn if positive, otherwise
** print an error message and abort.
*/
int file_mkfolder(const char *zFilename, int forceFlag, int errorReturn){
int nName, rc = 0;
char *zName;
nName = strlen(zFilename);
zName = mprintf("%s", zFilename);
nName = file_simplify_name(zName, nName, 0);
while( nName>0 && zName[nName-1]!='/' ){ nName--; }
if( nName ){
|
| ︙ | ︙ |
Changes to src/stat.c.
| ︙ | ︙ | |||
128 129 130 131 132 133 134 |
char zStored[100];
db_prepare(&q,
"SELECT count(*), sum(sz), sum(length(content))"
" FROM unversioned"
" WHERE length(hash)>1"
);
if( db_step(&q)==SQLITE_ROW && (n = db_column_int(&q,0))>0 ){
| | < < | 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
char zStored[100];
db_prepare(&q,
"SELECT count(*), sum(sz), sum(length(content))"
" FROM unversioned"
" WHERE length(hash)>1"
);
if( db_step(&q)==SQLITE_ROW && (n = db_column_int(&q,0))>0 ){
sqlite3_int64 iStored, pct;
iStored = db_column_int64(&q,2);
pct = (iStored*100 + fsize - 1)/fsize;
approxSizeName(sizeof(zStored), zStored, iStored);
@ <tr><th>Unversioned Files:</th><td>
@ %z(href("%R/uvlist"))%d(n) files</a>,
@ %s(zStored) compressed, %d(pct)%% of total repository space
@ </td></tr>
}
db_finalize(&q);
|
| ︙ | ︙ |