From: Daniel Gruno
Date: Thu, 20 Sep 2012 20:14:01 +0000 (+0000)
Subject: whitespace fixes
X-Git-Tag: 2.5.0-alpha~6293
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ffdd7a2dffccc060797e77a6456901ac5c54fdf;p=thirdparty%2Fapache%2Fhttpd.git
whitespace fixes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1388191 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/developer/hooks.xml b/docs/manual/developer/hooks.xml
index fe6a1e14a8d..7c607460492 100644
--- a/docs/manual/developer/hooks.xml
+++ b/docs/manual/developer/hooks.xml
@@ -61,10 +61,10 @@
This is declared as follows:
- APR_HOOK_STRUCT(
- APR_HOOK_LINK(do_something)
- ...
- )
+APR_HOOK_STRUCT(
+ APR_HOOK_LINK(do_something)
+ ...
+)
@@ -88,11 +88,11 @@
something like this:
- void ap_run_do_something(request_rec *r, int n)
- {
- ...
- do_something(r, n);
- }
+void ap_run_do_something(request_rec *r, int n)
+{
+...
+do_something(r, n);
+}
@@ -131,10 +131,10 @@
like so:
- int n, ret;
- request_rec *r;
+int n, ret;
+request_rec *r;
- ret=ap_run_do_something(r, n);
+ret=ap_run_do_something(r, n);
@@ -148,11 +148,11 @@
of the correct type:
- static int my_something_doer(request_rec *r, int n)
- {
- ...
- return OK;
- }
+static int my_something_doer(request_rec *r, int n)
+{
+ ...
+ return OK;
+}
@@ -162,16 +162,16 @@
structure:
- static void my_register_hooks()
- {
- ap_hook_do_something(my_something_doer, NULL, NULL, APR_HOOK_MIDDLE);
- }
-
- mode MODULE_VAR_EXPORT my_module =
- {
- ...
- my_register_hooks /* register hooks */
- };
+static void my_register_hooks()
+{
+ ap_hook_do_something(my_something_doer, NULL, NULL, APR_HOOK_MIDDLE);
+}
+
+mode MODULE_VAR_EXPORT my_module =
+{
+ ...
+ my_register_hooks /* register hooks */
+};
@@ -205,12 +205,12 @@
before we do, then we'd hook as follows:
- static void register_hooks()
- {
- static const char * const aszPre[] = { "mod_xyz.c", "mod_abc.c", NULL };
+static void register_hooks()
+{
+ static const char * const aszPre[] = { "mod_xyz.c", "mod_abc.c", NULL };
- ap_hook_do_something(my_something_doer, aszPre, NULL, APR_HOOK_MIDDLE);
- }
+ ap_hook_do_something(my_something_doer, aszPre, NULL, APR_HOOK_MIDDLE);
+}
Note that the sort used to achieve this is stable, so