Skip to content

Commit 1ad0825

Browse files
committed
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
1 parent f87f7bb commit 1ad0825

File tree

431 files changed

+91
-575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

431 files changed

+91
-575
lines changed

.appveyor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
version: "{branch}.build.{build}"
32

43
image: Visual Studio 2017
@@ -50,4 +49,3 @@ build_script:
5049

5150
test_script:
5251
- appveyor\test.bat
53-

Makefile.frag

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#
32
# Zend
43
#

Makefile.gcov

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#
32
# LCOV
43
#

README.EXT_SKEL

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@ SOURCE AND HEADER FILE NAME
4141
OTHER OPTIONS
4242

4343
Run php ext_skel.php --help to see the available options.
44-

README.RELEASE_PROCESS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,4 +373,3 @@ New Release Manager Checklist
373373
5. Request moderation access to announce@php.net and primary-qa-tester@lists.php.net lists, to
374374
be able to moderate your release announcements. All the announcements should be sent from
375375
the @php.net alias.
376-

README.SELF-CONTAINED-EXTENSIONS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,3 @@ PECL SITE CONFORMITY
164164

165165
This macros has to be used within your foo_module_entry to indicate the
166166
extension version.
167-

README.WIN32-BUILD-SYSTEM

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ The Win32 Build System.
33
See https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2
44

55
vim:tw=78:sw=1:ts=1:et
6-

README.md

Lines changed: 0 additions & 1 deletion

TSRM/config.w32

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22

33
ADD_SOURCES("TSRM", "TSRM.c tsrm_strtok_r.c tsrm_win32.c");
44
ADD_FLAG("CFLAGS_BD_TSRM", "/D ZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
5-

Zend/Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ depend:
5353

5454
zend_execute.lo: $(srcdir)/zend_execute.c
5555
$(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(INLINE_CFLAGS) -c $(srcdir)/zend_execute.c
56-

0 commit comments

Comments
 (0)