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
2019-03-14 23:23:21 +08:00

46 lines
765 B
C++

//
// php-armadillo/php_arma.cc
//
// @Author CismonX
//
#include "php_arma.hh"
#include "interfaces.hh"
#include "fill.hh"
#include "complex.hh"
#include <ext/standard/info.h>
PHP_MINIT_FUNCTION(arma)
{
php_arma::internal_interfaces_init();
php_arma::fill_init();
php_arma::complex_init();
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",
NULL,
PHP_MINIT(arma),
NULL,
NULL,
NULL,
PHP_MINFO(arma),
PHP_ARMA_VERSION,
STANDARD_MODULE_PROPERTIES
};
#ifdef COMPILE_DL_ARMA
ZEND_GET_MODULE(arma)
#endif