diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:17:28 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:17:28 +0200 |
commit | 37c329d7153b65fd2430fa42e8af8e8a0cbc0a41 (patch) | |
tree | 7041c722228f74286b96c50fc834652f0c29156f /build | |
parent | 6c2c7dabee006fa735307d92bb223a1fa3d47414 (diff) | |
download | php-git-37c329d7153b65fd2430fa42e8af8e8a0cbc0a41.tar.gz |
Trim trailing whitespace in source code files
Diffstat (limited to 'build')
-rw-r--r-- | build/mkdep.awk | 14 | ||||
-rw-r--r-- | build/order_by_dep.awk | 2 | ||||
-rw-r--r-- | build/php_cxx_compile_stdcxx.m4 | 6 | ||||
-rw-r--r-- | build/scan_makefile_in.awk | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/build/mkdep.awk b/build/mkdep.awk index 752602b339..4bd4f3a07f 100644 --- a/build/mkdep.awk +++ b/build/mkdep.awk @@ -33,16 +33,16 @@ } dif=i-1 - + for (; i <= NF; i++) filenames[i-dif]=$i - + no_files=NF-dif - + for(i = 1; i <= no_files; i++) { if (system("test -r " filenames[i]) != 0) continue - + target=filenames[i] sub(srcdir "/", "", target) target2=target @@ -51,7 +51,7 @@ for (e in used) delete used[e] - + cmdx=cmd " " filenames[i] done=0 while ((cmdx | getline) > 0) { @@ -64,10 +64,10 @@ done=1 printf(" \\\n\t" substr($3,2,length($3)-2)) used[$3] = 1; - } + } } } if (done == 1) print "\n" } -} +} diff --git a/build/order_by_dep.awk b/build/order_by_dep.awk index 281898ecee..ad3781101b 100644 --- a/build/order_by_dep.awk +++ b/build/order_by_dep.awk @@ -77,7 +77,7 @@ function count(arr, n, i) END { # order it correctly out_count = 0; - + while (count(mods)) { for (i = 0; i <= mod_count - 1; i++) { if (i in mods) { diff --git a/build/php_cxx_compile_stdcxx.m4 b/build/php_cxx_compile_stdcxx.m4 index 689aa65e20..8005721c05 100644 --- a/build/php_cxx_compile_stdcxx.m4 +++ b/build/php_cxx_compile_stdcxx.m4 @@ -1,9 +1,9 @@ dnl dnl Based on https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html dnl Author: Anatol Belski <ab@php.net> -dnl +dnl dnl PHP_CXX_COMPILE_STDCXX(version, mandatory|optional, var_name_to_put_switch_in) -dnl +dnl dnl ARGUMENTS dnl dnl first arg - version as 11, 14 or 17 @@ -74,7 +74,7 @@ AC_DEFUN([PHP_CXX_COMPILE_STDCXX], [dnl dnl dnl PHP specific implementation end. -dnl The relevant part of the unchanged original implementation is below. +dnl The relevant part of the unchanged original implementation is below. dnl # diff --git a/build/scan_makefile_in.awk b/build/scan_makefile_in.awk index 0c6d20398f..c7ba9a8c52 100644 --- a/build/scan_makefile_in.awk +++ b/build/scan_makefile_in.awk @@ -2,7 +2,7 @@ BEGIN { mode=0 sources="" } - + mode == 0 && /^LTLIBRARY_SOURCES.*\\$/ { if (match($0, "[^=]*$")) { sources=substr($0, RSTART, RLENGTH-1) |