Fossil SCM

Clarify the exact type used for cmdFlags.

mistachkin 2016-09-23 02:10 trunk
Commit 3ca2bc105a9c9a253c35b95571fce1db52aa5455
2 files changed +1 -1 +2 -2
+1 -1
--- src/dispatch.c
+++ src/dispatch.c
@@ -32,11 +32,11 @@
3232
*/
3333
struct CmdOrPage {
3434
const char *zName; /* Name. Webpages start with "/". Commands do not */
3535
void (*xFunc)(void); /* Function that implements the command or webpage */
3636
const char *zHelp; /* Raw help text */
37
- unsigned eCmdFlags; /* Flags */
37
+ unsigned int eCmdFlags; /* Flags */
3838
};
3939
4040
/***************************************************************************
4141
** These macros must match similar macros in mkindex.c
4242
** Allowed values for CmdOrPage.eCmdFlags.
4343
--- src/dispatch.c
+++ src/dispatch.c
@@ -32,11 +32,11 @@
32 */
33 struct CmdOrPage {
34 const char *zName; /* Name. Webpages start with "/". Commands do not */
35 void (*xFunc)(void); /* Function that implements the command or webpage */
36 const char *zHelp; /* Raw help text */
37 unsigned eCmdFlags; /* Flags */
38 };
39
40 /***************************************************************************
41 ** These macros must match similar macros in mkindex.c
42 ** Allowed values for CmdOrPage.eCmdFlags.
43
--- src/dispatch.c
+++ src/dispatch.c
@@ -32,11 +32,11 @@
32 */
33 struct CmdOrPage {
34 const char *zName; /* Name. Webpages start with "/". Commands do not */
35 void (*xFunc)(void); /* Function that implements the command or webpage */
36 const char *zHelp; /* Raw help text */
37 unsigned int eCmdFlags; /* Flags */
38 };
39
40 /***************************************************************************
41 ** These macros must match similar macros in mkindex.c
42 ** Allowed values for CmdOrPage.eCmdFlags.
43
+2 -2
--- src/th_main.c
+++ src/th_main.c
@@ -2221,11 +2221,11 @@
22212221
** evaluated script raising an error or calling [break]/[continue]) will
22222222
** cause the actual web page processing to be skipped.
22232223
*/
22242224
int Th_WebpageHook(
22252225
const char *zName,
2226
- unsigned cmdFlags
2226
+ unsigned int cmdFlags
22272227
){
22282228
int rc = TH_OK;
22292229
if( !Th_AreHooksEnabled() ) return rc;
22302230
Th_FossilInit(TH_INIT_HOOK);
22312231
Th_Store("web_name", zName);
@@ -2277,11 +2277,11 @@
22772277
** cause an error message to be displayed to the remote user.
22782278
** Currently, TH1 error messages generated by this function are ignored.
22792279
*/
22802280
int Th_WebpageNotify(
22812281
const char *zName,
2282
- unsigned cmdFlags
2282
+ unsigned int cmdFlags
22832283
){
22842284
int rc = TH_OK;
22852285
if( !Th_AreHooksEnabled() ) return rc;
22862286
Th_FossilInit(TH_INIT_HOOK);
22872287
Th_Store("web_name", zName);
22882288
--- src/th_main.c
+++ src/th_main.c
@@ -2221,11 +2221,11 @@
2221 ** evaluated script raising an error or calling [break]/[continue]) will
2222 ** cause the actual web page processing to be skipped.
2223 */
2224 int Th_WebpageHook(
2225 const char *zName,
2226 unsigned cmdFlags
2227 ){
2228 int rc = TH_OK;
2229 if( !Th_AreHooksEnabled() ) return rc;
2230 Th_FossilInit(TH_INIT_HOOK);
2231 Th_Store("web_name", zName);
@@ -2277,11 +2277,11 @@
2277 ** cause an error message to be displayed to the remote user.
2278 ** Currently, TH1 error messages generated by this function are ignored.
2279 */
2280 int Th_WebpageNotify(
2281 const char *zName,
2282 unsigned cmdFlags
2283 ){
2284 int rc = TH_OK;
2285 if( !Th_AreHooksEnabled() ) return rc;
2286 Th_FossilInit(TH_INIT_HOOK);
2287 Th_Store("web_name", zName);
2288
--- src/th_main.c
+++ src/th_main.c
@@ -2221,11 +2221,11 @@
2221 ** evaluated script raising an error or calling [break]/[continue]) will
2222 ** cause the actual web page processing to be skipped.
2223 */
2224 int Th_WebpageHook(
2225 const char *zName,
2226 unsigned int cmdFlags
2227 ){
2228 int rc = TH_OK;
2229 if( !Th_AreHooksEnabled() ) return rc;
2230 Th_FossilInit(TH_INIT_HOOK);
2231 Th_Store("web_name", zName);
@@ -2277,11 +2277,11 @@
2277 ** cause an error message to be displayed to the remote user.
2278 ** Currently, TH1 error messages generated by this function are ignored.
2279 */
2280 int Th_WebpageNotify(
2281 const char *zName,
2282 unsigned int cmdFlags
2283 ){
2284 int rc = TH_OK;
2285 if( !Th_AreHooksEnabled() ) return rc;
2286 Th_FossilInit(TH_INIT_HOOK);
2287 Th_Store("web_name", zName);
2288

Keyboard Shortcuts

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