mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
92ac598aab
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.
65 lines
2.6 KiB
C
65 lines
2.6 KiB
C
/*
|
|
+----------------------------------------------------------------------+
|
|
| Zend Engine |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) Zend Technologies Ltd. (http://www.zend.com) |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to version 2.00 of the Zend license, |
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
| available through the world-wide-web at the following url: |
|
|
| http://www.zend.com/license/2_00.txt. |
|
|
| If you did not receive a copy of the Zend license and are unable to |
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
| license@zend.com so we can mail you a copy immediately. |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Dmitry Stogov <dmitry@php.net> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
#ifndef ZEND_ALLOC_SIZES_H
|
|
#define ZEND_ALLOC_SIZES_H
|
|
|
|
#define ZEND_MM_CHUNK_SIZE (2 * 1024 * 1024) /* 2 MB */
|
|
#define ZEND_MM_PAGE_SIZE (4 * 1024) /* 4 KB */
|
|
#define ZEND_MM_PAGES (ZEND_MM_CHUNK_SIZE / ZEND_MM_PAGE_SIZE) /* 512 */
|
|
#define ZEND_MM_FIRST_PAGE (1)
|
|
|
|
#define ZEND_MM_MIN_SMALL_SIZE 8
|
|
#define ZEND_MM_MAX_SMALL_SIZE 3072
|
|
#define ZEND_MM_MAX_LARGE_SIZE (ZEND_MM_CHUNK_SIZE - (ZEND_MM_PAGE_SIZE * ZEND_MM_FIRST_PAGE))
|
|
|
|
/* num, size, count, pages */
|
|
#define ZEND_MM_BINS_INFO(_, x, y) \
|
|
_( 0, 8, 512, 1, x, y) \
|
|
_( 1, 16, 256, 1, x, y) \
|
|
_( 2, 24, 170, 1, x, y) \
|
|
_( 3, 32, 128, 1, x, y) \
|
|
_( 4, 40, 102, 1, x, y) \
|
|
_( 5, 48, 85, 1, x, y) \
|
|
_( 6, 56, 73, 1, x, y) \
|
|
_( 7, 64, 64, 1, x, y) \
|
|
_( 8, 80, 51, 1, x, y) \
|
|
_( 9, 96, 42, 1, x, y) \
|
|
_(10, 112, 36, 1, x, y) \
|
|
_(11, 128, 32, 1, x, y) \
|
|
_(12, 160, 25, 1, x, y) \
|
|
_(13, 192, 21, 1, x, y) \
|
|
_(14, 224, 18, 1, x, y) \
|
|
_(15, 256, 16, 1, x, y) \
|
|
_(16, 320, 64, 5, x, y) \
|
|
_(17, 384, 32, 3, x, y) \
|
|
_(18, 448, 9, 1, x, y) \
|
|
_(19, 512, 8, 1, x, y) \
|
|
_(20, 640, 32, 5, x, y) \
|
|
_(21, 768, 16, 3, x, y) \
|
|
_(22, 896, 9, 2, x, y) \
|
|
_(23, 1024, 8, 2, x, y) \
|
|
_(24, 1280, 16, 5, x, y) \
|
|
_(25, 1536, 8, 3, x, y) \
|
|
_(26, 1792, 16, 7, x, y) \
|
|
_(27, 2048, 8, 4, x, y) \
|
|
_(28, 2560, 8, 5, x, y) \
|
|
_(29, 3072, 4, 3, x, y)
|
|
|
|
#endif /* ZEND_ALLOC_SIZES_H */
|