Geoinformatica  0.90
arrays.h
1 /* These are the function prototypes for arrays.c */
2 
3 
4 /* Functions defined in this module, see header comments on each one
5  for more details: */
6 
7 #ifndef _INC_ARRAYS_
8 
9 void* pack1D(SV* arg, char packtype); /* Pack perl 1D array */
10 void* pack2D(SV* arg, char packtype); /* Pack perl 1-2D array */
11 void* packND(SV* arg, char packtype); /* Pack perl array N-D array */
12 void unpack1D(SV* arg, void * var, /* Unpack 1D array */
13  char packtype, int n);
14 
15 AV* coerce1D ( SV* arg, int n ); /* Coerce/create array to specified size */
16 
17 void* get_mortalspace( int n, char packtype ); /* Utility to just get workspace */
18 
19 
20 #if PERL_VERSION < 5
21 
22 /* Sort out macro name changes in 5.004_53 */
23 
24 #include "patchlevel.h"
25 #if SUBVERSION < 53
26 #define PL_na na
27 #endif
28 
29 #else
30 
31 #define HAS_SvPV_nolen
32 
33 #endif
34 
35 
36 
37 /* Prevent the prototypes being defined twice */
38 
39 #define _INC_ARRAYS_
40 
41 #endif