diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 12:55:24 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 12:55:24 +0200 |
commit | 1c850bfcca97e0456a716a1889b5cf6c5e477cd8 (patch) | |
tree | 8abc7ddda8e988ba248eefdf3ef05923b7383fbd /ext/bcmath/libbcmath | |
parent | a6d3e56a1ee33f113ee0088b208b2f1bab82c551 (diff) | |
download | php-git-1c850bfcca97e0456a716a1889b5cf6c5e477cd8.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/libbcmath')
-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 ade5b5969a..150f27c53c 100644 --- a/ext/bcmath/libbcmath/src/add.c +++ b/ext/bcmath/libbcmath/src/add.c @@ -85,4 +85,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 6217ef1af3..cb7d04e071 100644 --- a/ext/bcmath/libbcmath/src/compare.c +++ b/ext/bcmath/libbcmath/src/compare.c @@ -158,4 +158,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 df5de29919..b326ea1250 100644 --- a/ext/bcmath/libbcmath/src/div.c +++ b/ext/bcmath/libbcmath/src/div.c @@ -268,4 +268,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 08c2f8a2a2..848a4cc850 100644 --- a/ext/bcmath/libbcmath/src/divmod.c +++ b/ext/bcmath/libbcmath/src/divmod.c @@ -84,4 +84,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 cef0fdbf1b..991c294e99 100644 --- a/ext/bcmath/libbcmath/src/doaddsub.c +++ b/ext/bcmath/libbcmath/src/doaddsub.c @@ -229,4 +229,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 a8965f6040..79a6e19075 100644 --- a/ext/bcmath/libbcmath/src/int2num.c +++ b/ext/bcmath/libbcmath/src/int2num.c @@ -81,4 +81,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 1f2f0708cc..933e501108 100644 --- a/ext/bcmath/libbcmath/src/nearzero.c +++ b/ext/bcmath/libbcmath/src/nearzero.c @@ -66,4 +66,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 619a59bb05..65081dbef6 100644 --- a/ext/bcmath/libbcmath/src/neg.c +++ b/ext/bcmath/libbcmath/src/neg.c @@ -46,4 +46,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 be84986d23..81e82a6fac 100644 --- a/ext/bcmath/libbcmath/src/num2long.c +++ b/ext/bcmath/libbcmath/src/num2long.c @@ -67,4 +67,3 @@ bc_num2long (num) else return (-val); } - diff --git a/ext/bcmath/libbcmath/src/raise.c b/ext/bcmath/libbcmath/src/raise.c index c7838be597..81ee03aeed 100644 --- a/ext/bcmath/libbcmath/src/raise.c +++ b/ext/bcmath/libbcmath/src/raise.c @@ -121,4 +121,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 1b81601b20..93cc26d12d 100644 --- a/ext/bcmath/libbcmath/src/rmzero.c +++ b/ext/bcmath/libbcmath/src/rmzero.c @@ -52,4 +52,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 265d75b5fb..a7c4d732a6 100644 --- a/ext/bcmath/libbcmath/src/sqrt.c +++ b/ext/bcmath/libbcmath/src/sqrt.c @@ -126,4 +126,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 62544de80e..f38d341570 100644 --- a/ext/bcmath/libbcmath/src/str2num.c +++ b/ext/bcmath/libbcmath/src/str2num.c @@ -109,4 +109,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 b63f1bc90a..2278b0f14f 100644 --- a/ext/bcmath/libbcmath/src/sub.c +++ b/ext/bcmath/libbcmath/src/sub.c @@ -87,4 +87,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 ffb5497546..d732dddfcd 100644 --- a/ext/bcmath/libbcmath/src/zero.c +++ b/ext/bcmath/libbcmath/src/zero.c @@ -61,4 +61,3 @@ bc_is_zero (bc_num num) else return TRUE; } - |