File tree Expand file tree Collapse file tree 7 files changed +9
-7
lines changed Expand file tree Collapse file tree 7 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 31
31
32
32
#include "bcmath.h"
33
33
#include "private.h"
34
+ #include <string.h>
34
35
35
36
36
37
/* Here is the full add routine that takes care of negative numbers.
Original file line number Diff line number Diff line change @@ -54,8 +54,9 @@ typedef struct bc_struct {
54
54
#endif
55
55
56
56
#include <stdbool.h>
57
+ #include "zend_string.h"
57
58
#include "php.h" /* Needed for safe_pemalloc() in init.c */
58
- #include "../../php_bcmath.h"
59
+ #include "../../php_bcmath.h" /* Needed for BCG() macro */
59
60
60
61
/* The base used in storing the numbers in n_value above.
61
62
Currently this MUST be 10. */
Original file line number Diff line number Diff line change 29
29
30
30
*************************************************************************/
31
31
32
- #include "config.h" /* For safe_emalloc() */
33
32
#include "bcmath.h"
34
33
#include "private.h"
35
34
#include <stdbool.h>
35
+ #include "zend_alloc.h"
36
36
37
37
38
38
/* Some utility routines for the divide: First a one digit multiply.
Original file line number Diff line number Diff line change 29
29
30
30
*************************************************************************/
31
31
32
- #include "config.h"
33
- #include <stdbool.h>
34
32
#include "bcmath.h"
33
+ #include <stdbool.h>
34
+ #include "zend_alloc.h"
35
35
36
36
/* new_num allocates a number and sets fields to known values. */
37
37
bc_num _bc_new_num_ex (int length , int scale , bool persistent )
Original file line number Diff line number Diff line change 29
29
30
30
*************************************************************************/
31
31
32
- #include "config.h" /* For zend_string */
33
32
#include "bcmath.h"
33
+ #include "zend_string.h"
34
34
35
35
/* Convert a numbers to a string. Base 10 only.*/
36
36
zend_string * bc_num2str_ex (bc_num num , int scale )
Original file line number Diff line number Diff line change 29
29
30
30
*************************************************************************/
31
31
32
- #include "config.h" /* For emalloc */
33
32
#include "bcmath.h"
34
33
#include <stdbool.h>
34
+ #include "zend_alloc.h"
35
35
36
36
37
37
/* The following routines provide output for bcd numbers package
Original file line number Diff line number Diff line change 32
32
#include "bcmath.h"
33
33
#include <assert.h>
34
34
#include <stdbool.h>
35
- #include "config.h" /* For emalloc() */
36
35
#include "private.h" /* For _bc_rm_leading_zeros() */
36
+ #include "zend_alloc.h"
37
37
38
38
/* Recursive vs non-recursive multiply crossover ranges. */
39
39
#if defined(MULDIGITS )
You can’t perform that action at this time.
0 commit comments