cmake & text support
This commit is contained in:
20
H/arrays.h
20
H/arrays.h
@@ -18,6 +18,20 @@
|
||||
static char SccsId[]="%W% %G%";
|
||||
#endif
|
||||
|
||||
/* first, the valid types */
|
||||
typedef enum
|
||||
{
|
||||
array_of_ints,
|
||||
array_of_chars,
|
||||
array_of_uchars,
|
||||
array_of_doubles,
|
||||
array_of_ptrs,
|
||||
array_of_atoms,
|
||||
array_of_dbrefs,
|
||||
array_of_nb_terms,
|
||||
array_of_terms
|
||||
} static_array_types;
|
||||
|
||||
/* This should never be followed by GC */
|
||||
typedef struct array_access_struct {
|
||||
Functor array_access_func; /* identifier of array access */
|
||||
@@ -25,3 +39,9 @@ typedef struct array_access_struct {
|
||||
Term indx; /* index in array, for now
|
||||
keep it as an integer! */
|
||||
} array_access;
|
||||
|
||||
struct static_array_entry *
|
||||
Yap_StaticVector( Atom Name, size_t size, static_array_types props );
|
||||
|
||||
struct static_array_entry *
|
||||
Yap_StaticArray(Atom na, size_t dim, static_array_types type, CODEADDR start_addr, struct static_array_entry *p);
|
||||
|
Reference in New Issue
Block a user