1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00
Commit Graph

31 Commits

Author SHA1 Message Date
Peter Kokot
f0251a8b16 Remove lexer files generated by RE2C
This patch removes generated lexer files by re2c during the build
process so they are not tracked by Git yet can be still shipped when
PHP is released. The genfiles script additionally provides generation
of these lexer files when creating a release of the PHP source code.

The genfiles script refactorings:
- added file header
- echoing steps instead of comments
- cleaning only lines starting with `#line`
- eval removed in favor of direct executed commands
- the debug mode `set -x` removed
- script can be called from any path
- improved comments
2018-11-11 02:55:46 +01:00
Peter Kokot
22c249347e Remove ext/json parser files generated by bison
The parser files for ext/json are generated by bison from the *.y file.
Parser files in Zend and sapi/phpdbg already follow such approach of
these files being ignored from tracking in the Git repository and they
are shipped via the release packages later on. This way the end users
still don't need to have bison dependency installed to install PHP.

The genfiles script was refactored to generate the ext/json parser and
lexer files.
2018-10-24 20:13:04 +02:00
Peter Kokot
c0446d55a2 Remove phpdbg parser files generated by bison
The parser files for phpdbg are generated by bison from the *.y file.
Parser files in Zend already follows such approach of these files being
ignored from tracking in the Git repository and they are shipped via
the release packages. This way the end user still don't need to have
bison dependency installed to install PHP.

The genfiles script was refactored to generate the phpdbg parser and lexer
files.

Empty comment in phpdbg parser y template file has been changed to the
YACC compliant /* empty */ instead of custom one.
2018-10-23 19:04:13 +02:00
Peter Kokot
8217cd20f1 Defragment two Zend related Makefile fragments together
The two are more logically connected together in the Zend directory.
2018-10-21 15:59:16 +02:00
Peter Kokot
1ad08256f3 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:56:38 +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