diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:16:33 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:16:33 +0200 |
commit | 3362620b5f8716ce480b6f12269596c2d2351a52 (patch) | |
tree | 775f03a346d980fda9b2c725349f3c51c06bfaed /build | |
parent | edefd16fbc96d2ca4600544e5d5902591bf0695d (diff) | |
download | php-git-3362620b5f8716ce480b6f12269596c2d2351a52.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/scan_makefile_in.awk | 2 |
3 files changed, 9 insertions, 9 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/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) |