PIPS
pipsdbm_private.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _newgen_struct_db_owned_resources_
 
struct  _newgen_struct_db_resource_
 
struct  _newgen_struct_db_resources_
 
struct  _newgen_struct_db_status_
 
struct  _newgen_struct_db_symbol_
 

Macros

#define _gen_pipsdbm_private_start   20
 
#define _newgen_db_void_domain_defined_
 
#define newgen_db_void(p)   (p) /**old hack compatible */
 
#define DB_VOID_NEWGEN_EXTERNAL   (_gen_pipsdbm_private_start+0)
 
#define DB_VOID_NEWGEN_DOMAIN   (DB_VOID_NEWGEN_EXTERNAL)
 
#define db_void_NEWGEN_DOMAIN   (DB_VOID_NEWGEN_EXTERNAL)
 
#define db_owned_resources_domain   (_gen_pipsdbm_private_start+1)
 newgen_db_void_domain_defined More...
 
#define _newgen_db_owned_resources_domain_defined_
 
#define DB_OWNED_RESOURCES_NEWGEN_DOMAIN   (db_owned_resources_domain)
 
#define db_owned_resources_NEWGEN_DOMAIN   (db_owned_resources_domain)
 
#define db_resource_domain   (_gen_pipsdbm_private_start+2)
 newgen_db_owned_resources_domain_defined More...
 
#define _newgen_db_resource_domain_defined_
 
#define DB_RESOURCE_NEWGEN_DOMAIN   (db_resource_domain)
 
#define db_resource_NEWGEN_DOMAIN   (db_resource_domain)
 
#define db_resources_domain   (_gen_pipsdbm_private_start+3)
 newgen_db_resource_domain_defined More...
 
#define _newgen_db_resources_domain_defined_
 
#define DB_RESOURCES_NEWGEN_DOMAIN   (db_resources_domain)
 
#define db_resources_NEWGEN_DOMAIN   (db_resources_domain)
 
#define db_status_domain   (_gen_pipsdbm_private_start+4)
 newgen_db_resources_domain_defined More...
 
#define _newgen_db_status_domain_defined_
 
#define DB_STATUS_NEWGEN_DOMAIN   (db_status_domain)
 
#define db_status_NEWGEN_DOMAIN   (db_status_domain)
 
#define db_symbol_domain   (_gen_pipsdbm_private_start+5)
 newgen_db_status_domain_defined More...
 
#define _newgen_db_symbol_domain_defined_
 
#define DB_SYMBOL_NEWGEN_DOMAIN   (db_symbol_domain)
 
#define db_symbol_NEWGEN_DOMAIN   (db_symbol_domain)
 
#define DB_OWNED_RESOURCES(x)   ((db_owned_resources)((x).p))
 newgen_db_symbol_domain_defined More...
 
#define db_owned_resources_CAST(x)   DB_OWNED_RESOURCES(x)
 
#define DB_OWNED_RESOURCES_CAST(x)   DB_OWNED_RESOURCES(x)
 
#define DB_OWNED_RESOURCES_(x)   ((x).e)
 
#define DB_OWNED_RESOURCES_TYPE   db_owned_resources
 
#define db_owned_resources_TYPE   db_owned_resources
 
#define db_owned_resources_undefined   ((db_owned_resources)gen_chunk_undefined)
 
#define db_owned_resources_undefined_p(x)   ((x)==db_owned_resources_undefined)
 
#define gen_DB_OWNED_RESOURCES_cons   gen_db_owned_resources_cons
 
#define db_owned_resources_domain_number(x)   ((x)->_type_)
 
#define db_owned_resources_hash_table(x)   ((x)->_db_owned_resources_holder_)
 
#define db_owned_resources_key_type   db_symbol
 
#define db_owned_resources_value_type   db_resource
 
#define DB_OWNED_RESOURCES_MAP(k, v, c, f)   FUNCTION_MAP(db_owned_resources,p,p,k,v,c,f)
 
#define DB_OWNED_RESOURCES_FOREACH(k, v, f)   FUNCTION_FOREACH(db_owned_resources,p,p,k,v,f)
 
#define DB_RESOURCE(x)   ((db_resource)((x).p))
 DB_RESOURCE. More...
 
#define db_resource_CAST(x)   DB_RESOURCE(x)
 
#define DB_RESOURCE_CAST(x)   DB_RESOURCE(x)
 
#define DB_RESOURCE_(x)   ((x).e)
 
#define DB_RESOURCE_TYPE   db_resource
 
#define db_resource_TYPE   db_resource
 
#define db_resource_undefined   ((db_resource)gen_chunk_undefined)
 
#define db_resource_undefined_p(x)   ((x)==db_resource_undefined)
 
