PIPS
kernel_memory_mapping.c
Go to the documentation of this file.
1 /*
2  * THIS FILE HAS BEEN AUTOMATICALLY GENERATED BY NEWGEN.
3  *
4  * PLEASE DO NOT MODIFY IT.
5  */
6 
7 
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 #include "genC.h"
12 #include "kernel_memory_mapping.h"
13 
14 /* MEMORY_MAPPING
15  */
17  return (memory_mapping) gen_copy_tree((gen_chunk*) p);
18 }
20  gen_free((gen_chunk*) p);
21 }
24 }
27  return gen_consistent_p((gen_chunk*) p);
28 }
30  return gen_defined_p((gen_chunk*) p);
31 }
34 }
38  message_assert("defined references to domain memory_mapping",
40  memcpy(r, v, sizeof(struct _newgen_struct_memory_mapping_));
41 }
43  // should clear up contents...
44  free(p);
45 }
47  gen_write(f, (gen_chunk*) p);
48 }
50  return (memory_mapping) gen_read(f);
51 }
54 }
55 
void write_memory_mapping(FILE *f, memory_mapping p)
memory_mapping read_memory_mapping(FILE *f)
list gen_memory_mapping_cons(memory_mapping p, list l)
memory_mapping check_memory_mapping(memory_mapping p)
memory_mapping make_memory_mapping(set a)
void memory_mapping_non_recursive_free(memory_mapping p)
void free_memory_mapping(memory_mapping p)
void memory_mapping_assign_contents(memory_mapping r, memory_mapping v)
memory_mapping copy_memory_mapping(memory_mapping p)
MEMORY_MAPPING.
bool memory_mapping_defined_p(memory_mapping p)
bool memory_mapping_consistent_p(memory_mapping p)
#define GEN_CHECK_ALLOC
Definition: genC.h:307
void gen_free(gen_chunk *obj)
version without shared_pointers.
Definition: genClib.c:992
gen_chunk * gen_alloc(int size, int gen_check_p, int dom,...)
allocates something in newgen.
Definition: genClib.c:298
int gen_consistent_p(gen_chunk *obj)
GEN_CONSISTENT_P dynamically checks the type correctness of OBJ.
Definition: genClib.c:2398
int gen_defined_p(gen_chunk *obj)
Definition: genClib.c:2438
gen_chunk * gen_check(gen_chunk *obj, int t)
GEN_CHECK checks that the gen_chunk received OBJ is of the appropriate TYPE.
Definition: genClib.c:2356
gen_chunk * gen_read(FILE *file)
GEN_READ reads any object from the FILE stream.
Definition: genClib.c:2323
gen_chunk * gen_copy_tree(gen_chunk *obj)
Definition: genClib.c:1429
void gen_write(FILE *fd, gen_chunk *obj)
GEN_WRITE writes the OBJect on the stream FD.
Definition: genClib.c:1745
void free(void *)
list gen_typed_cons(_int type, const void *item, const list next)
CONS a list with minimal type checking this cannot be done within the CONS macro because possible fun...
Definition: list.c:900
#define memory_mapping_domain
newgen_entity_domain_defined
#define MEMORY_MAPPING_NEWGEN_DOMAIN
#define message_assert(msg, ex)
Definition: newgen_assert.h:47
int f(int off1, int off2, int n, float r[n], float a[n], float b[n])
Definition: offsets.c:15
FI: I do not understand why the type is duplicated at the set level.
Definition: set.c:59
The structure used to build lists in NewGen.
Definition: newgen_list.h:41
A gen_chunk is used to store every object.
Definition: genC.h:58