PIPS
pipsdbm_private.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "genC.h"
#include "pipsdbm_private.h"
+ Include dependency graph for pipsdbm_private.c:

Go to the source code of this file.

Typedefs

typedef void * db_void
 

Functions

db_owned_resources copy_db_owned_resources (db_owned_resources p)
 DB_OWNED_RESOURCES. More...
 
void free_db_owned_resources (db_owned_resources p)
 
db_owned_resources check_db_owned_resources (db_owned_resources p)
 
bool db_owned_resources_consistent_p (db_owned_resources p)
 
bool db_owned_resources_defined_p (db_owned_resources p)
 
list gen_db_owned_resources_cons (db_owned_resources p, list l)
 
void db_owned_resources_assign_contents (db_owned_resources r, db_owned_resources v)
 
void db_owned_resources_non_recursive_free (db_owned_resources p)
 
void write_db_owned_resources (FILE *f, db_owned_resources p)
 
db_owned_resources read_db_owned_resources (FILE *f)
 
db_owned_resources make_db_owned_resources (void)
 
db_resource apply_db_owned_resources (db_owned_resources f, db_symbol k)
 
void update_db_owned_resources (db_owned_resources f, db_symbol k, db_resource v)
 
void extend_db_owned_resources (db_owned_resources f, db_symbol k, db_resource v)
 
db_resource delete_db_owned_resources (db_owned_resources f, db_symbol k)
 
bool bound_db_owned_resources_p (db_owned_resources f, db_symbol k)
 
db_resource copy_db_resource (db_resource p)
 DB_RESOURCE. More...
 
void free_db_resource (db_resource p)
 
db_resource check_db_resource (db_resource p)
 
bool db_resource_consistent_p (db_resource p)
 
bool db_resource_defined_p (db_resource p)
 
list gen_db_resource_cons (db_resource p, list l)
 
void db_resource_assign_contents (db_resource r, db_resource v)
 
void db_resource_non_recursive_free (db_resource p)
 
void write_db_resource (FILE *f, db_resource p)
 
db_resource read_db_resource (FILE *f)
 
db_resource make_db_resource (db_void a1, db_status a2, intptr_t a3, intptr_t a4)
 
db_resources copy_db_resources (db_resources p)
 DB_RESOURCES. More...
 
void free_db_resources (db_resources p)
 
db_resources check_db_resources (db_resources p)
 
bool db_resources_consistent_p (db_resources p)
 
bool db_resources_defined_p (db_resources p)
 
list gen_db_resources_cons (db_resources p, list l)
 
void db_resources_assign_contents (db_resources r, db_resources v)
 
void db_resources_non_recursive_free (db_resources p)
 
void write_db_resources (FILE *f, db_resources p)
 
db_resources read_db_resources (FILE *f)
 
db_resources make_db_resources (void)
 
db_owned_resources apply_db_resources (db_resources f, db_symbol k)
 
void update_db_resources (db_resources f, db_symbol k, db_owned_resources v)
 
void extend_db_resources (db_resources f, db_symbol k, db_owned_resources v)
 
db_owned_resources delete_db_resources (db_resources f, db_symbol k)
 
bool bound_db_resources_p (db_resources f, db_symbol k)
 
db_status copy_db_status (db_status p)
 DB_STATUS. More...
 
void free_db_status (db_status p)
 
db_status check_db_status (db_status p)
 
bool db_status_consistent_p (db_status p)
 
bool db_status_defined_p (db_status p)
 
list gen_db_status_cons (db_status p, list l)
 
void db_status_assign_contents (db_status r, db_status v)
 
void db_status_non_recursive_free (db_status p)
 
void write_db_status (FILE *f, db_status p)
 
db_status read_db_status (FILE *f)
 
string db_status_tag_as_string (enum db_status_utype tag)
 
db_status make_db_status (enum db_status_utype tag, void *val)
 
db_status make_db_status_loaded (void)
 
db_status make_db_status_stored (void)
 
db_status make_db_status_required (void)
 
db_status make_db_status_loaded_and_stored (void)
 
db_symbol copy_db_symbol (db_symbol p)
 DB_SYMBOL. More...
 
void free_db_symbol (db_symbol p)
 
db_symbol check_db_symbol (db_symbol p)
 
bool db_symbol_consistent_p (db_symbol p)
 
bool db_symbol_defined_p (db_symbol p)
 
list gen_db_symbol_cons (db_symbol p, list l)
 
void db_symbol_assign_contents (db_symbol r, db_symbol v)
 
void db_symbol_non_recursive_free (db_symbol p)
 
db_symbol gen_find_db_symbol (char *s)
 
void write_tabulated_db_symbol (FILE *f)
 
void read_tabulated_db_symbol (FILE *f)
 
db_symbol make_db_symbol (string a1)
 

Typedef Documentation

◆ db_void

typedef void* db_void

Definition at line 7 of file pipsdbm_private.c.

Function Documentation

◆ apply_db_owned_resources()

db_resource apply_db_owned_resources ( db_owned_resources  f,
db_symbol  k 
)

Definition at line 57 of file pipsdbm_private.c.

57  {
59 }
#define HASH_GET(start, image, h, k)
Definition: newgen_map.h:30
int f(int off1, int off2, int n, float r[n], float a[n], float b[n])
Definition: offsets.c:15
#define db_owned_resources_hash_table(x)
#define intptr_t
Definition: stdint.in.h:294

References db_owned_resources_hash_table, f(), HASH_GET, and intptr_t.

+ Here is the call graph for this function:

◆ apply_db_resources()

db_owned_resources apply_db_resources ( db_resources  f,
db_symbol  k 
)

Definition at line 156 of file pipsdbm_private.c.

156  {
158 }
#define db_resources_hash_table(x)

References db_resources_hash_table, f(), HASH_GET, and intptr_t.

+ Here is the call graph for this function:

◆ bound_db_owned_resources_p()

bool bound_db_owned_resources_p ( db_owned_resources  f,
db_symbol  k 
)

Definition at line 69 of file pipsdbm_private.c.

69  {
71 }
#define HASH_BOUND_P(start, image, h, k)
Definition: newgen_map.h:32

References db_owned_resources_hash_table, f(), HASH_BOUND_P, and intptr_t.

+ Here is the call graph for this function:

◆ bound_db_resources_p()

bool bound_db_resources_p ( db_resources  f,
db_symbol  k 
)

Definition at line 168 of file pipsdbm_private.c.

168  {
169  return (intptr_t)HASH_BOUND_P(p, p, db_resources_hash_table(f), k);
170 }

References db_resources_hash_table, f(), HASH_BOUND_P, and intptr_t.

+ Here is the call graph for this function:

◆ check_db_owned_resources()

db_owned_resources check_db_owned_resources ( db_owned_resources  p)

Definition at line 24 of file pipsdbm_private.c.

24  {
26 }
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
#define db_owned_resources_domain
newgen_db_void_domain_defined
A gen_chunk is used to store every object.
Definition: genC.h:58

References db_owned_resources_domain, and gen_check().

+ Here is the call graph for this function:

◆ check_db_resource()

db_resource check_db_resource ( db_resource  p)

Definition at line 81 of file pipsdbm_private.c.

81  {
83 }
#define db_resource_domain
newgen_db_owned_resources_domain_defined

References db_resource_domain, and gen_check().

+ Here is the call graph for this function:

◆ check_db_resources()

db_resources check_db_resources ( db_resources  p)

Definition at line 123 of file pipsdbm_private.c.

123  {
125 }
#define db_resources_domain
newgen_db_resource_domain_defined

References db_resources_domain, and gen_check().

+ Here is the call graph for this function:

◆ check_db_status()

db_status check_db_status ( db_status  p)

Definition at line 180 of file pipsdbm_private.c.

180  {
182 }
#define db_status_domain
newgen_db_resources_domain_defined

References db_status_domain, and gen_check().

+ Here is the call graph for this function:

◆ check_db_symbol()

db_symbol check_db_symbol ( db_symbol  p)

Definition at line 243 of file pipsdbm_private.c.

243  {
245 }
#define db_symbol_domain
newgen_db_status_domain_defined

References db_symbol_domain, and gen_check().

+ Here is the call graph for this function:

◆ copy_db_owned_resources()

db_owned_resources copy_db_owned_resources ( db_owned_resources  p)

DB_OWNED_RESOURCES.

Definition at line 18 of file pipsdbm_private.c.

18  {
20 }
gen_chunk * gen_copy_tree(gen_chunk *obj)
Definition: genClib.c:1429

References gen_copy_tree().

