Fossil SCM
Clarify the exact type used for cmdFlags.
Commit
3ca2bc105a9c9a253c35b95571fce1db52aa5455
Parent
a29e05d1ef04567…
2 files changed
+1
-1
+2
-2
+1
-1
| --- src/dispatch.c | ||
| +++ src/dispatch.c | ||
| @@ -32,11 +32,11 @@ | ||
| 32 | 32 | */ |
| 33 | 33 | struct CmdOrPage { |
| 34 | 34 | const char *zName; /* Name. Webpages start with "/". Commands do not */ |
| 35 | 35 | void (*xFunc)(void); /* Function that implements the command or webpage */ |
| 36 | 36 | const char *zHelp; /* Raw help text */ |
| 37 | - unsigned eCmdFlags; /* Flags */ | |
| 37 | + unsigned int eCmdFlags; /* Flags */ | |
| 38 | 38 | }; |
| 39 | 39 | |
| 40 | 40 | /*************************************************************************** |
| 41 | 41 | ** These macros must match similar macros in mkindex.c |
| 42 | 42 | ** Allowed values for CmdOrPage.eCmdFlags. |
| 43 | 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 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 @@ | ||
| 2221 | 2221 | ** evaluated script raising an error or calling [break]/[continue]) will |
| 2222 | 2222 | ** cause the actual web page processing to be skipped. |
| 2223 | 2223 | */ |
| 2224 | 2224 | int Th_WebpageHook( |
| 2225 | 2225 | const char *zName, |
| 2226 | - unsigned cmdFlags | |
| 2226 | + unsigned int cmdFlags | |
| 2227 | 2227 | ){ |
| 2228 | 2228 | int rc = TH_OK; |
| 2229 | 2229 | if( !Th_AreHooksEnabled() ) return rc; |
| 2230 | 2230 | Th_FossilInit(TH_INIT_HOOK); |
| 2231 | 2231 | Th_Store("web_name", zName); |
| @@ -2277,11 +2277,11 @@ | ||
| 2277 | 2277 | ** cause an error message to be displayed to the remote user. |
| 2278 | 2278 | ** Currently, TH1 error messages generated by this function are ignored. |
| 2279 | 2279 | */ |
| 2280 | 2280 | int Th_WebpageNotify( |
| 2281 | 2281 | const char *zName, |
| 2282 | - unsigned cmdFlags | |
| 2282 | + unsigned int cmdFlags | |
| 2283 | 2283 | ){ |
| 2284 | 2284 | int rc = TH_OK; |
| 2285 | 2285 | if( !Th_AreHooksEnabled() ) return rc; |
| 2286 | 2286 | Th_FossilInit(TH_INIT_HOOK); |
| 2287 | 2287 | Th_Store("web_name", zName); |
| 2288 | 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 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 |