#define gen_DB_RESOURCE_cons   gen_db_resource_cons
 
#define db_resource_domain_number(x)   ((x)->_type_)
 
#define db_resource_pointer_(x)   db_resource_pointer(x) /**old hack compatible */
 
#define db_resource_pointer(x)   ((x)->_db_resource_pointer_)
 
#define db_resource_db_status_(x)   db_resource_db_status(x) /**old hack compatible */
 
#define db_resource_db_status(x)   ((x)->_db_resource_db_status_)
 
#define db_resource_time_(x)   db_resource_time(x) /**old hack compatible */
 
#define db_resource_time(x)   ((x)->_db_resource_time_)
 
#define db_resource_file_time_(x)   db_resource_file_time(x) /**old hack compatible */
 
#define db_resource_file_time(x)   ((x)->_db_resource_file_time_)
 
#define DB_RESOURCES(x)   ((db_resources)((x).p))
 DB_RESOURCES. More...
 
#define db_resources_CAST(x)   DB_RESOURCES(x)
 
#define DB_RESOURCES_CAST(x)   DB_RESOURCES(x)
 
#define DB_RESOURCES_(x)   ((x).e)
 
#define DB_RESOURCES_TYPE   db_resources
 
#define db_resources_TYPE   db_resources
 
#define db_resources_undefined   ((db_resources)gen_chunk_undefined)
 
#define db_resources_undefined_p(x)   ((x)==db_resources_undefined)
 
#define gen_DB_RESOURCES_cons   gen_db_resources_cons
 
#define db_resources_domain_number(x)   ((x)->_type_)
 
#define db_resources_hash_table(x)   ((x)->_db_resources_holder_)
 
#define db_resources_key_type   db_symbol
 
#define db_resources_value_type   db_owned_resources
 
#define DB_RESOURCES_MAP(k, v, c, f)   FUNCTION_MAP(db_resources,p,p,k,v,c,f)
 
#define DB_RESOURCES_FOREACH(k, v, f)   FUNCTION_FOREACH(db_resources,p,p,k,v,f)
 
#define DB_STATUS(x)   ((db_status)((x).p))
 DB_STATUS. More...
 
#define db_status_CAST(x)   DB_STATUS(x)
 
#define DB_STATUS_CAST(x)   DB_STATUS(x)
 
#define DB_STATUS_(x)   ((x).e)
 
#define DB_STATUS_TYPE   db_status
 
#define db_status_TYPE   db_status
 
#define db_status_undefined   ((db_status)gen_chunk_undefined)
 
#define db_status_undefined_p(x)   ((x)==db_status_undefined)
 
#define gen_DB_STATUS_cons   gen_db_status_cons
 
#define db_status_domain_number(x)   ((x)->_type_)
 
#define db_status_tag(x)   ((x)->_db_status_tag__)
 
#define db_status_loaded_p(x)   (db_status_tag(x)==is_db_status_loaded)
 
#define db_status_loaded_(x)   db_status_loaded(x) /**old hack compatible */
 
#define db_status_loaded(x)   ((x)->_db_status_union_._db_status_loaded_.u)
 
#define db_status_stored_p(x)   (db_status_tag(x)==is_db_status_stored)
 
#define db_status_stored_(x)   db_status_stored(x) /**old hack compatible */
 
#define db_status_stored(x)   ((x)->_db_status_union_._db_status_stored_.u)
 
#define db_status_required_p(x)   (db_status_tag(x)==is_db_status_required)
 
#define db_status_required_(x)   db_status_required(x) /**old hack compatible */
 
#define db_status_required(x)   ((x)->_db_status_union_._db_status_required_.u)
 
#define db_status_loaded_and_stored_p(x)   (db_status_tag(x)==is_db_status_loaded_and_stored)
 
#define db_status_loaded_and_stored_(x)   db_status_loaded_and_stored(x) /**old hack compatible */
 
#define db_status_loaded_and_stored(x)   ((x)->_db_status_union_._db_status_loaded_and_stored_.u)
 
#define DB_SYMBOL(x)   ((db_symbol)((x).p))
 DB_SYMBOL. More...
 
#define db_symbol_CAST(x)   DB_SYMBOL(x)
 
#define DB_SYMBOL_CAST(x)   DB_SYMBOL(x)
 
#define DB_SYMBOL_(x)   ((x).e)
 
#define DB_SYMBOL_TYPE   db_symbol
 
#define db_symbol_TYPE   db_symbol
 
#define db_symbol_undefined   ((db_symbol)gen_chunk_undefined)
 
#define db_symbol_undefined_p(x)   ((x)==db_symbol_undefined)
 
#define gen_DB_SYMBOL_cons   gen_db_symbol_cons
 
#define db_symbol_domain_number(x)   ((x)->_type_)
 
#define db_symbol_name_(x)   db_symbol_name(x) /**old hack compatible */
 
#define db_symbol_name(x)   ((x)->_db_symbol_name_)
 
#define pipsdbm_private_spec   "\--NEWGEN-START 20\n\external db_void;\n\db_owned_resources = db_symbol:db_symbol -> db_resource:db_resource;\n\db_resource = pointer:db_void x db_status:db_status x time:int x file_time:int;\n\db_resources = db_symbol:db_symbol -> db_owned_resources:db_owned_resources;\n\db_status = loaded:unit + stored:unit + required:unit + loaded_and_stored:unit;\n\tabulated db_symbol = name:string;\n\"
 

Typedefs

typedef struct _newgen_struct_db_owned_resources_db_owned_resources
 
typedef struct _newgen_struct_db_resource_db_resource
 
typedef struct _newgen_struct_db_resources_db_resources
 
typedef struct _newgen_struct_db_status_db_status
 
typedef struct _newgen_struct_db_symbol_db_symbol
 

Enumerations

enum  db_status_utype { is_db_status_loaded , is_db_status_stored , is_db_status_required , is_db_status_loaded_and_stored }
 

Functions

db_owned_resources copy_db_owned_resources (db_owned_resources)
 DB_OWNED_RESOURCES. More...
 
void free_db_owned_resources (db_owned_resources)
 
db_owned_resources check_db_owned_resources (db_owned_resources)
 
bool db_owned_resources_consistent_p (db_owned_resources)
 
bool db_owned_resources_defined_p (db_owned_resources)
 
list gen_db_owned_resources_cons (db_owned_resources, list)
 
void db_owned_resources_assign_contents (db_owned_resources, db_owned_resources)
 
void db_owned_resources_non_recursive_free (db_owned_resources)
 
void write_db_owned_resources (FILE *, db_owned_resources)
 
db_owned_resources read_db_owned_resources (FILE *)
 
db_owned_resources make_db_owned_resources (void)
 
db_resource apply_db_owned_resources (db_owned_resources, db_symbol)
 
void update_db_owned_resources (db_owned_resources, db_symbol, db_resource)
 
void extend_db_owned_resources (db_owned_resources, db_symbol, db_resource)
 
db_resource delete_db_owned_resources (db_owned_resources, db_symbol)
 
bool bound_db_owned_resources_p (db_owned_resources, db_symbol)
 
db_resource copy_db_resource (db_resource)
 DB_RESOURCE. More...
 
void free_db_resource (db_resource)
 
db_resource check_db_resource (db_resource)
 
bool db_resource_consistent_p (db_resource)
 
bool db_resource_defined_p (db_resource)
 
list gen_db_resource_cons (db_resource, list)
 
void db_resource_assign_contents (db_resource, db_resource)
 
void db_resource_non_recursive_free (db_resource)
 
void write_db_resource (FILE *, db_resource)
 
db_resource read_db_resource (FILE *)
 
db_resource make_db_resource (db_void, db_status, intptr_t, intptr_t)
 
db_resources copy_db_resources (db_resources)
 DB_RESOURCES. More...
 
void free_db_resources (db_resources)
 
db_resources check_db_resources (db_resources)
 
bool db_resources_consistent_p (db_resources)
 
bool db_resources_defined_p (db_resources)
 
list gen_db_resources_cons (db_resources, list)
 
void db_resources_assign_contents (db_resources, db_resources)
 
void db_resources_non_recursive_free (db_resources)
 
void write_db_resources (FILE *, db_resources)
 
db_resources read_db_resources (FILE *)
 
db_resources make_db_resources (void)
 
db_owned_resources apply_db_resources (db_resources, db_symbol)
 
void update_db_resources (db_resources, db_symbol, db_owned_resources)
 
void extend_db_resources (db_resources, db_symbol, db_owned_resources)
 
db_owned_resources delete_db_resources (db_resources, db_symbol)
 
bool bound_db_resources_p (db_resources, db_symbol)
 
db_status copy_db_status (db_status)
 DB_STATUS. More...
 
void free_db_status (db_status)
 
db_status check_db_status (db_status)
 
bool db_status_consistent_p (db_status)
 
bool db_status_defined_p (db_status)
 
list gen_db_status_cons (db_status, list)
 
void db_status_assign_contents (db_status, db_status)
 
void db_status_non_recursive_free (db_status)
 
void write_db_status (FILE *, db_status)
 
db_status read_db_status (FILE *)
 
string db_status_tag_as_string (enum db_status_utype)
 
db_status make_db_status (enum db_status_utype, void *)
 
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)
 DB_SYMBOL. More...
 
void free_db_symbol (db_symbol)
 
db_symbol check_db_symbol (db_symbol)
 
bool db_symbol_consistent_p (db_symbol)
 
bool db_symbol_defined_p (db_symbol)
 
list gen_db_symbol_cons (db_symbol, list)
 
void db_symbol_assign_contents (db_symbol, db_symbol)
 
void db_symbol_non_recursive_free (db_symbol)
 
db_symbol gen_find_db_symbol (char *)
 
void write_tabulated_db_symbol (FILE *)
 
void read_tabulated_db_symbol (FILE *)
 
db_symbol make_db_symbol (string)
 

Macro Definition Documentation

◆ _gen_pipsdbm_private_start

#define _gen_pipsdbm_private_start   20

Definition at line 3 of file pipsdbm_private.h.

◆ _newgen_db_owned_resources_domain_defined_

#define _newgen_db_owned_resources_domain_defined_

Definition at line 20 of file pipsdbm_private.h.

◆ _newgen_db_resource_domain_defined_

#define _newgen_db_resource_domain_defined_

Definition at line 28 of file pipsdbm_private.h.

◆ _newgen_db_resources_domain_defined_

#define _newgen_db_resources_domain_defined_

Definition at line 36 of file pipsdbm_private.h.

◆ _newgen_db_status_domain_defined_

#define _newgen_db_status_domain_defined_

Definition at line 44 of file pipsdbm_private.h.

◆ _newgen_db_symbol_domain_defined_

#define _newgen_db_symbol_domain_defined_

Definition at line 52 of file pipsdbm_private.h.

◆ _newgen_db_void_domain_defined_

#define _newgen_db_void_domain_defined_

Definition at line 11 of file pipsdbm_private.h.

◆ DB_OWNED_RESOURCES

#define DB_OWNED_RESOURCES (   x)    ((db_owned_resources)((x).p))

newgen_db_symbol_domain_defined

DB_OWNED_RESOURCES

Definition at line 61 of file pipsdbm_private.h.

◆ DB_OWNED_RESOURCES_

#define DB_OWNED_RESOURCES_ (   x)    ((x).e)

Definition at line 64 of file pipsdbm_private.h.

◆ db_owned_resources_CAST

#define db_owned_resources_CAST (   x)    DB_OWNED_RESOURCES(x)

Definition at line 62 of file pipsdbm_private.h.

◆ DB_OWNED_RESOURCES_CAST

#define DB_OWNED_RESOURCES_CAST (   x)    DB_OWNED_RESOURCES(x)

Definition at line 63 of file pipsdbm_private.h.

◆ db_owned_resources_domain

#define db_owned_resources_domain   (_gen_pipsdbm_private_start+1)

newgen_db_void_domain_defined

Definition at line 18 of file pipsdbm_private.h.

◆ db_owned_resources_domain_number

#define db_owned_resources_domain_number (   x)    ((x)->_type_)

Definition at line 88 of file pipsdbm_private.h.

◆ DB_OWNED_RESOURCES_FOREACH

#define DB_OWNED_RESOURCES_FOREACH (   k,
  v,
  f 
)    FUNCTION_FOREACH(db_owned_resources,p,p,k,v,f)

Definition at line 93 of file pipsdbm_private.h.

◆ db_owned_resources_hash_table

#define db_owned_resources_hash_table (   x)    ((x)->_db_owned_resources_holder_)

Definition at line 89 of file pipsdbm_private.h.

◆ db_owned_resources_key_type

#define db_owned_resources_key_type   db_symbol

Definition at line 90 of file pipsdbm_private.h.

◆ DB_OWNED_RESOURCES_MAP

#define DB_OWNED_RESOURCES_MAP (   k,
  v,
  c,
  f 
)    FUNCTION_MAP(db_owned_resources,p,p,k,v,c,f)

Definition at line 92 of file pipsdbm_private.h.

◆ DB_OWNED_RESOURCES_NEWGEN_DOMAIN

#define DB_OWNED_RESOURCES_NEWGEN_DOMAIN   (db_owned_resources_domain)

Definition at line 21 of file pipsdbm_private.h.

◆ db_owned_resources_NEWGEN_DOMAIN

#define db_owned_resources_NEWGEN_DOMAIN   (db_owned_resources_domain)

Definition at line 22 of file pipsdbm_private.h.

◆ DB_OWNED_RESOURCES_TYPE

#define DB_OWNED_RESOURCES_TYPE   db_owned_resources

Definition at line 65 of file pipsdbm_private.h.

◆ db_owned_resources_TYPE

#define db_owned_resources_TYPE   db_owned_resources

Definition at line 66 of file pipsdbm_private.h.

◆ db_owned_resources_undefined

#define db_owned_resources_undefined   ((db_owned_resources)gen_chunk_undefined)

Definition at line 67 of file pipsdbm_private.h.

◆ db_owned_resources_undefined_p

#define db_owned_resources_undefined_p (   x)    ((x)==db_owned_resources_undefined)

Definition at line 68 of file pipsdbm_private.h.

◆ db_owned_resources_value_type

#define db_owned_resources_value_type   db_resource

Definition at line 91 of file pipsdbm_private.h.

◆ DB_RESOURCE

#define DB_RESOURCE (   x)    ((db_resource)((x).p))

DB_RESOURCE.

Definition at line 102 of file pipsdbm_private.h.

◆ DB_RESOURCE_

#define DB_RESOURCE_ (   x)    ((x).e)

Definition at line 105 of file pipsdbm_private.h.

◆ db_resource_CAST

#define db_resource_CAST (   x)    DB_RESOURCE(x)

Definition at line 103 of file pipsdbm_private.h.

◆ DB_RESOURCE_CAST

#define DB_RESOURCE_CAST (   x)    DB_RESOURCE(x)

Definition at line 104 of file pipsdbm_private.h.

◆ db_resource_db_status

#define db_resource_db_status (   x)    ((x)->_db_resource_db_status_)

Definition at line 136 of file pipsdbm_private.h.

◆ db_resource_db_status_

#define db_resource_db_status_ (   x)    db_resource_db_status(x) /**old hack compatible */

Definition at line 135 of file pipsdbm_private.h.

◆ db_resource_domain

#define db_resource_domain   (_gen_pipsdbm_private_start+2)

newgen_db_owned_resources_domain_defined

Definition at line 26 of file pipsdbm_private.h.

◆ db_resource_domain_number

#define db_resource_domain_number (   x)    ((x)->_type_)

Definition at line 132 of file pipsdbm_private.h.

◆ db_resource_file_time

#define db_resource_file_time (   x)    ((x)->_db_resource_file_time_)

Definition at line 140 of file pipsdbm_private.h.

◆ db_resource_file_time_

#define db_resource_file_time_ (   x)    db_resource_file_time(x) /**old hack compatible */

Definition at line 139 of file pipsdbm_private.h.

◆ DB_RESOURCE_NEWGEN_DOMAIN

#define DB_RESOURCE_NEWGEN_DOMAIN   (db_resource_domain)

Definition at line 29 of file pipsdbm_private.h.

◆ db_resource_NEWGEN_DOMAIN

#define db_resource_NEWGEN_DOMAIN   (db_resource_domain)

Definition at line 30 of file pipsdbm_private.h.

◆ db_resource_pointer

#define db_resource_pointer (   x)    ((x)->_db_resource_pointer_)

Definition at line 134 of file pipsdbm_private.h.

◆ db_resource_pointer_

#define db_resource_pointer_ (   x)    db_resource_pointer(x) /**old hack compatible */

Definition at line 133 of file pipsdbm_private.h.

◆ db_resource_time

#define db_resource_time (   x)    ((x)->_db_resource_time_)

Definition at line 138 of file pipsdbm_private.h.

◆ db_resource_time_

#define db_resource_time_ (   x)    db_resource_time(x) /**old hack compatible */

Definition at line 137 of file pipsdbm_private.h.

◆ DB_RESOURCE_TYPE

#define DB_RESOURCE_TYPE   db_resource

Definition at line 106 of file pipsdbm_private.h.

◆ db_resource_TYPE

#define db_resource_TYPE   db_resource

Definition at line 107 of file pipsdbm_private.h.

◆ db_resource_undefined

#define db_resource_undefined   ((db_resource)gen_chunk_undefined)

Definition at line 108 of file pipsdbm_private.h.

◆ db_resource_undefined_p

#define db_resource_undefined_p (   x)    ((x)==db_resource_undefined)

Definition at line 109 of file pipsdbm_private.h.

◆ DB_RESOURCES

#define DB_RESOURCES (   x)    ((db_resources)((x).p))

DB_RESOURCES.

Definition at line 144 of file pipsdbm_private.h.

◆ DB_RESOURCES_

#define DB_RESOURCES_ (   x)    ((x).e)

Definition at line 147 of file pipsdbm_private.h.

◆ db_resources_CAST

#define db_resources_CAST (   x)    DB_RESOURCES(x)

Definition at line 145 of file pipsdbm_private.h.

◆ DB_RESOURCES_CAST

#define DB_RESOURCES_CAST (   x)    DB_RESOURCES(x)

Definition at line 146 of file pipsdbm_private.h.

◆ db_resources_domain

#define db_resources_domain   (_gen_pipsdbm_private_start+3)

newgen_db_resource_domain_defined

Definition at line 34 of file pipsdbm_private.h.

◆ db_resources_domain_number

#define db_resources_domain_number (   x)    ((x)->_type_)

Definition at line 171 of file pipsdbm_private.h.

◆ DB_RESOURCES_FOREACH

#define DB_RESOURCES_FOREACH (   k,
  v,
  f 
)    FUNCTION_FOREACH(db_resources,p,p,k,v,f)

Definition at line 176 of file pipsdbm_private.h.

◆ db_resources_hash_table

#define db_resources_hash_table (   x)    ((x)->_db_resources_holder_)

Definition at line 172 of file pipsdbm_private.h.

◆ db_resources_key_type

#define db_resources_key_type   db_symbol

Definition at line 173 of file pipsdbm_private.h.

◆ DB_RESOURCES_MAP

#define DB_RESOURCES_MAP (   k,
  v,
  c,
  f 
)    FUNCTION_MAP(db_resources,p,p,k,v,c,f)

Definition at line 175 of file pipsdbm_private.h.

◆ DB_RESOURCES_NEWGEN_DOMAIN

#define DB_RESOURCES_NEWGEN_DOMAIN   (db_resources_domain)

Definition at line 37 of file pipsdbm_private.h.

◆ db_resources_NEWGEN_DOMAIN

#define db_resources_NEWGEN_DOMAIN   (db_resources_domain)

Definition at line 38 of file pipsdbm_private.h.

◆ DB_RESOURCES_TYPE

#define DB_RESOURCES_TYPE   db_resources

Definition at line 148 of file pipsdbm_private.h.

◆ db_resources_TYPE

#define db_resources_TYPE   db_resources

Definition at line 149 of file pipsdbm_private.h.

◆ db_resources_undefined

#define db_resources_undefined   ((db_resources)gen_chunk_undefined)

Definition at line 150 of file pipsdbm_private.h.

◆ db_resources_undefined_p

#define db_resources_undefined_p (   x)    ((x)==db_resources_undefined)

Definition at line 151 of file pipsdbm_private.h.

◆ db_resources_value_type

#define db_resources_value_type   db_owned_resources

Definition at line 174 of file pipsdbm_private.h.

◆ DB_STATUS

#define DB_STATUS (   x)    ((db_status)((x).p))

DB_STATUS.

Definition at line 185 of file pipsdbm_private.h.

◆ DB_STATUS_

#define DB_STATUS_ (   x)    ((x).e)

Definition at line 188 of file pipsdbm_private.h.

◆ db_status_CAST

#define db_status_CAST (   x)    DB_STATUS(x)

Definition at line 186 of file pipsdbm_private.h.

◆ DB_STATUS_CAST

#define DB_STATUS_CAST (   x)    DB_STATUS(x)

Definition at line 187 of file pipsdbm_private.h.

◆ db_status_domain

#define db_status_domain   (_gen_pipsdbm_private_start+4)

newgen_db_resources_domain_defined

Definition at line 42 of file pipsdbm_private.h.

◆ db_status_domain_number

#define db_status_domain_number (   x)    ((x)->_type_)

Definition at line 229 of file pipsdbm_private.h.

◆ db_status_loaded

#define db_status_loaded (   x)    ((x)->_db_status_union_._db_status_loaded_.u)

Definition at line 233 of file pipsdbm_private.h.

◆ db_status_loaded_

#define db_status_loaded_ (   x)    db_status_loaded(x) /**old hack compatible */

Definition at line 232 of file pipsdbm_private.h.

◆ db_status_loaded_and_stored

#define db_status_loaded_and_stored (   x)    ((x)->_db_status_union_._db_status_loaded_and_stored_.u)

Definition at line 242 of file pipsdbm_private.h.

◆ db_status_loaded_and_stored_

#define db_status_loaded_and_stored_ (   x)    db_status_loaded_and_stored(x) /**old hack compatible */

Definition at line 241 of file pipsdbm_private.h.

◆ db_status_loaded_and_stored_p

#define db_status_loaded_and_stored_p (   x)    (db_status_tag(x)==is_db_status_loaded_and_stored)

Definition at line 240 of file pipsdbm_private.h.

◆ db_status_loaded_p

#define db_status_loaded_p (   x)    (db_status_tag(x)==is_db_status_loaded)

Definition at line 231 of file pipsdbm_private.h.

◆ DB_STATUS_NEWGEN_DOMAIN

#define DB_STATUS_NEWGEN_DOMAIN   (db_status_domain)

Definition at line 45 of file pipsdbm_private.h.

◆ db_status_NEWGEN_DOMAIN

#define db_status_NEWGEN_DOMAIN   (db_status_domain)

Definition at line 46 of file pipsdbm_private.h.

◆ db_status_required

#define db_status_required (   x)    ((x)->_db_status_union_._db_status_required_.u)

Definition at line 239 of file pipsdbm_private.h.

◆ db_status_required_

#define db_status_required_ (   x)    db_status_required(x) /**old hack compatible */

Definition at line 238 of file pipsdbm_private.h.

◆ db_status_required_p

#define db_status_required_p (   x)    (db_status_tag(x)==is_db_status_required)

Definition at line 237 of file pipsdbm_private.h.

◆ db_status_stored

#define db_status_stored (   x)    ((x)->_db_status_union_._db_status_stored_.u)

Definition at line 236 of file pipsdbm_private.h.

◆ db_status_stored_

#define db_status_stored_ (   x)    db_status_stored(x) /**old hack compatible */

Definition at line 235 of file pipsdbm_private.h.

◆ db_status_stored_p

#define db_status_stored_p (   x)    (db_status_tag(x)==is_db_status_stored)

Definition at line 234 of file pipsdbm_private.h.

◆ db_status_tag

#define db_status_tag (   x)    ((x)->_db_status_tag__)

Definition at line 230 of file pipsdbm_private.h.

◆ DB_STATUS_TYPE

#define DB_STATUS_TYPE   db_status

Definition at line 189 of file pipsdbm_private.h.

◆ db_status_TYPE

#define db_status_TYPE   db_status

Definition at line 190 of file pipsdbm_private.h.

◆ db_status_undefined

#define db_status_undefined   ((db_status)gen_chunk_undefined)

Definition at line 191 of file pipsdbm_private.h.

◆ db_status_undefined_p

#define db_status_undefined_p (   x)    ((x)==db_status_undefined)

Definition at line 192 of file pipsdbm_private.h.

◆ DB_SYMBOL

#define DB_SYMBOL (   x)    ((db_symbol)((x).p))

DB_SYMBOL.

Definition at line 246 of file pipsdbm_private.h.

◆ DB_SYMBOL_

#define DB_SYMBOL_ (   x)    ((x).e)

Definition at line 249 of file pipsdbm_private.h.

◆ db_symbol_CAST

#define db_symbol_CAST (   x)    DB_SYMBOL(x)

Definition at line 247 of file pipsdbm_private.h.

◆ DB_SYMBOL_CAST

#define DB_SYMBOL_CAST (   x)    DB_SYMBOL(x)

Definition at line 248 of file pipsdbm_private.h.

◆ db_symbol_domain

#define db_symbol_domain   (_gen_pipsdbm_private_start+5)

newgen_db_status_domain_defined

Definition at line 50 of file pipsdbm_private.h.

◆ db_symbol_domain_number

#define db_symbol_domain_number (   x)    ((x)->_type_)

Definition at line 275 of file pipsdbm_private.h.

◆ db_symbol_name

#define db_symbol_name (   x)    ((x)->_db_symbol_name_)

Definition at line 277 of file pipsdbm_private.h.

◆ db_symbol_name_

#define db_symbol_name_ (   x)    db_symbol_name(x) /**old hack compatible */

Definition at line 276 of file pipsdbm_private.h.

◆ DB_SYMBOL_NEWGEN_DOMAIN

#define DB_SYMBOL_NEWGEN_DOMAIN   (db_symbol_domain)

Definition at line 53 of file pipsdbm_private.h.

◆ db_symbol_NEWGEN_DOMAIN

#define db_symbol_NEWGEN_DOMAIN   (db_symbol_domain)

Definition at line 54 of file pipsdbm_private.h.

◆ DB_SYMBOL_TYPE

#define DB_SYMBOL_TYPE   db_symbol

Definition at line 250 of file pipsdbm_private.h.

◆ db_symbol_TYPE

#define db_symbol_TYPE   db_symbol

Definition at line 251 of file pipsdbm_private.h.

◆ db_symbol_undefined

#define db_symbol_undefined   ((db_symbol)gen_chunk_undefined)

Definition at line 252 of file pipsdbm_private.h.

◆ db_symbol_undefined_p

#define db_symbol_undefined_p (   x)    ((x)==db_symbol_undefined)

Definition at line 253 of file pipsdbm_private.h.

◆ DB_VOID_NEWGEN_DOMAIN

#define DB_VOID_NEWGEN_DOMAIN   (DB_VOID_NEWGEN_EXTERNAL)

Definition at line 14 of file pipsdbm_private.h.

◆ db_void_NEWGEN_DOMAIN

#define db_void_NEWGEN_DOMAIN   (DB_VOID_NEWGEN_EXTERNAL)

Definition at line 15 of file pipsdbm_private.h.

◆ DB_VOID_NEWGEN_EXTERNAL

#define DB_VOID_NEWGEN_EXTERNAL   (_gen_pipsdbm_private_start+0)

Definition at line 13 of file pipsdbm_private.h.

◆ gen_DB_OWNED_RESOURCES_cons

#define gen_DB_OWNED_RESOURCES_cons   gen_db_owned_resources_cons

Definition at line 75 of file pipsdbm_private.h.

◆ gen_DB_RESOURCE_cons

#define gen_DB_RESOURCE_cons   gen_db_resource_cons

Definition at line 116 of file pipsdbm_private.h.

◆ gen_DB_RESOURCES_cons

#define gen_DB_RESOURCES_cons   gen_db_resources_cons

Definition at line 158 of file pipsdbm_private.h.

◆ gen_DB_STATUS_cons

#define gen_DB_STATUS_cons   gen_db_status_cons

Definition at line 199 of file pipsdbm_private.h.

◆ gen_DB_SYMBOL_cons

#define gen_DB_SYMBOL_cons   gen_db_symbol_cons

Definition at line 260 of file pipsdbm_private.h.

◆ newgen_db_void

#define newgen_db_void (   p)    (p) /**old hack compatible */

Definition at line 12 of file pipsdbm_private.h.

◆ pipsdbm_private_spec

#define pipsdbm_private_spec   "\--NEWGEN-START 20\n\external db_void;\n\db_owned_resources = db_symbol:db_symbol -> db_resource:db_resource;\n\db_resource = pointer:db_void x db_status:db_status x time:int x file_time:int;\n\db_resources = db_symbol:db_symbol -> db_owned_resources:db_owned_resources;\n\db_status = loaded:unit + stored:unit + required:unit + loaded_and_stored:unit;\n\tabulated db_symbol = name:string;\n\"

Definition at line 279 of file pipsdbm_private.h.

Typedef Documentation

◆ db_owned_resources

Definition at line 23 of file pipsdbm_private.h.

◆ db_resource

Definition at line 31 of file pipsdbm_private.h.

◆ db_resources

Definition at line 39 of file pipsdbm_private.h.

◆ db_status

Definition at line 47 of file pipsdbm_private.h.

◆ db_symbol

Definition at line 55 of file pipsdbm_private.h.

Enumeration Type Documentation

◆ db_status_utype

Enumerator
is_db_status_loaded 
is_db_status_stored 
is_db_status_required 
is_db_status_loaded_and_stored 

Definition at line 205 of file pipsdbm_private.h.

205  {
210 };
@ is_db_status_loaded_and_stored
@ is_db_status_loaded
@ is_db_status_stored
@ is_db_status_required

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.

Referenced by get_resource().

+ Here is the call graph for this function:
+ Here is the caller 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.

Referenced by db_module_exists_p().

+ Here is the call graph for this function:
+ Here is the caller 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.

Referenced by db_retrieve_resources(), db_unput_resources(), and get_resource().

+ Here is the call graph for this function:
+ Here is the caller 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.

Referenced by db_get_module_list_initial_order(), and db_module_exists_p().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_owned_resources_assign_contents(), and db_owned_resources_consistent_p().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_resource_assign_contents(), and db_resource_consistent_p().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_resources_assign_contents(), and db_resources_consistent_p().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_status_assign_contents(), and db_status_consistent_p().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_symbol_assign_contents(), and db_symbol_consistent_p().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_owned_resources_assign_contents().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_resource_assign_contents().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_resources_assign_contents().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_status_assign_contents().

+ Here is the call graph for this function:
+ Here is the caller 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)

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

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().

Referenced by db_symbol_assign_contents().

+ Here is the call graph for this function:
+ Here is the caller 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.

Referenced by db_delete_resource().

+ Here is the call graph for this function:
+ Here is the caller 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.

Referenced by db_clean_all_required_resources().

+ Here is the call graph for this function:
+ Here is the caller 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.

Referenced by find_or_create_db_resource().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_delete_resource().

+ Here is the call graph for this function:
+ Here is the caller 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.

Referenced by init_owned_resources_if_necessary().

+ Here is the call graph for this function:
+ Here is the caller 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.

Referenced by find_or_create_db_resource().

+ Here is the call graph for this function:
+ Here is the caller 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,
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.

Referenced by db_set_resource_as_required(), make_db_status_loaded(), make_db_status_loaded_and_stored(), make_db_status_required(), and make_db_status_stored().

+ Here is the call graph for this function:
+ Here is the caller 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.

Referenced by db_put_or_update_memory_resource().

+ Here is the call graph for this function:
+ Here is the caller 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.

Referenced by find_or_create_db_symbol().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_open_pips_database().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by load_meta_data().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by db_save_pips_database().

+ Here is the call graph for this function:
+ Here is the caller 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().

Referenced by save_meta_data().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: