mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
5d3fab9334
These are either undefined or defined (to value 1): - __DragonFly__ - __FreeBSD__ - HAS_MCAST_EXT - HAVE_GETCWD - HAVE_GETWD - HAVE_GLIBC_ICONV - HAVE_JIT - HAVE_LCHOWN - HAVE_NL_LANGINFO - HAVE_RL_CALLBACK_READ_CHAR - HAVE_RL_ON_NEW_LINE - HAVE_SQL_EXTENDED_FETCH - HAVE_UTIME Follow up of GH-5526 (-Wundef)
120 lines
4.3 KiB
C
Generated
120 lines
4.3 KiB
C
Generated
/* This is a generated file, edit the .stub.php file instead.
|
|
* Stub hash: 7b72b1af4217ac8647096cb7e2c239466949cbd2 */
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_readline, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, prompt, IS_STRING, 1, "null")
|
|
ZEND_END_ARG_INFO()
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_readline_info, 0, 0, IS_MIXED, 0)
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, var_name, IS_STRING, 1, "null")
|
|
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, value, "null")
|
|
ZEND_END_ARG_INFO()
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_readline_add_history, 0, 1, _IS_BOOL, 0)
|
|
ZEND_ARG_TYPE_INFO(0, prompt, IS_STRING, 0)
|
|
ZEND_END_ARG_INFO()
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_readline_clear_history, 0, 0, _IS_BOOL, 0)
|
|
ZEND_END_ARG_INFO()
|
|
|
|
#if defined(HAVE_HISTORY_LIST)
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_readline_list_history, 0, 0, IS_ARRAY, 0)
|
|
ZEND_END_ARG_INFO()
|
|
#endif
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_readline_read_history, 0, 0, _IS_BOOL, 0)
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null")
|
|
ZEND_END_ARG_INFO()
|
|
|
|
#define arginfo_readline_write_history arginfo_readline_read_history
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_readline_completion_function, 0, 1, _IS_BOOL, 0)
|
|
ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
|
|
ZEND_END_ARG_INFO()
|
|
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_readline_callback_handler_install, 0, 2, _IS_BOOL, 0)
|
|
ZEND_ARG_TYPE_INFO(0, prompt, IS_STRING, 0)
|
|
ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
|
|
ZEND_END_ARG_INFO()
|
|
#endif
|
|
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_readline_callback_read_char, 0, 0, IS_VOID, 0)
|
|
ZEND_END_ARG_INFO()
|
|
#endif
|
|
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_readline_callback_handler_remove, 0, 0, _IS_BOOL, 0)
|
|
ZEND_END_ARG_INFO()
|
|
#endif
|
|
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
#define arginfo_readline_redisplay arginfo_readline_callback_read_char
|
|
#endif
|
|
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR) && defined(HAVE_RL_ON_NEW_LINE)
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_readline_on_new_line, 0, 0, IS_VOID, 0)
|
|
ZEND_END_ARG_INFO()
|
|
#endif
|
|
|
|
ZEND_FUNCTION(readline);
|
|
ZEND_FUNCTION(readline_info);
|
|
ZEND_FUNCTION(readline_add_history);
|
|
ZEND_FUNCTION(readline_clear_history);
|
|
#if defined(HAVE_HISTORY_LIST)
|
|
ZEND_FUNCTION(readline_list_history);
|
|
#endif
|
|
ZEND_FUNCTION(readline_read_history);
|
|
ZEND_FUNCTION(readline_write_history);
|
|
ZEND_FUNCTION(readline_completion_function);
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
ZEND_FUNCTION(readline_callback_handler_install);
|
|
#endif
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
ZEND_FUNCTION(readline_callback_read_char);
|
|
#endif
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
ZEND_FUNCTION(readline_callback_handler_remove);
|
|
#endif
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
ZEND_FUNCTION(readline_redisplay);
|
|
#endif
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR) && defined(HAVE_RL_ON_NEW_LINE)
|
|
ZEND_FUNCTION(readline_on_new_line);
|
|
#endif
|
|
|
|
static const zend_function_entry ext_functions[] = {
|
|
ZEND_FE(readline, arginfo_readline)
|
|
ZEND_FE(readline_info, arginfo_readline_info)
|
|
ZEND_FE(readline_add_history, arginfo_readline_add_history)
|
|
ZEND_FE(readline_clear_history, arginfo_readline_clear_history)
|
|
#if defined(HAVE_HISTORY_LIST)
|
|
ZEND_FE(readline_list_history, arginfo_readline_list_history)
|
|
#endif
|
|
ZEND_FE(readline_read_history, arginfo_readline_read_history)
|
|
ZEND_FE(readline_write_history, arginfo_readline_write_history)
|
|
ZEND_FE(readline_completion_function, arginfo_readline_completion_function)
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
ZEND_FE(readline_callback_handler_install, arginfo_readline_callback_handler_install)
|
|
#endif
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
ZEND_FE(readline_callback_read_char, arginfo_readline_callback_read_char)
|
|
#endif
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
ZEND_FE(readline_callback_handler_remove, arginfo_readline_callback_handler_remove)
|
|
#endif
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR)
|
|
ZEND_FE(readline_redisplay, arginfo_readline_redisplay)
|
|
#endif
|
|
#if defined(HAVE_RL_CALLBACK_READ_CHAR) && defined(HAVE_RL_ON_NEW_LINE)
|
|
ZEND_FE(readline_on_new_line, arginfo_readline_on_new_line)
|
|
#endif
|
|
ZEND_FE_END
|
|
};
|
|
|
|
static void register_readline_symbols(int module_number)
|
|
{
|
|
REGISTER_STRING_CONSTANT("READLINE_LIB", READLINE_LIB, CONST_PERSISTENT);
|
|
}
|