diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 12:56:38 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 12:56:38 +0200 |
commit | 1ad08256f349fa513157437abc4feb245cce03fc (patch) | |
tree | a6bd8d17fa64b625757ac04b1436696c3e760f61 /ext/xmlrpc | |
parent | f87f7bb8c7be413afd02548435112fa2c5030a4a (diff) | |
download | php-git-1ad08256f349fa513157437abc4feb245cce03fc.tar.gz |
Sync leading and final newlines in source code files
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
Diffstat (limited to 'ext/xmlrpc')
-rw-r--r-- | ext/xmlrpc/config.w32 | 1 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/README | 5 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/base64.h | 1 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/encodings.c | 1 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/system_methods.c | 3 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/system_methods_private.h | 4 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/xml_to_dandarpc.c | 1 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/xml_to_soap.c | 1 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/xml_to_xmlrpc.c | 1 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/xmlrpc.h | 3 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/xmlrpc_introspection.h | 3 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/xmlrpc_introspection_private.h | 4 | ||||
-rw-r--r-- | ext/xmlrpc/libxmlrpc/xmlrpc_private.h | 1 |
13 files changed, 0 insertions, 29 deletions
diff --git a/ext/xmlrpc/config.w32 b/ext/xmlrpc/config.w32 index 1d7d57cae4..87f4412a92 100644 --- a/ext/xmlrpc/config.w32 +++ b/ext/xmlrpc/config.w32 @@ -18,4 +18,3 @@ if (PHP_XMLRPC != "no") { PHP_XMLRPC = "no"; } } - diff --git a/ext/xmlrpc/libxmlrpc/README b/ext/xmlrpc/libxmlrpc/README index 323edfa671..4835cd68e9 100644 --- a/ext/xmlrpc/libxmlrpc/README +++ b/ext/xmlrpc/libxmlrpc/README @@ -10,8 +10,3 @@ The rules are: This allows us to have a nicely encapsulated C api with opaque data types and private functions that are nonetheless shared between source files without redundant extern declarations.. - - - - - diff --git a/ext/xmlrpc/libxmlrpc/base64.h b/ext/xmlrpc/libxmlrpc/base64.h index 6a0c8ef6fc..f0272b4356 100644 --- a/ext/xmlrpc/libxmlrpc/base64.h +++ b/ext/xmlrpc/libxmlrpc/base64.h @@ -35,4 +35,3 @@ void _free_real(void *p, char *file, int line); #define malloc(s) _malloc_real(s,__FILE__,__LINE__) #define free(p) _free_real(p, __FILE__,__LINE__) #endif - diff --git a/ext/xmlrpc/libxmlrpc/encodings.c b/ext/xmlrpc/libxmlrpc/encodings.c index 77b5cc15a6..fb75dbb9dc 100644 --- a/ext/xmlrpc/libxmlrpc/encodings.c +++ b/ext/xmlrpc/libxmlrpc/encodings.c @@ -110,4 +110,3 @@ char* utf8_decode(const char *s, int len, int *newlen, const char* encoding) { return convert(s, len, newlen, "UTF-8", encoding); } - diff --git a/ext/xmlrpc/libxmlrpc/system_methods.c b/ext/xmlrpc/libxmlrpc/system_methods.c index ff5e651fd0..31f4156a5d 100644 --- a/ext/xmlrpc/libxmlrpc/system_methods.c +++ b/ext/xmlrpc/libxmlrpc/system_methods.c @@ -370,6 +370,3 @@ XMLRPC_VALUE xsm_system_get_capabilities_cb(XMLRPC_SERVER server, XMLRPC_REQUEST /*-*********************** * End System Methods API * *************************/ - - - diff --git a/ext/xmlrpc/libxmlrpc/system_methods_private.h b/ext/xmlrpc/libxmlrpc/system_methods_private.h index fa3fc279f2..bea8779da9 100644 --- a/ext/xmlrpc/libxmlrpc/system_methods_private.h +++ b/ext/xmlrpc/libxmlrpc/system_methods_private.h @@ -85,7 +85,3 @@ int xsm_is_system_method(XMLRPC_Callback cb); #endif /* __SYSTEM_METHODS_PRIVATE_H */ - - - - diff --git a/ext/xmlrpc/libxmlrpc/xml_to_dandarpc.c b/ext/xmlrpc/libxmlrpc/xml_to_dandarpc.c index 63cc52d6b7..0a391b8444 100644 --- a/ext/xmlrpc/libxmlrpc/xml_to_dandarpc.c +++ b/ext/xmlrpc/libxmlrpc/xml_to_dandarpc.c @@ -313,4 +313,3 @@ xml_element* DANDARPC_REQUEST_to_xml_element(XMLRPC_REQUEST request) { } return root; } - diff --git a/ext/xmlrpc/libxmlrpc/xml_to_soap.c b/ext/xmlrpc/libxmlrpc/xml_to_soap.c index 64a9a6eaa5..cd0933fcbc 100644 --- a/ext/xmlrpc/libxmlrpc/xml_to_soap.c +++ b/ext/xmlrpc/libxmlrpc/xml_to_soap.c @@ -664,4 +664,3 @@ xml_element* SOAP_REQUEST_to_xml_element(XMLRPC_REQUEST request) { return root; } - diff --git a/ext/xmlrpc/libxmlrpc/xml_to_xmlrpc.c b/ext/xmlrpc/libxmlrpc/xml_to_xmlrpc.c index 309f0dce3d..860cba3e36 100644 --- a/ext/xmlrpc/libxmlrpc/xml_to_xmlrpc.c +++ b/ext/xmlrpc/libxmlrpc/xml_to_xmlrpc.c @@ -407,4 +407,3 @@ xml_element* XMLRPC_REQUEST_to_xml_element(XMLRPC_REQUEST request) { } return wrapper; } - diff --git a/ext/xmlrpc/libxmlrpc/xmlrpc.h b/ext/xmlrpc/libxmlrpc/xmlrpc.h index 12b6c7a8ee..c3b30cbea8 100644 --- a/ext/xmlrpc/libxmlrpc/xmlrpc.h +++ b/ext/xmlrpc/libxmlrpc/xmlrpc.h @@ -450,6 +450,3 @@ const char* XMLRPC_GetVersionString(void); #endif #endif /* not XMLRPC_ALREADY_INCLUDED */ - - - diff --git a/ext/xmlrpc/libxmlrpc/xmlrpc_introspection.h b/ext/xmlrpc/libxmlrpc/xmlrpc_introspection.h index 41a31c6f51..2f90fc0e3c 100644 --- a/ext/xmlrpc/libxmlrpc/xmlrpc_introspection.h +++ b/ext/xmlrpc/libxmlrpc/xmlrpc_introspection.h @@ -96,6 +96,3 @@ int XMLRPC_ServerRegisterIntrospectionCallback(XMLRPC_SERVER server, XMLRPC_Intr #endif /* __XI_INTROSPECTION_H */ - - - diff --git a/ext/xmlrpc/libxmlrpc/xmlrpc_introspection_private.h b/ext/xmlrpc/libxmlrpc/xmlrpc_introspection_private.h index 5b231fe344..1a5d9f79a9 100644 --- a/ext/xmlrpc/libxmlrpc/xmlrpc_introspection_private.h +++ b/ext/xmlrpc/libxmlrpc/xmlrpc_introspection_private.h @@ -100,7 +100,3 @@ void xi_register_system_methods(XMLRPC_SERVER server); #endif /* __XI_INTROSPECTION_PRIVATE_H */ - - - - diff --git a/ext/xmlrpc/libxmlrpc/xmlrpc_private.h b/ext/xmlrpc/libxmlrpc/xmlrpc_private.h index e43f78ecfb..7cda5c24be 100644 --- a/ext/xmlrpc/libxmlrpc/xmlrpc_private.h +++ b/ext/xmlrpc/libxmlrpc/xmlrpc_private.h @@ -175,4 +175,3 @@ const char* type_to_str(XMLRPC_VALUE_TYPE type, XMLRPC_VECTOR_TYPE vtype); #endif /* XMLRPC_PRIVATE_ALREADY_INCLUDED */ - |