Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Made remove_from_argv public for use by the upcoming test-import-manifest command. Fixed description of verify_all_options. Initialized variable to silence gcc warning. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
da4f0c2638bf64e7a726a09cf03dda11 |
| User & Date: | aku 2008-02-01 05:29:52.000 |
Context
|
2008-02-01
| ||
| 05:32 | Fixed description of file checkin.c. Implemented new command test-import-manifest. Updated fossil accessor code in the importer to the changed command line API of test-import-manifest. ... (check-in: b7a93530ef user: aku tags: trunk) | |
| 05:29 | Made remove_from_argv public for use by the upcoming test-import-manifest command. Fixed description of verify_all_options. Initialized variable to silence gcc warning. ... (check-in: da4f0c2638 user: aku tags: trunk) | |
| 05:25 | Reworked the code determining the parent of the currently committed changeset. It should now handle the transition from vendor branch to trunk correctly. ... (check-in: e8efbc317a user: aku tags: trunk) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
258 259 260 261 262 263 264 | fprintf(stderr, "Usage: %s %s %s\n", g.argv[0], g.argv[1], zFormat); exit(1); } /* ** Remove n elements from g.argv beginning with the i-th element. */ | | | 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
fprintf(stderr, "Usage: %s %s %s\n", g.argv[0], g.argv[1], zFormat);
exit(1);
}
/*
** Remove n elements from g.argv beginning with the i-th element.
*/
void remove_from_argv(int i, int n){
int j;
for(j=i+n; j<g.argc; i++, j++){
g.argv[i] = g.argv[j];
}
g.argc = i;
}
|
| ︙ | ︙ | |||
300 301 302 303 304 305 306 |
break;
}
}
return zReturn;
}
/*
| | | 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 |
break;
}
}
return zReturn;
}
/*
** Verify that there are no unprocessed command-line options. If
** Any remaining command-line argument begins with "-" print
** an error message and quit.
*/
void verify_all_options(void){
int i;
for(i=1; i<g.argc; i++){
if( g.argv[i][0]=='-' ){
|
| ︙ | ︙ | |||
455 456 457 458 459 460 461 |
** * The respository database has been located and opened.
**
** Process the webpage specified by the PATH_INFO or REQUEST_URI
** environment variable.
*/
static void process_one_web_page(void){
const char *zPathInfo;
| | | 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 |
** * The respository database has been located and opened.
**
** Process the webpage specified by the PATH_INFO or REQUEST_URI
** environment variable.
*/
static void process_one_web_page(void){
const char *zPathInfo;
char *zPath = NULL;
int idx;
int i, j;
/* Find the page that the user has requested, construct and deliver that
** page.
*/
zPathInfo = P("PATH_INFO");
|
| ︙ | ︙ |