1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Commit Graph

11 Commits

Author SHA1 Message Date
Peter Kokot 1c850bfcca 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
2018-10-14 12:55:24 +02:00
Gabriel Caruso 84488d921b Remove superfluous SKIPIF sections in more tests 2018-02-04 16:57:08 +01:00
Xinchen Hui 1b9e0de2cc Remove executable permission on inc 2012-10-10 10:44:34 +08:00
Xinchen Hui 610c7fbe7b Remove executable permission on phpt 2012-10-10 10:27:49 +08:00
Jani Taskinen 52797252b4 MFH 2008-08-14 23:47:42 +00:00
Marcus Boerger 66525a739e - MFH Fix comparison of RecursiveDualIterators 2006-12-10 23:44:49 +00:00
Marcus Boerger d26b539c61 - MFH DualIterator 2006-07-09 10:24:32 +00:00
Marcus Boerger 5cabd2f12b - Move tests to proper location now that the tested classes are hardcoded 2005-01-27 00:34:13 +00:00
Marcus Boerger b9470609ad - Minor fixes
- Implement AppendIterator in C
2004-11-01 00:26:59 +00:00
Marcus Boerger 1721e5d44e - More examples 2004-04-28 21:52:51 +00:00
Marcus Boerger 1e264fc509 - Add tests for the examples 2004-04-28 20:10:21 +00:00