11 #ifdef HAVE_ARRAY_ALLOC
12 # define mdp_array_alloc array_alloc
13 # define mdp_safe_free safe_free
24 #define MDP_INT_NOINIT -68361
25 #define MDP_DBL_NOINIT -1.241E11
29 # define _C16_NAME_DEF
30 typedef char C16_NAME[16];
31 typedef char C16_NAME_STR[17];
39 extern int MDP_MP_Nprocs;
40 extern int MDP_MP_myproc;
44 #define mdp_alloc_struct(x, num) (x *) mdp_array_alloc(1, (num), sizeof(x))
49 extern double* mdp_array_alloc(
int numdim, ...);
50 extern void mdp_safe_free(
void**);
52 extern int* mdp_alloc_int_1(
int,
const int);
53 extern void mdp_safe_alloc_int_1(
int**,
int,
const int);
54 extern void mdp_realloc_int_1(
int**,
int,
int,
55 const int defval = MDP_INT_NOINIT);
56 extern int** mdp_alloc_int_2(
int,
int,
const int);
58 extern double* mdp_alloc_dbl_1(
int,
const double);
59 extern void mdp_safe_alloc_dbl_1(
double**,
int,
const double);
60 extern void mdp_realloc_dbl_1(
double**,
int,
int,
const double);
61 extern void mdp_realloc_dbl_2(
double***,
int,
int,
int,
int,
64 extern char* mdp_alloc_char_1(
int,
const char);
65 extern void mdp_safe_alloc_char_1(
char**,
int,
const char);
66 extern char** mdp_alloc_VecFixedStrings(
int,
int);
67 extern void mdp_safe_alloc_VecFixedStrings(
char***,
int,
int);
68 extern void mdp_realloc_VecFixedStrings(
char***,
int,
int,
int);
70 extern double** mdp_alloc_dbl_2(
int,
int,
const double);
71 extern void mdp_safe_alloc_dbl_2(
double***,
int,
int,
72 const double = MDP_DBL_NOINIT);
74 extern C16_NAME* mdp_alloc_C16_NAME_1(
int,
const int);
75 extern void mdp_safe_alloc_C16_NAME_1(C16_NAME**,
int,
const int);
77 extern void** mdp_alloc_ptr_1(
int);
78 extern void mdp_safe_alloc_ptr_1(
void***,
int);
79 extern void mdp_realloc_ptr_1(
void***,
int,
int);
80 extern char* mdp_copy_C16_NAME_to_string(
const C16_NAME);
81 extern char* mdp_copy_string(
const char*);
82 extern void mdp_safe_copy_string(
char**,
const char*);
84 extern void*** mdp_alloc_ptr_2(
int,
int);