Commit Graph

27 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
Ferenc Kovacs
72b8a30c1a make it possible to set the re2c and yacc paths via environment variables for genfiles 2015-06-11 00:13:08 +02:00
Jani Taskinen
80550cbd10 MFB53: genfiles update 2008-03-26 15:05:39 +00:00
foobar
b947d6b0d3 More files to have #line directives stripped for release 2005-11-08 20:21:35 +00:00
foobar
a2bd750581 - Make sure parse_date.c is free of #line directives in releases 2005-11-08 15:54:20 +00:00
Derick Rethans
3cdc895213 - Added backward compability wrapper "php_parse_date()".
- Changed WDDX extension to use new date parsing code.
- Removed all remnants to the old parser.
#- I hope that I didn't break the .dsp's...
2005-06-19 22:15:27 +00:00
Andi Gutmans
65b11e4aae - Hope this is the last commit in the series. Make sure that the .h file
- also goes into ext/standard. I'm not sure how 4.2.1 was built with these
- broken files
2002-05-27 14:47:03 +00:00
Andi Gutmans
1fa0bd479a - One more try. 2002-05-27 14:07:41 +00:00
Andi Gutmans
8b95b42bd0 - Isn't Makefile.frag being called? (Weird) 2002-05-27 14:01:10 +00:00
Andi Gutmans
13a6426bd6 - Be a bit more verbose 2002-05-27 13:36:43 +00:00
Andi Gutmans
6e4c046025 - Small fix 2002-05-26 21:26:38 +00:00
Andi Gutmans
779c11af21 - Update genfiles for new build system 2002-05-26 21:05:38 +00:00
Derick Rethans
7bd5199c54 - Fix removal of #line lines 2002-02-19 15:58:31 +00:00
Sascha Schumann
afb022b7ec Remove #line's from var_unserializer.c 2002-01-04 13:10:26 +00:00
Zeev Suraski
3fd258f06b Remove redundant files 2001-08-16 23:58:56 +00:00
Zeev Suraski
e17df3a7bc Update to reflect the changes in the parsers/scanners 2000-11-02 23:05:32 +00:00
Sascha Schumann
c10bf6d129 Save url_scanner_ex.c and don't require re2c to be installed on
the release/snapshot machine.
2000-10-21 17:06:05 +00:00
foobar
d485e7fc29 Regenerate url_scanner_ex.c (always) without '#line' directives for
releases and snapshots. PR: 7154, 7263, 7289
# Sascha: Is this allright?
2000-10-20 01:58:00 +00:00
Sascha Schumann
d51fe40c2d Don't convert to BSD-style Makefiles 2000-09-27 18:59:44 +00:00
foobar
a58406c030 Missed the Zend..fixed. 2000-09-05 05:25:33 +00:00
foobar
b48b561b97 oops. 2000-09-03 21:14:50 +00:00
foobar
e5394bbafe This makes flex and bison not to add those #line directives which
cause trouble with some compilers.
2000-09-03 21:07:10 +00:00
Sascha Schumann
6c68ac0def Some stuff has moved to main 2000-06-16 10:45:36 +00:00
Sascha Schumann
cc7a71592c Generate missing files 2000-05-04 18:00:10 +00:00
Sascha Schumann
7070605a17 Let genfiles work in the new environment 1999-12-30 03:13:21 +00:00
Zeev Suraski
4d2b0715d1 libzend -> Zend 1999-12-19 21:02:54 +00:00
Sascha Schumann
693207a845 Generate files for distribution (also adds parsedate.c) 1999-10-05 14:12:43 +00:00