1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00
Commit Graph

12 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
Peter Kokot
3362620b5f Trim trailing whitespace in source code files 2018-10-13 14:16:33 +02:00
Marcus Boerger
2e8b9c005b - Update to 2005 2005-02-08 19:10:06 +00:00
Marcus Boerger
e0196d11a4 - Do not autoload if require does the trick 2004-11-01 01:29:06 +00:00
Marcus Boerger
68c22fba72 - Documentation update
- Checkin doxygen config file
# A patched version of doxygen is needed, hopefully 1.3.8 will contain it
2004-05-10 17:26:03 +00:00
Marcus Boerger
a6feb3f405 - Update examples
- Update documentation
- Move classes/interfaces already implemented in c to new subdir internal
2004-05-08 12:24:15 +00:00
Marcus Boerger
7388b6b9ac - Update examples 2004-05-06 22:55:25 +00:00
Marcus Boerger
f679b5c935 Update documentation 2003-12-04 19:39:46 +00:00
Marcus Boerger
3d9ec63384 Update examples 2003-11-22 20:51:15 +00:00
Marcus Boerger
d8943e513c Update examples 2003-07-16 21:52:03 +00:00
Marcus Boerger
f4d3111e8a Fix example 2003-06-22 12:57:53 +00:00
Marcus Boerger
b5a70a72d1 Add spl extension 2003-05-01 23:28:28 +00:00