Fossil

Check-in [79b7902c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updates to header-comment documentation for the mkindex utility program. Fix a compiler warning on windows builds.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | release
Files: files | file ages | folders
SHA1:79b7902cdd1a621b8e175bc2efc39a87315c5f27
User & Date: drh 2011-01-01 03:06:47
Original Comment: Updates to header-comment documentation for the mkindex utility program. Fix a compiler warning on windows builds.
References
2011-01-04
15:00 New ticket [e6dbb46c] md5sum of ZIP archives from fixed checkins changes along time. artifact: f6294ae3 user: anonymous
10:41 New ticket [c9d45415] Bad find_filename_changes. artifact: d9b946d4 user: anonymous
09:18 New ticket [74413366] Bad behaviour merging with renames. artifact: 65a9c731 user: anonymous
2011-01-03
22:11 Ticket [6883bdd1] fossil pull shows always 0 bytes received status still Open with 1 other change artifact: 9a971a3f user: drh
2011-01-02
16:41 New ticket [6883bdd1]. artifact: c1c38a0b user: anonymous
Context
2011-01-02
07:37
added Makefile.mingw32cross for Linux cross-compile to Windows check-in: c67c61b6 user: ron tags: trunk
2011-01-01
03:06
Updates to header-comment documentation for the mkindex utility program. Fix a compiler warning on windows builds. check-in: 79b7902c user: drh tags: trunk, release
00:15
Add the /test-all-help webpage used for testing. check-in: 26e269fe user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/cgi.c.

1141
1142
1143
1144
1145
1146
1147


1148
1149
1150
1151
1152
1153
1154
    while( waitpid(0, 0, WNOHANG)>0 ){
      nchildren--;
    }
  }
  /* NOT REACHED */  
  fossil_exit(1);
#endif


}


/*
** Name of days and months.
*/
static const char *azDays[] =







>
>







1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
    while( waitpid(0, 0, WNOHANG)>0 ){
      nchildren--;
    }
  }
  /* NOT REACHED */  
  fossil_exit(1);
#endif
  /* NOT REACHED */
  return 0;
}


/*
** Name of days and months.
*/
static const char *azDays[] =

Changes to src/mkindex.c.

11
12
13
14
15
16
17
18
19



20
21
22
23
24
25
26
..
32
33
34
35
36
37
38










39
40
41
42
43
44
45
**
** Author contact information:
**   drh@hwaci.com
**   http://www.hwaci.com/drh/
**
*******************************************************************************
**
** Build a static hash table that maps URLs into functions to generate
** web pages.



**
** The source code is scanned for comment lines of the form:
**
**       WEBPAGE:  /abc/xyz
**
** This comment should be followed by a function definition of the
** form:
................................................................................
**
** We also scan for comments lines of this form:
**
**       COMMAND:  cmdname
**
** These entries build a constant table used to map command names into
** functions.










*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <assert.h>
#include <string.h>








|
|
>
>
>







 







>
>
>
>
>
>
>
>
>
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
..
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
**
** Author contact information:
**   drh@hwaci.com
**   http://www.hwaci.com/drh/
**
*******************************************************************************
**
** This program scans Fossil source code files looking for special
** comments that indicate a command-line command or a webpage.  This
** routine collects information about these entry points and then
** generates (on standard output) C code used by Fossil to dispatch
** to those entry points.
**
** The source code is scanned for comment lines of the form:
**
**       WEBPAGE:  /abc/xyz
**
** This comment should be followed by a function definition of the
** form:
................................................................................
**
** We also scan for comments lines of this form:
**
**       COMMAND:  cmdname
**
** These entries build a constant table used to map command names into
** functions.
**
** Comment text following COMMAND: through the end of the comment is
** understood to be help text for the command specified.  This help
** text is accumulated and a table containing the text for each command
** is generated.  That table is used implement the "fossil help" command
** and the "/help" HTTP method.
**
** Multiple occurrances of WEBPAGE: or COMMAND: (but not both) can appear
** before each function name.  In this way, webpages and commands can
** have aliases.
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <assert.h>
#include <string.h>