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/bcmath | |
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/bcmath')
-rw-r--r-- | ext/bcmath/libbcmath/AUTHORS | 2 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/COPYING.LIB | 3 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/ChangeLog | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/FAQ | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/add.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/compare.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/div.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/divmod.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/doaddsub.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/int2num.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/nearzero.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/neg.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/num2long.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/raise.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/rmzero.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/sqrt.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/str2num.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/sub.c | 1 | ||||
-rw-r--r-- | ext/bcmath/libbcmath/src/zero.c | 1 |
19 files changed, 0 insertions, 22 deletions
diff --git a/ext/bcmath/libbcmath/AUTHORS b/ext/bcmath/libbcmath/AUTHORS index 982db9dc40..f2d831cf65 100644 --- a/ext/bcmath/libbcmath/AUTHORS +++ b/ext/bcmath/libbcmath/AUTHORS @@ -1,3 +1 @@ Phil Nelson <philnelson@acm.org> wrote bcmath library. - - diff --git a/ext/bcmath/libbcmath/COPYING.LIB b/ext/bcmath/libbcmath/COPYING.LIB index c4792dd27a..aa4f4aca85 100644 --- a/ext/bcmath/libbcmath/COPYING.LIB +++ b/ext/bcmath/libbcmath/COPYING.LIB @@ -1,4 +1,3 @@ - GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 @@ -511,5 +510,3 @@ Random Hacker. Ty Coon, President of Vice That's all there is to it! - - diff --git a/ext/bcmath/libbcmath/ChangeLog b/ext/bcmath/libbcmath/ChangeLog index b8d459a2bb..eea6b016e2 100644 --- a/ext/bcmath/libbcmath/ChangeLog +++ b/ext/bcmath/libbcmath/ChangeLog @@ -7,4 +7,3 @@ Wed Jun 7 09:39:02 2000 Phil Nelson <phil@cs.wwu.edu> 2000-05-21 Phil Nelson <phil@cs.wwu.edu> * Initial setup of bcmath library., calling it version 0.1. - diff --git a/ext/bcmath/libbcmath/FAQ b/ext/bcmath/libbcmath/FAQ index 1b06b301ba..423600ac76 100644 --- a/ext/bcmath/libbcmath/FAQ +++ b/ext/bcmath/libbcmath/FAQ @@ -18,4 +18,3 @@ calculate an exact number of digits after the decimal point regardless of the number of digits in the integer part. GMP floats have a "fixed, but arbitrary" mantissa and so multiplying two floats will end up dropping digits BC must calculate. - diff --git a/ext/bcmath/libbcmath/src/add.c b/ext/bcmath/libbcmath/src/add.c index d41ea01914..389fe8e43d 100644 --- a/ext/bcmath/libbcmath/src/add.c +++ b/ext/bcmath/libbcmath/src/add.c @@ -84,4 +84,3 @@ bc_add (n1, n2, result, scale_min) bc_free_num (result); *result = sum; } - diff --git a/ext/bcmath/libbcmath/src/compare.c b/ext/bcmath/libbcmath/src/compare.c index ced7ec1916..f65f697585 100644 --- a/ext/bcmath/libbcmath/src/compare.c +++ b/ext/bcmath/libbcmath/src/compare.c @@ -157,4 +157,3 @@ bc_compare (n1, n2) { return _bc_do_compare (n1, n2, TRUE, FALSE); } - diff --git a/ext/bcmath/libbcmath/src/div.c b/ext/bcmath/libbcmath/src/div.c index a8039f2b76..1be9a09b5c 100644 --- a/ext/bcmath/libbcmath/src/div.c +++ b/ext/bcmath/libbcmath/src/div.c @@ -267,4 +267,3 @@ bc_divide (bc_num n1, bc_num n2, bc_num *quot, int scale) return 0; /* Everything is OK. */ } - diff --git a/ext/bcmath/libbcmath/src/divmod.c b/ext/bcmath/libbcmath/src/divmod.c index 6ee6c255cb..b376bb46b7 100644 --- a/ext/bcmath/libbcmath/src/divmod.c +++ b/ext/bcmath/libbcmath/src/divmod.c @@ -83,4 +83,3 @@ bc_modulo (bc_num num1, bc_num num2, bc_num *result, int scale) { return bc_divmod (num1, num2, NULL, result, scale); } - diff --git a/ext/bcmath/libbcmath/src/doaddsub.c b/ext/bcmath/libbcmath/src/doaddsub.c index dc0ba0614b..e0db6a99b9 100644 --- a/ext/bcmath/libbcmath/src/doaddsub.c +++ b/ext/bcmath/libbcmath/src/doaddsub.c @@ -228,4 +228,3 @@ _bc_do_sub (n1, n2, scale_min) _bc_rm_leading_zeros (diff); return diff; } - diff --git a/ext/bcmath/libbcmath/src/int2num.c b/ext/bcmath/libbcmath/src/int2num.c index 12a3342c39..8da0c8e0ed 100644 --- a/ext/bcmath/libbcmath/src/int2num.c +++ b/ext/bcmath/libbcmath/src/int2num.c @@ -80,4 +80,3 @@ bc_int2num (num, val) while (ix-- > 0) *vptr++ = *--bptr; } - diff --git a/ext/bcmath/libbcmath/src/nearzero.c b/ext/bcmath/libbcmath/src/nearzero.c index 041c7e149d..44d0582d79 100644 --- a/ext/bcmath/libbcmath/src/nearzero.c +++ b/ext/bcmath/libbcmath/src/nearzero.c @@ -65,4 +65,3 @@ bc_is_near_zero (num, scale) else return TRUE; } - diff --git a/ext/bcmath/libbcmath/src/neg.c b/ext/bcmath/libbcmath/src/neg.c index 8c00905598..aeebd0bbb8 100644 --- a/ext/bcmath/libbcmath/src/neg.c +++ b/ext/bcmath/libbcmath/src/neg.c @@ -45,4 +45,3 @@ bc_is_neg (num) { return num->n_sign == MINUS; } - diff --git a/ext/bcmath/libbcmath/src/num2long.c b/ext/bcmath/libbcmath/src/num2long.c index 2cef6791c4..3974dcf286 100644 --- a/ext/bcmath/libbcmath/src/num2long.c +++ b/ext/bcmath/libbcmath/src/num2long.c @@ -66,4 +66,3 @@ bc_num2long (num) else return (-val); } - diff --git a/ext/bcmath/libbcmath/src/raise.c b/ext/bcmath/libbcmath/src/raise.c index 4b938cb3b3..51ce6b99f0 100644 --- a/ext/bcmath/libbcmath/src/raise.c +++ b/ext/bcmath/libbcmath/src/raise.c @@ -120,4 +120,3 @@ bc_raise (bc_num num1, bc_num num2, bc_num *result, int scale) } bc_free_num (&power); } - diff --git a/ext/bcmath/libbcmath/src/rmzero.c b/ext/bcmath/libbcmath/src/rmzero.c index 4751099d24..b9ecc75720 100644 --- a/ext/bcmath/libbcmath/src/rmzero.c +++ b/ext/bcmath/libbcmath/src/rmzero.c @@ -51,4 +51,3 @@ _bc_rm_leading_zeros (num) num->n_len--; } } - diff --git a/ext/bcmath/libbcmath/src/sqrt.c b/ext/bcmath/libbcmath/src/sqrt.c index ffb19fc519..d37d26b8ca 100644 --- a/ext/bcmath/libbcmath/src/sqrt.c +++ b/ext/bcmath/libbcmath/src/sqrt.c @@ -125,4 +125,3 @@ bc_sqrt (bc_num *num, int scale) bc_free_num (&diff); return 1; } - diff --git a/ext/bcmath/libbcmath/src/str2num.c b/ext/bcmath/libbcmath/src/str2num.c index abf68eb1e5..9750c4720c 100644 --- a/ext/bcmath/libbcmath/src/str2num.c +++ b/ext/bcmath/libbcmath/src/str2num.c @@ -108,4 +108,3 @@ bc_str2num (bc_num *num, char *str, int scale) if (bc_is_zero (*num)) (*num)->n_sign = PLUS; } - diff --git a/ext/bcmath/libbcmath/src/sub.c b/ext/bcmath/libbcmath/src/sub.c index 86c876d1c6..7392de6385 100644 --- a/ext/bcmath/libbcmath/src/sub.c +++ b/ext/bcmath/libbcmath/src/sub.c @@ -86,4 +86,3 @@ bc_sub (n1, n2, result, scale_min) bc_free_num (result); *result = diff; } - diff --git a/ext/bcmath/libbcmath/src/zero.c b/ext/bcmath/libbcmath/src/zero.c index 6f0e93a026..1e7f1ccdd4 100644 --- a/ext/bcmath/libbcmath/src/zero.c +++ b/ext/bcmath/libbcmath/src/zero.c @@ -60,4 +60,3 @@ bc_is_zero (bc_num num) else return TRUE; } - |