55 lines
983 B
C++
55 lines
983 B
C++
//
|
|
// php-armadillo/php_arma.cc
|
|
//
|
|
// @Author CismonX
|
|
//
|
|
|
|
#include "php_arma.hh"
|
|
#include "constants.hh"
|
|
#include "complex.hh"
|
|
#include "base.hh"
|
|
#include "mapval.hh"
|
|
|
|
#ifdef PHP_ARMA_OPERATORS
|
|
#include "operators.hh"
|
|
#endif // PHP_ARMA_OPERATORS
|
|
|
|
#include <ext/standard/info.h>
|
|
|
|
PHP_MINIT_FUNCTION(arma)
|
|
{
|
|
php_arma::constants_init();
|
|
php_arma::complex_init();
|
|
php_arma::base_init();
|
|
php_arma::mapval_init();
|
|
|
|
#ifdef PHP_ARMA_OPERATORS
|
|
php_arma::operators_init();
|
|
#endif // PHP_ARMA_OPERATORS
|
|
return SUCCESS;
|
|
}
|
|
|
|
PHP_MINFO_FUNCTION(arma)
|
|
{
|
|
php_info_print_table_start();
|
|
php_info_print_table_header(2, "armadillo support", "enabled");
|
|
php_info_print_table_end();
|
|
}
|
|
|
|
zend_module_entry arma_module_entry = {
|
|
STANDARD_MODULE_HEADER,
|
|
"arma",
|
|
nullptr,
|
|
PHP_MINIT(arma),
|
|
nullptr,
|
|
nullptr,
|
|
nullptr,
|
|
PHP_MINFO(arma),
|
|
PHP_ARMA_VERSION,
|
|
STANDARD_MODULE_PROPERTIES
|
|
};
|
|
|
|
#ifdef COMPILE_DL_ARMA
|
|
ZEND_GET_MODULE(arma)
|
|
#endif
|