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

55 lines
983 B
C++
Raw Normal View History

//
2019-03-14 15:23:21 +00:00
// php-armadillo/php_arma.cc
//
// @Author CismonX
//
2019-03-14 15:23:21 +00:00
#include "php_arma.hh"
2019-03-22 08:30:44 +00:00
#include "constants.hh"
#include "complex.hh"
2019-04-02 08:16:11 +00:00
#include "base.hh"
2019-03-24 08:59:29 +00:00
#include "mapval.hh"
2019-04-16 11:00:50 +00:00
#ifdef PHP_ARMA_OPERATORS
#include "operators.hh"
#endif // PHP_ARMA_OPERATORS
2019-03-25 07:14:53 +00:00
#include <ext/standard/info.h>
PHP_MINIT_FUNCTION(arma)
{
2019-03-22 08:30:44 +00:00
php_arma::constants_init();
php_arma::complex_init();
2019-04-02 08:16:11 +00:00
php_arma::base_init();
2019-03-24 08:59:29 +00:00
php_arma::mapval_init();
2019-04-16 11:00:50 +00:00
#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",
2019-04-06 13:49:03 +00:00
nullptr,
PHP_MINIT(arma),
2019-04-06 13:49:03 +00:00
nullptr,
nullptr,
nullptr,
PHP_MINFO(arma),
PHP_ARMA_VERSION,
STANDARD_MODULE_PROPERTIES
};
#ifdef COMPILE_DL_ARMA
ZEND_GET_MODULE(arma)
#endif