summaryrefslogtreecommitdiff
path: root/ext/skeleton/php_skeleton.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove local variablesPeter Kokot2019-02-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* Redesigned ext_skel to be written entirely in PHP with no dependencies, this ↵Kalle Sommer Nielsen2017-07-231-39/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | means it will now run on Windows without Cygwin and other nonsense. It no longer includes a way to generate XML documentation (the PHP documentation utilities already got tools for that in svn under phpdoc/doc-base) and it no longer support function stubs. $ php ext_skel.php --help php ext_skel.php --ext=<name> [--experimental] [--author=<name>] [--dir=<path>] [--std] [--onlyunix] [--onlywindows] [--help] --ext=<name> The name of the extension defined as <name> --experimental Passed if this extension is experimental, this creates the EXPERIMENTAL file in the root of the extension --author=<name> Your name, this is used if --header is passed and for the CREDITS file --dir=<path> Path to the directory for where extension should be created. Defaults to the directory of where this script lives --std If passed, the standard header and vim rules footer used in extensions that is included in the core, will be used --onlyunix Only generate configure scripts for Unix --onlywindows Only generate configure scripts for Windows --help This help Example usage: $ php ext_skel.php --ext test --std --experimental $ php ext_skel.php --ext kalle --author "Kalle Sommer Nielsen" $ php ext_skel.php --ext phpfi --dir "/home/kalle/dev/" --onlyunix
* Move semicolon into TSRMLS_CACHE_EXTERN/DEFINENikita Popov2016-03-031-1/+1
| | | | Also re bug #71575.
* switch to the unified globals accessor where appropriateAnatol Belski2015-07-291-6/+2
|
* made ZEND_TSRMLS_CACHE_* macros look like function callsAnatol Belski2015-02-161-1/+1
| | | | which also comply with the current semantics for such macros
* trailing whitespace removalStanislav Malyshev2015-01-101-2/+2
|
* integrated the static tsrmls cache into ext/skelAnatol Belski2014-12-171-8/+6
|
* second shot on removing TSRMLS_*Anatol Belski2014-12-141-2/+2
|
* master renames phase 1Anatol Belski2014-08-251-1/+1
|
* fixes to ext/skeletonAnatol Belski2014-08-191-1/+1
|
* fixed skeleton to produce the normalized ext version macrosAnatol Belski2013-10-141-0/+2
| | | | See http://news.php.net/php.pecl.dev/11191 for more info.
* Slightly modernize ext_skel and sekelton/Johannes Schlüter2013-07-171-9/+0
| | | | | | | | | - .svnignore ->.gitignore - Add .gitignore entries for DSO stand-alone builds stuff - Docs don't use CVS but SVN - reorder extname.c file so it needs less forward declarations - take forward declarations out of php_extname.h - Drop #if for 12 years old PHP version compatibility
* Improved PHP binary size and startup speed with GCC4 visibility control (Nuno)Dmitry Stogov2008-01-301-2/+4
|
* typo fixAndrey Hristov2004-02-021-1/+1
|
* ok, re-adding this mostly un-maintained awk/sed/sh nightmare for now ...Hartmut Holzgraefe2003-06-291-0/+56
|
* ext_skel is no more, and ext_skel_ng is moving to PEAR::PECL_GenHartmut Holzgraefe2003-06-291-56/+0
|
* 64 bit corrections to parameters to OnUpdateInt Bug #20994 (Dave)David Hill2003-03-101-1/+1
|
* TSRMG => TSRMLSYasuo Ohgaki2002-04-111-2/+2
|
* More ext_skel cleanupRasmus Lerdorf2001-08-091-5/+12
|
* Fix the .h file (untested)Zeev Suraski2001-08-021-3/+1
|
* hartmfixed and extended the ini parameter and module globals stuffHartmut Holzgraefe2001-05-011-7/+8
| | | | | once again: someone test this please!
* Get rid of HAVE_EXTNAME. This dates back to PHP 3 where source filesSascha Schumann2000-12-011-11/+0
| | | | | were unconditionally compiled. It is not necessary in PHP 4.
* Revert.Sterling Hughes2000-11-201-2/+0
|
* *** empty log message ***Sterling Hughes2000-11-191-0/+2
|
* Get ext_skel working againRasmus Lerdorf2000-10-051-10/+7
|
* Fix some small issues.Sterling Hughes2000-10-031-1/+1
|
* Rename macros which begin with underscore to appropiate macros. The generalSascha Schumann2000-07-031-3/+3
| | | | | | | rule is: macro_name=`echo $filename|tr a-z A-Z|sed 's/\./_/'`
* - Fixed incorrect code generated when all parameters are optional.Jouni Ahto2000-06-151-25/+2
| | | | | | | | | | | | - Fixed handling of grouped optional parameters. - Added an option to generate xml documentation. - Added an option not to be nice and helpful and create all kinds of comments and testing functions. - Added on option to create function stubs only. - Added options --assing-params and --string-lens that change the generated code. - Updated documentation.
* - #ifdef COMPILE_DL_FOOAndi Gutmans2000-06-101-5/+0
| | | | | - #if HAVE_FOO
* # Still a typo.Jouni Ahto2000-06-091-1/+1
|
* # Cosmetic fixes and a typo.Jouni Ahto2000-06-091-1/+1
|
* - Cosmetic changes.Jouni Ahto2000-06-091-30/+31
| | | | | | - Optionally, create function entries, stubs and declarations from names listed in a file.
* - As Sascha requested.Jouni Ahto2000-06-091-4/+8
|
* Change COMPILE_DL to COMPILE_DL_EXTNAMESascha Schumann2000-06-091-1/+1
|
* - Added skeleton module creating script.Jouni Ahto2000-06-091-0/+87