summaryrefslogtreecommitdiff
path: root/ext/bcmath
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-14 12:54:08 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-14 12:54:08 +0200
commit60a69daec60f1886e166e8060556777819c66f98 (patch)
tree728557dc23dcef2e95983fd272042912f5c1f712 /ext/bcmath
parent6f343d29a5561c846b1c9d95af56ecb2d659166c (diff)
downloadphp-git-60a69daec60f1886e166e8060556777819c66f98.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/AUTHORS2
-rw-r--r--ext/bcmath/libbcmath/COPYING.LIB3
-rw-r--r--ext/bcmath/libbcmath/ChangeLog1
-rw-r--r--ext/bcmath/libbcmath/FAQ1
-rw-r--r--ext/bcmath/libbcmath/Makefile.am1
-rw-r--r--ext/bcmath/libbcmath/acconfig.h1
-rw-r--r--ext/bcmath/libbcmath/aclocal.m41
-rw-r--r--ext/bcmath/libbcmath/config.h.in1
-rw-r--r--ext/bcmath/libbcmath/configure2
-rw-r--r--ext/bcmath/libbcmath/configure.ac1
-rw-r--r--ext/bcmath/libbcmath/src/add.c1
-rw-r--r--ext/bcmath/libbcmath/src/compare.c1
-rw-r--r--ext/bcmath/libbcmath/src/div.c1
-rw-r--r--ext/bcmath/libbcmath/src/divmod.c1
-rw-r--r--ext/bcmath/libbcmath/src/doaddsub.c1
-rw-r--r--ext/bcmath/libbcmath/src/int2num.c1
-rw-r--r--ext/bcmath/libbcmath/src/nearzero.c1
-rw-r--r--ext/bcmath/libbcmath/src/neg.c1
-rw-r--r--ext/bcmath/libbcmath/src/num2long.c1
-rw-r--r--ext/bcmath/libbcmath/src/raise.c1
-rw-r--r--ext/bcmath/libbcmath/src/rmzero.c1
-rw-r--r--ext/bcmath/libbcmath/src/sqrt.c1
-rw-r--r--ext/bcmath/libbcmath/src/str2num.c1
-rw-r--r--ext/bcmath/libbcmath/src/sub.c1
-rw-r--r--ext/bcmath/libbcmath/src/zero.c1
25 files changed, 0 insertions, 29 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/Makefile.am b/ext/bcmath/libbcmath/Makefile.am
index e5be8201b3..066be6df50 100644
--- a/ext/bcmath/libbcmath/Makefile.am
+++ b/ext/bcmath/libbcmath/Makefile.am
@@ -9,4 +9,3 @@ dist-hook:
cp $(srcdir)/doc/bcmath.1 $(distdir)/doc
cp $(srcdir)/src/private.h $(distdir)/src
cp $(srcdir)/FAQ $(distdir)
-
diff --git a/ext/bcmath/libbcmath/acconfig.h b/ext/bcmath/libbcmath/acconfig.h
index 4d301dcacf..74ee5ddaa8 100644
--- a/ext/bcmath/libbcmath/acconfig.h
+++ b/ext/bcmath/libbcmath/acconfig.h
@@ -6,4 +6,3 @@
/* Define to `size_t' if <sys/types.h> and <stddef.h> don't define. */
#undef ptrdiff_t
-
diff --git a/ext/bcmath/libbcmath/aclocal.m4 b/ext/bcmath/libbcmath/aclocal.m4
index e60c9eb55c..71ebc0fa84 100644
--- a/ext/bcmath/libbcmath/aclocal.m4
+++ b/ext/bcmath/libbcmath/aclocal.m4
@@ -124,4 +124,3 @@ for am_file in <<$1>>; do
am_indx=`expr "<<$>>am_indx" + 1`
done<<>>dnl>>)
changequote([,]))])
-
diff --git a/ext/bcmath/libbcmath/config.h.in b/ext/bcmath/libbcmath/config.h.in
index 21cfb9255f..d9572c474d 100644
--- a/ext/bcmath/libbcmath/config.h.in
+++ b/ext/bcmath/libbcmath/config.h.in
@@ -38,4 +38,3 @@
/* Version number of package */
#undef VERSION
-
diff --git a/ext/bcmath/libbcmath/configure b/ext/bcmath/libbcmath/configure
index 0b74129785..7b766e09e8 100644
--- a/ext/bcmath/libbcmath/configure
+++ b/ext/bcmath/libbcmath/configure
@@ -1855,5 +1855,3 @@ EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
-
-
diff --git a/ext/bcmath/libbcmath/configure.ac b/ext/bcmath/libbcmath/configure.ac
index 3da89e949f..2e5333136e 100644
--- a/ext/bcmath/libbcmath/configure.ac
+++ b/ext/bcmath/libbcmath/configure.ac
@@ -15,4 +15,3 @@ AC_TYPE_SIZE_T
AC_CHECK_TYPE(ptrdiff_t, size_t)
AC_OUTPUT(Makefile src/Makefile doc/Makefile)
-
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 c625d4e526..bf61814a33 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;
}
-