This repository has been archived on 2020-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
php-armadillo/src/php_arma.cc

62 lines
1.2 KiB
C++

//
// php-armadillo/php_arma.cc
//
// @Author CismonX
//
#include "php_arma.hh"
#include "constants.hh"
#include "complex.hh"
#include "base.hh"
#include "mapval.hh"
#include "functions.hh"
#ifdef PHP_ARMA_OPERATORS
#include "operators.hh"
#endif // PHP_ARMA_OPERATORS
#include <ext/standard/info.h>
namespace php_arma
{
int module_init(INIT_FUNC_ARGS)
{
constants_init();
complex_init();
base_init();
mapval_init();
#ifdef PHP_ARMA_OPERATORS
operators_init();
#endif // PHP_ARMA_OPERATORS
return SUCCESS;
}
void module_info(ZEND_MODULE_INFO_FUNC_ARGS)
{
php_info_print_table_start();
php_info_print_table_header(2, "armadillo support", "enabled");
php_info_print_table_end();
}
zend_module_entry module_entry = {
STANDARD_MODULE_HEADER,
"arma",
functions,
module_init,
nullptr,
nullptr,
nullptr,
module_info,
PHP_ARMA_VERSION,
STANDARD_MODULE_PROPERTIES
};
}
#ifdef COMPILE_DL_ARMA
extern "C" ZEND_DLEXPORT zend_module_entry *get_module()
{
return &php_arma::module_entry;
}
#endif // COMPILE_DL_ARMA