+ Here is the call graph for this function:

◆ copy_db_resource()

db_resource copy_db_resource ( db_resource  p)

DB_RESOURCE.

Definition at line 75 of file pipsdbm_private.c.

75  {
76  return (db_resource) gen_copy_tree((gen_chunk*) p);
77 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ copy_db_resources()

db_resources copy_db_resources ( db_resources  p)

DB_RESOURCES.

Definition at line 117 of file pipsdbm_private.c.

117  {
118  return (db_resources) gen_copy_tree((gen_chunk*) p);
119 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ copy_db_status()

db_status copy_db_status ( db_status  p)

DB_STATUS.

Definition at line 174 of file pipsdbm_private.c.

174  {
175  return (db_status) gen_copy_tree((gen_chunk*) p);
176 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ copy_db_symbol()

db_symbol copy_db_symbol ( db_symbol  p)

DB_SYMBOL.

Definition at line 237 of file pipsdbm_private.c.

237  {
238  return (db_symbol) gen_copy_tree((gen_chunk*) p);
239 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ db_owned_resources_assign_contents()

void db_owned_resources_assign_contents ( db_owned_resources  r,
db_owned_resources  v 
)

Definition at line 37 of file pipsdbm_private.c.

37  {
40  message_assert("defined references to domain db_owned_resources",
42  memcpy(r, v, sizeof(struct _newgen_struct_db_owned_resources_));
43 }
bool db_owned_resources_defined_p(db_owned_resources p)
db_owned_resources check_db_owned_resources(db_owned_resources p)
#define message_assert(msg, ex)
Definition: newgen_assert.h:47

References check_db_owned_resources(), db_owned_resources_defined_p(), and message_assert.

+ Here is the call graph for this function:

◆ db_owned_resources_consistent_p()

bool db_owned_resources_consistent_p ( db_owned_resources  p)

Definition at line 27 of file pipsdbm_private.c.

27  {
29  return gen_consistent_p((gen_chunk*) p);
30 }
int gen_consistent_p(gen_chunk *obj)
GEN_CONSISTENT_P dynamically checks the type correctness of OBJ.
Definition: genClib.c:2398

References check_db_owned_resources(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ db_owned_resources_defined_p()

bool db_owned_resources_defined_p ( db_owned_resources  p)

Definition at line 31 of file pipsdbm_private.c.

31  {
32  return gen_defined_p((gen_chunk*) p);
33 }
int gen_defined_p(gen_chunk *obj)
Definition: genClib.c:2438

References gen_defined_p().

+ Here is the call graph for this function:

◆ db_owned_resources_non_recursive_free()

void db_owned_resources_non_recursive_free ( db_owned_resources  p)

Definition at line 44 of file pipsdbm_private.c.

44  {
45  // should clear up contents...
46  free(p);
47 }
void free(void *)

References free().

+ Here is the call graph for this function:

◆ db_resource_assign_contents()

void db_resource_assign_contents ( db_resource  r,
db_resource  v 
)

Definition at line 94 of file pipsdbm_private.c.

94  {
97  message_assert("defined references to domain db_resource",
99  memcpy(r, v, sizeof(struct _newgen_struct_db_resource_));
100 }
db_resource check_db_resource(db_resource p)
bool db_resource_defined_p(db_resource p)

References check_db_resource(), db_resource_defined_p(), and message_assert.

+ Here is the call graph for this function:

◆ db_resource_consistent_p()

bool db_resource_consistent_p ( db_resource  p)

Definition at line 84 of file pipsdbm_private.c.

84  {
86  return gen_consistent_p((gen_chunk*) p);
87 }

References check_db_resource(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ db_resource_defined_p()

bool db_resource_defined_p ( db_resource  p)

Definition at line 88 of file pipsdbm_private.c.

88  {
89  return gen_defined_p((gen_chunk*) p);
90 }

References gen_defined_p().

+ Here is the call graph for this function:

◆ db_resource_non_recursive_free()

void db_resource_non_recursive_free ( db_resource  p)

Definition at line 101 of file pipsdbm_private.c.

101  {
102  // should clear up contents...
103  free(p);
104 }

References free().

+ Here is the call graph for this function:

◆ db_resources_assign_contents()

void db_resources_assign_contents ( db_resources  r,
db_resources  v 
)

Definition at line 136 of file pipsdbm_private.c.

136  {
139  message_assert("defined references to domain db_resources",
141  memcpy(r, v, sizeof(struct _newgen_struct_db_resources_));
142 }
db_resources check_db_resources(db_resources p)
bool db_resources_defined_p(db_resources p)

References check_db_resources(), db_resources_defined_p(), and message_assert.

+ Here is the call graph for this function:

◆ db_resources_consistent_p()

bool db_resources_consistent_p ( db_resources  p)

Definition at line 126 of file pipsdbm_private.c.

126  {
128  return gen_consistent_p((gen_chunk*) p);
129 }

References check_db_resources(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ db_resources_defined_p()

bool db_resources_defined_p ( db_resources  p)

Definition at line 130 of file pipsdbm_private.c.

130  {
131  return gen_defined_p((gen_chunk*) p);
132 }

References gen_defined_p().

+ Here is the call graph for this function:

◆ db_resources_non_recursive_free()

void db_resources_non_recursive_free ( db_resources  p)

Definition at line 143 of file pipsdbm_private.c.

143  {
144  // should clear up contents...
145  free(p);
146 }

References free().

+ Here is the call graph for this function:

◆ db_status_assign_contents()

void db_status_assign_contents ( db_status  r,
db_status  v 
)

Definition at line 193 of file pipsdbm_private.c.

193  {
194  check_db_status(r);
195  check_db_status(v);
196  message_assert("defined references to domain db_status",
198  memcpy(r, v, sizeof(struct _newgen_struct_db_status_));
199 }
db_status check_db_status(db_status p)
bool db_status_defined_p(db_status p)

References check_db_status(), db_status_defined_p(), and message_assert.

+ Here is the call graph for this function:

◆ db_status_consistent_p()

bool db_status_consistent_p ( db_status  p)

Definition at line 183 of file pipsdbm_private.c.

183  {
184  check_db_status(p);
185  return gen_consistent_p((gen_chunk*) p);
186 }

References check_db_status(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ db_status_defined_p()

bool db_status_defined_p ( db_status  p)

Definition at line 187 of file pipsdbm_private.c.

187  {
188  return gen_defined_p((gen_chunk*) p);
189 }

References gen_defined_p().

+ Here is the call graph for this function:

◆ db_status_non_recursive_free()

void db_status_non_recursive_free ( db_status  p)

Definition at line 200 of file pipsdbm_private.c.

200  {
201  // should clear up contents...
202  free(p);
203 }

References free().

+ Here is the call graph for this function:

◆ db_status_tag_as_string()

string db_status_tag_as_string ( enum db_status_utype  tag)

Definition at line 210 of file pipsdbm_private.c.

210  {
211  switch (tag) {
212  case is_db_status_loaded: return "loaded";
213  case is_db_status_stored: return "stored";
214  case is_db_status_required: return "required";
215  case is_db_status_loaded_and_stored: return "loaded_and_stored";
216  default: return string_undefined;
217  }
218 }
int tag
TAG.
Definition: newgen_types.h:92
#define string_undefined
Definition: newgen_types.h:40
@ is_db_status_loaded_and_stored
@ is_db_status_loaded
@ is_db_status_stored
@ is_db_status_required

References is_db_status_loaded, is_db_status_loaded_and_stored, is_db_status_required, is_db_status_stored, and string_undefined.

◆ db_symbol_assign_contents()

void db_symbol_assign_contents ( db_symbol  r,
db_symbol  v 
)

Definition at line 256 of file pipsdbm_private.c.

256  {
257  check_db_symbol(r);
258  check_db_symbol(v);
259  message_assert("defined references to domain db_symbol",
261  memcpy(r, v, sizeof(struct _newgen_struct_db_symbol_));
262 }
db_symbol check_db_symbol(db_symbol p)
bool db_symbol_defined_p(db_symbol p)

References check_db_symbol(), db_symbol_defined_p(), and message_assert.

+ Here is the call graph for this function:

◆ db_symbol_consistent_p()

bool db_symbol_consistent_p ( db_symbol  p)

Definition at line 246 of file pipsdbm_private.c.

246  {
247  check_db_symbol(p);
248  return gen_consistent_p((gen_chunk*) p);
249 }

References check_db_symbol(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ db_symbol_defined_p()

bool db_symbol_defined_p ( db_symbol  p)

Definition at line 250 of file pipsdbm_private.c.

250  {
251  return gen_defined_p((gen_chunk*) p);
252 }

References gen_defined_p().

+ Here is the call graph for this function:

◆ db_symbol_non_recursive_free()

void db_symbol_non_recursive_free ( db_symbol  p)

Definition at line 263 of file pipsdbm_private.c.

263  {
264  // should clear up contents...
265  free(p);
266 }

References free().

+ Here is the call graph for this function:

◆ delete_db_owned_resources()

db_resource delete_db_owned_resources ( db_owned_resources  f,
db_symbol  k 
)

Definition at line 66 of file pipsdbm_private.c.

66  {
68 }
#define HASH_DELETE(start, image, h, k)
Definition: newgen_map.h:38

References db_owned_resources_hash_table, f(), HASH_DELETE, and intptr_t.

+ Here is the call graph for this function:

◆ delete_db_resources()

db_owned_resources delete_db_resources ( db_resources  f,
db_symbol  k 
)

Definition at line 165 of file pipsdbm_private.c.

165  {
167 }

References db_resources_hash_table, f(), HASH_DELETE, and intptr_t.

+ Here is the call graph for this function:

◆ extend_db_owned_resources()

void extend_db_owned_resources ( db_owned_resources  f,
db_symbol  k,
db_resource  v 
)

Definition at line 63 of file pipsdbm_private.c.

63  {
65 }
#define HASH_EXTEND(start, image, h, k, v)
Definition: newgen_map.h:36

References db_owned_resources_hash_table, f(), HASH_EXTEND, and intptr_t.

+ Here is the call graph for this function:

◆ extend_db_resources()

void extend_db_resources ( db_resources  f,
db_symbol  k,
db_owned_resources  v 
)

Definition at line 162 of file pipsdbm_private.c.

162  {
164 }

References db_resources_hash_table, f(), HASH_EXTEND, and intptr_t.

+ Here is the call graph for this function:

◆ free_db_owned_resources()

void free_db_owned_resources ( db_owned_resources  p)

Definition at line 21 of file pipsdbm_private.c.

21  {
22  gen_free((gen_chunk*) p);
23 }
void gen_free(gen_chunk *obj)
version without shared_pointers.
Definition: genClib.c:992

References gen_free().

+ Here is the call graph for this function:

◆ free_db_resource()

void free_db_resource ( db_resource  p)

Definition at line 78 of file pipsdbm_private.c.

78  {
79  gen_free((gen_chunk*) p);
80 }

References gen_free().

+ Here is the call graph for this function:

◆ free_db_resources()

void free_db_resources ( db_resources  p)

Definition at line 120 of file pipsdbm_private.c.

120  {
121  gen_free((gen_chunk*) p);
122 }

References gen_free().

+ Here is the call graph for this function:

◆ free_db_status()

void free_db_status ( db_status  p)

Definition at line 177 of file pipsdbm_private.c.

177  {
178  gen_free((gen_chunk*) p);
179 }

References gen_free().

+ Here is the call graph for this function:

◆ free_db_symbol()

void free_db_symbol ( db_symbol  p)

Definition at line 240 of file pipsdbm_private.c.

240  {
241  gen_free((gen_chunk*) p);
242 }

References gen_free().

+ Here is the call graph for this function:

◆ gen_db_owned_resources_cons()

list gen_db_owned_resources_cons ( db_owned_resources  p,
list  l 
)

Definition at line 34 of file pipsdbm_private.c.

34  {
36 }
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 DB_OWNED_RESOURCES_NEWGEN_DOMAIN

References DB_OWNED_RESOURCES_NEWGEN_DOMAIN, and gen_typed_cons().

+ Here is the call graph for this function:

◆ gen_db_resource_cons()

list gen_db_resource_cons ( db_resource  p,
list  l 
)

Definition at line 91 of file pipsdbm_private.c.

91  {
93 }
#define DB_RESOURCE_NEWGEN_DOMAIN

References DB_RESOURCE_NEWGEN_DOMAIN, and gen_typed_cons().

+ Here is the call graph for this function:

◆ gen_db_resources_cons()

list gen_db_resources_cons ( db_resources  p,
list  l 
)

Definition at line 133 of file pipsdbm_private.c.

133  {
135 }
#define DB_RESOURCES_NEWGEN_DOMAIN

References DB_RESOURCES_NEWGEN_DOMAIN, and gen_typed_cons().

+ Here is the call graph for this function:

◆ gen_db_status_cons()

list gen_db_status_cons ( db_status  p,
list  l 
)

Definition at line 190 of file pipsdbm_private.c.

190  {
192 }
#define DB_STATUS_NEWGEN_DOMAIN

References DB_STATUS_NEWGEN_DOMAIN, and gen_typed_cons().

+ Here is the call graph for this function:

◆ gen_db_symbol_cons()

list gen_db_symbol_cons ( db_symbol  p,
list  l 
)

Definition at line 253 of file pipsdbm_private.c.

253  {
255 }
#define DB_SYMBOL_NEWGEN_DOMAIN

References DB_SYMBOL_NEWGEN_DOMAIN, and gen_typed_cons().

+ Here is the call graph for this function:

◆ gen_find_db_symbol()

db_symbol gen_find_db_symbol ( char *  s)

Definition at line 267 of file pipsdbm_private.c.

267  {
269 }
void * gen_find_tabulated(const char *, int)
Definition: tabulated.c:218

References db_symbol_domain, and gen_find_tabulated().

+ Here is the call graph for this function:

◆ make_db_owned_resources()

db_owned_resources make_db_owned_resources ( void  )

Definition at line 54 of file pipsdbm_private.c.

54  {
56 }
#define GEN_CHECK_ALLOC
Definition: genC.h:307
gen_chunk * gen_alloc(int size, int gen_check_p, int dom,...)
allocates something in newgen.
Definition: genClib.c:298

References db_owned_resources_domain, gen_alloc(), and GEN_CHECK_ALLOC.

+ Here is the call graph for this function:

◆ make_db_resource()

db_resource make_db_resource ( db_void  a1,
db_status  a2,
intptr_t  a3,
intptr_t  a4 
)

Definition at line 111 of file pipsdbm_private.c.

111  {
112  return (db_resource) gen_alloc(5*sizeof(gen_chunk), GEN_CHECK_ALLOC, db_resource_domain, a1, a2, a3, a4);
113 }

References db_resource_domain, gen_alloc(), and GEN_CHECK_ALLOC.

+ Here is the call graph for this function:

◆ make_db_resources()

db_resources make_db_resources ( void  )

Definition at line 153 of file pipsdbm_private.c.

153  {
155 }

References db_resources_domain, gen_alloc(), and GEN_CHECK_ALLOC.

+ Here is the call graph for this function:

◆ make_db_status()

db_status make_db_status ( enum db_status_utype  tag,
void *  val 
)

Definition at line 219 of file pipsdbm_private.c.

219  {
220  return (db_status) gen_alloc(3*sizeof(gen_chunk), GEN_CHECK_ALLOC, db_status_domain, tag, val);
221 }

References db_status_domain, gen_alloc(), and GEN_CHECK_ALLOC.

+ Here is the call graph for this function:

◆ make_db_status_loaded()

db_status make_db_status_loaded ( void  )

Definition at line 222 of file pipsdbm_private.c.

222  {
224 }
db_status make_db_status(enum db_status_utype tag, void *val)
#define UU
Definition: newgen_types.h:98

References is_db_status_loaded, make_db_status(), and UU.

+ Here is the call graph for this function:

◆ make_db_status_loaded_and_stored()

db_status make_db_status_loaded_and_stored ( void  )

Definition at line 231 of file pipsdbm_private.c.

231  {
233 }

References is_db_status_loaded_and_stored, make_db_status(), and UU.

+ Here is the call graph for this function:

◆ make_db_status_required()

db_status make_db_status_required ( void  )

Definition at line 228 of file pipsdbm_private.c.

228  {
230 }

References is_db_status_required, make_db_status(), and UU.

+ Here is the call graph for this function:

◆ make_db_status_stored()

db_status make_db_status_stored ( void  )

Definition at line 225 of file pipsdbm_private.c.

225  {
227 }

References is_db_status_stored, make_db_status(), and UU.

+ Here is the call graph for this function:

◆ make_db_symbol()

db_symbol make_db_symbol ( string  a1)

Definition at line 281 of file pipsdbm_private.c.

281  {
283 }

References db_symbol_domain, gen_alloc(), and GEN_CHECK_ALLOC.

+ Here is the call graph for this function:

◆ read_db_owned_resources()

db_owned_resources read_db_owned_resources ( FILE *  f)

Definition at line 51 of file pipsdbm_private.c.

51  {
52  return (db_owned_resources) gen_read(f);
53 }
gen_chunk * gen_read(FILE *file)
GEN_READ reads any object from the FILE stream.
Definition: genClib.c:2323

References f(), and gen_read().

+ Here is the call graph for this function:

◆ read_db_resource()

db_resource read_db_resource ( FILE *  f)

Definition at line 108 of file pipsdbm_private.c.

108  {
109  return (db_resource) gen_read(f);
110 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ read_db_resources()

db_resources read_db_resources ( FILE *  f)

Definition at line 150 of file pipsdbm_private.c.

150  {
151  return (db_resources) gen_read(f);
152 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ read_db_status()

db_status read_db_status ( FILE *  f)

Definition at line 207 of file pipsdbm_private.c.

207  {
208  return (db_status) gen_read(f);
209 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ read_tabulated_db_symbol()

void read_tabulated_db_symbol ( FILE *  f)

Definition at line 273 of file pipsdbm_private.c.

273  {
274  int domain = gen_read_tabulated(f, 0);
275  if (domain!=db_symbol_domain) {
276  fprintf(stderr, "[newgen internal error]""inconsistent domain number for db_symbol: %d (expecting %d)\n",
278  abort();
279  }
280 }
int gen_read_tabulated(FILE *file, int create_p)
GEN_READ_TABULATED reads FILE to update the Gen_tabulated_ table.
Definition: genClib.c:2334
#define abort()
Definition: misc-local.h:53
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...
A DOMAIN union describes the structure of a user type.

References abort, db_symbol_domain, f(), fprintf(), and gen_read_tabulated().

+ Here is the call graph for this function:

◆ update_db_owned_resources()

void update_db_owned_resources ( db_owned_resources  f,
db_symbol  k,
db_resource  v 
)

Definition at line 60 of file pipsdbm_private.c.

60  {
62 }
#define HASH_UPDATE(start, image, h, k, v)
Definition: newgen_map.h:34

References db_owned_resources_hash_table, f(), HASH_UPDATE, and intptr_t.

+ Here is the call graph for this function:

◆ update_db_resources()

void update_db_resources ( db_resources  f,
db_symbol  k,
db_owned_resources  v 
)

Definition at line 159 of file pipsdbm_private.c.

159  {
161 }

References db_resources_hash_table, f(), HASH_UPDATE, and intptr_t.

+ Here is the call graph for this function:

◆ write_db_owned_resources()

void write_db_owned_resources ( FILE *  f,
db_owned_resources  p 
)

Definition at line 48 of file pipsdbm_private.c.

48  {
49  gen_write(f, (gen_chunk*) p);
50 }
void gen_write(FILE *fd, gen_chunk *obj)
GEN_WRITE writes the OBJect on the stream FD.
Definition: genClib.c:1745

References f(), and gen_write().

+ Here is the call graph for this function:

◆ write_db_resource()

void write_db_resource ( FILE *  f,
db_resource  p 
)

Definition at line 105 of file pipsdbm_private.c.

105  {
106  gen_write(f, (gen_chunk*) p);
107 }

References f(), and gen_write().

+ Here is the call graph for this function:

◆ write_db_resources()

void write_db_resources ( FILE *  f,
db_resources  p 
)

Definition at line 147 of file pipsdbm_private.c.

147  {
148  gen_write(f, (gen_chunk*) p);
149 }

References f(), and gen_write().

+ Here is the call graph for this function:

◆ write_db_status()

void write_db_status ( FILE *  f,
db_status  p 
)

Definition at line 204 of file pipsdbm_private.c.

204  {
205  gen_write(f, (gen_chunk*) p);
206 }

References f(), and gen_write().

+ Here is the call graph for this function:

◆ write_tabulated_db_symbol()

void write_tabulated_db_symbol ( FILE *  f)

Definition at line 270 of file pipsdbm_private.c.

270  {
272 }
int gen_write_tabulated(FILE *fd, int domain)
GEN_WRITE_TABULATED writes the tabulated object TABLE on FD.
Definition: genClib.c:1866

References db_symbol_domain, f(), and gen_write_tabulated().

+ Here is the call graph for this function: