Esempio n. 1
0
void
init_storage ()
{

  /* Functions: we start with none and ask for more. */
  f_count = 0;
  more_functions ();
  f_names[0] = "(main)";

  /* Variables. */
  v_count = 0;
  more_variables ();
  
  /* Arrays. */
  a_count = 0;
  more_arrays ();

  /* Other things... */
  ex_stack = NULL;
  fn_stack = NULL;
  i_base = 10;
  o_base = 10;
  scale  = 0;
#if defined(READLINE) || defined(LIBEDIT)
  n_history = -1;	
#endif
  c_code = FALSE;
  bc_init_numbers();
}
Esempio n. 2
0
/* {{{ PHP_GINIT_FUNCTION
 */
static PHP_GINIT_FUNCTION(bcmath)
{
#if defined(COMPILE_DL_BCMATH) && defined(ZTS)
	ZEND_TSRMLS_CACHE_UPDATE;
#endif
	bcmath_globals->bc_precision = 0;
	bc_init_numbers();
}
Esempio n. 3
0
/* {{{ PHP_GINIT_FUNCTION
 */
static PHP_GINIT_FUNCTION(bcmath)
{
	bcmath_globals->bc_precision = 0;
	bc_init_numbers(TSRMLS_C);
}
Esempio n. 4
0
// initialize package
// supply scale (number of decimal places): default zero
void BigNumber::begin (const uint16_t scale)
{
  bc_init_numbers();
  scale_ = scale;
} // end of BigNumber::begin