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

Go to the source code of this file.

Typedefs

typedef void * void_star
 

Functions

attachee copy_attachee (attachee p)
 ATTACHEE. More...
 
void free_attachee (attachee p)
 
attachee check_attachee (attachee p)
 
bool attachee_consistent_p (attachee p)
 
bool attachee_defined_p (attachee p)
 
list gen_attachee_cons (attachee p, list l)
 
void attachee_assign_contents (attachee r, attachee v)
 
void attachee_non_recursive_free (attachee p)
 
void write_attachee (FILE *f, attachee p)
 
attachee read_attachee (FILE *f)
 
string attachee_tag_as_string (enum attachee_utype tag)
 
attachee make_attachee (enum attachee_utype tag, void *val)
 
attachee make_attachee_statement_line_number (intptr_t _field_)
 
attachee make_attachee_reference (reference _field_)
 
attachee make_attachee_call (call _field_)
 
attachee make_attachee_declaration (entity _field_)
 
attachee make_attachee_type (string _field_)
 
attachee make_attachee_loop (loop _field_)
 
attachee make_attachee_module_head (entity _field_)
 
attachee make_attachee_complementary_sections (void)
 
attachee make_attachee_complexities (void)
 
attachee make_attachee_continuation_conditions (void)
 
attachee make_attachee_cumulated_effects (void)
 
attachee make_attachee_out_regions (void)
 
attachee make_attachee_preconditions (void)
 
attachee make_attachee_privatized_regions (void)
 
attachee make_attachee_proper_effects (void)
 
attachee make_attachee_proper_regions (void)
 
attachee make_attachee_regions (void)
 
attachee make_attachee_static_control (void)
 
attachee make_attachee_transformers (void)
 
attachee make_attachee_decoration (void)
 
attachee make_attachee_comment (void)
 
attachment copy_attachment (attachment p)
 ATTACHMENT. More...
 
void free_attachment (attachment p)
 
attachment check_attachment (attachment p)
 
bool attachment_consistent_p (attachment p)
 
bool attachment_defined_p (attachment p)
 
list gen_attachment_cons (attachment p, list l)
 
void attachment_assign_contents (attachment r, attachment v)
 
void attachment_non_recursive_free (attachment p)
 
void write_attachment (FILE *f, attachment p)
 
attachment read_attachment (FILE *f)
 
attachment make_attachment (attachee a1, intptr_t a2, intptr_t a3)
 
attachments copy_attachments (attachments p)
 ATTACHMENTS. More...
 
void free_attachments (attachments p)
 
attachments check_attachments (attachments p)
 
bool attachments_consistent_p (attachments p)
 
bool attachments_defined_p (attachments p)
 
list gen_attachments_cons (attachments p, list l)
 
void attachments_assign_contents (attachments r, attachments v)
 
void attachments_non_recursive_free (attachments p)
 
void write_attachments (FILE *f, attachments p)
 
attachments read_attachments (FILE *f)
 
attachments make_attachments (list a)
 
word_to_attachments copy_word_to_attachments (word_to_attachments p)
 WORD_TO_ATTACHMENTS. More...
 
void free_word_to_attachments (word_to_attachments p)
 
word_to_attachments check_word_to_attachments (word_to_attachments p)
 
bool word_to_attachments_consistent_p (word_to_attachments p)
 
bool word_to_attachments_defined_p (word_to_attachments p)
 
list gen_word_to_attachments_cons (word_to_attachments p, list l)
 
void word_to_attachments_assign_contents (word_to_attachments r, word_to_attachments v)
 
void word_to_attachments_non_recursive_free (word_to_attachments p)
 
void write_word_to_attachments (FILE *f, word_to_attachments p)
 
word_to_attachments read_word_to_attachments (FILE *f)
 
word_to_attachments make_word_to_attachments (void)
 
attachments apply_word_to_attachments (word_to_attachments f, void_star k)
 
void update_word_to_attachments (word_to_attachments f, void_star k, attachments v)
 
void extend_word_to_attachments (word_to_attachments f, void_star k, attachments v)
 
attachments delete_word_to_attachments (word_to_attachments f, void_star k)
 
bool bound_word_to_attachments_p (word_to_attachments f, void_star k)
 

Typedef Documentation

◆ void_star

typedef void* void_star

Definition at line 7 of file word_attachment.c.

Function Documentation

◆ apply_word_to_attachments()

attachments apply_word_to_attachments ( word_to_attachments  f,
void_star  k 
)

Definition at line 272 of file word_attachment.c.

272  {
274 }
#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 intptr_t
Definition: stdint.in.h:294
#define word_to_attachments_hash_table(x)

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

+ Here is the call graph for this function:

◆ attachee_assign_contents()

void attachee_assign_contents ( attachee  r,
attachee  v 
)

Definition at line 37 of file word_attachment.c.

37  {
38  check_attachee(r);
39  check_attachee(v);
40  message_assert("defined references to domain attachee",
42  memcpy(r, v, sizeof(struct _newgen_struct_attachee_));
43 }
bool attachee_defined_p(attachee p)
attachee check_attachee(attachee p)
#define message_assert(msg, ex)
Definition: newgen_assert.h:47

References attachee_defined_p(), check_attachee(), and message_assert.

+ Here is the call graph for this function:

◆ attachee_consistent_p()

bool attachee_consistent_p ( attachee  p)

Definition at line 27 of file word_attachment.c.

27  {
28  check_attachee(p);
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
A gen_chunk is used to store every object.
Definition: genC.h:58

References check_attachee(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ attachee_defined_p()

bool attachee_defined_p ( attachee  p)

Definition at line 31 of file word_attachment.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:

◆ attachee_non_recursive_free()

void attachee_non_recursive_free ( attachee  p)

Definition at line 44 of file word_attachment.c.

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

References free().

+ Here is the call graph for this function:

◆ attachee_tag_as_string()

string attachee_tag_as_string ( enum attachee_utype  tag)

Definition at line 54 of file word_attachment.c.

54  {
55  switch (tag) {
56  case is_attachee_statement_line_number: return "statement_line_number";
57  case is_attachee_reference: return "reference";
58  case is_attachee_call: return "call";
59  case is_attachee_declaration: return "declaration";
60  case is_attachee_type: return "type";
61  case is_attachee_loop: return "loop";
62  case is_attachee_module_head: return "module_head";
63  case is_attachee_complementary_sections: return "complementary_sections";
64  case is_attachee_complexities: return "complexities";
65  case is_attachee_continuation_conditions: return "continuation_conditions";
66  case is_attachee_cumulated_effects: return "cumulated_effects";
67  case is_attachee_out_regions: return "out_regions";
68  case is_attachee_preconditions: return "preconditions";
69  case is_attachee_privatized_regions: return "privatized_regions";
70  case is_attachee_proper_effects: return "proper_effects";
71  case is_attachee_proper_regions: return "proper_regions";
72  case is_attachee_regions: return "regions";
73  case is_attachee_static_control: return "static_control";
74  case is_attachee_transformers: return "transformers";
75  case is_attachee_decoration: return "decoration";
76  case is_attachee_comment: return "comment";
77  default: return string_undefined;
78  }
79 }
int tag
TAG.
Definition: newgen_types.h:92
#define string_undefined
Definition: newgen_types.h:40
@ is_attachee_regions
@ is_attachee_preconditions
@ is_attachee_statement_line_number
@ is_attachee_transformers
@ is_attachee_module_head
@ is_attachee_call
@ is_attachee_privatized_regions
@ is_attachee_loop
@ is_attachee_comment
@ is_attachee_continuation_conditions
@ is_attachee_complementary_sections
@ is_attachee_declaration
@ is_attachee_cumulated_effects
@ is_attachee_decoration
@ is_attachee_type
@ is_attachee_proper_effects
@ is_attachee_static_control
@ is_attachee_reference
@ is_attachee_proper_regions
@ is_attachee_complexities
@ is_attachee_out_regions

References is_attachee_call, is_attachee_comment, is_attachee_complementary_sections, is_attachee_complexities, is_attachee_continuation_conditions, is_attachee_cumulated_effects, is_attachee_declaration, is_attachee_decoration, is_attachee_loop, is_attachee_module_head, is_attachee_out_regions, is_attachee_preconditions, is_attachee_privatized_regions, is_attachee_proper_effects, is_attachee_proper_regions, is_attachee_reference, is_attachee_regions, is_attachee_statement_line_number, is_attachee_static_control, is_attachee_transformers, is_attachee_type, and string_undefined.

◆ attachment_assign_contents()

void attachment_assign_contents ( attachment  r,
attachment  v 
)

Definition at line 168 of file word_attachment.c.

168  {
169  check_attachment(r);
170  check_attachment(v);
171  message_assert("defined references to domain attachment",
173  memcpy(r, v, sizeof(struct _newgen_struct_attachment_));
174 }
bool attachment_defined_p(attachment p)
attachment check_attachment(attachment p)

References attachment_defined_p(), check_attachment(), and message_assert.

+ Here is the call graph for this function:

◆ attachment_consistent_p()

bool attachment_consistent_p ( attachment  p)

Definition at line 158 of file word_attachment.c.

158  {
159  check_attachment(p);
160  return gen_consistent_p((gen_chunk*) p);
161 }

References check_attachment(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ attachment_defined_p()

bool attachment_defined_p ( attachment  p)

Definition at line 162 of file word_attachment.c.

162  {
163  return gen_defined_p((gen_chunk*) p);
164 }

References gen_defined_p().

+ Here is the call graph for this function:

◆ attachment_non_recursive_free()

void attachment_non_recursive_free ( attachment  p)

Definition at line 175 of file word_attachment.c.

175  {
176  // should clear up contents...
177  free(p);
178 }

References free().

+ Here is the call graph for this function:

◆ attachments_assign_contents()

void attachments_assign_contents ( attachments  r,
attachments  v 
)

Definition at line 210 of file word_attachment.c.

210  {
213  message_assert("defined references to domain attachments",
215  memcpy(r, v, sizeof(struct _newgen_struct_attachments_));
216 }
bool attachments_defined_p(attachments p)
attachments check_attachments(attachments p)

References attachments_defined_p(), check_attachments(), and message_assert.

+ Here is the call graph for this function:

◆ attachments_consistent_p()

bool attachments_consistent_p ( attachments  p)

Definition at line 200 of file word_attachment.c.

200  {
202  return gen_consistent_p((gen_chunk*) p);
203 }

References check_attachments(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ attachments_defined_p()

bool attachments_defined_p ( attachments  p)

Definition at line 204 of file word_attachment.c.

204  {
205  return gen_defined_p((gen_chunk*) p);
206 }

References gen_defined_p().

+ Here is the call graph for this function:

◆ attachments_non_recursive_free()

void attachments_non_recursive_free ( attachments  p)

Definition at line 217 of file word_attachment.c.

217  {
218  // should clear up contents...
219  free(p);
220 }

References free().

+ Here is the call graph for this function:

◆ bound_word_to_attachments_p()

bool bound_word_to_attachments_p ( word_to_attachments  f,
void_star  k 
)

Definition at line 284 of file word_attachment.c.

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

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

+ Here is the call graph for this function:

◆ check_attachee()

attachee check_attachee ( attachee  p)

Definition at line 24 of file word_attachment.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 attachee_domain
newgen_void_star_domain_defined

References attachee_domain, and gen_check().

+ Here is the call graph for this function:

◆ check_attachment()

attachment check_attachment ( attachment  p)

Definition at line 155 of file word_attachment.c.

155  {
157 }
#define attachment_domain
newgen_attachee_domain_defined

References attachment_domain, and gen_check().

+ Here is the call graph for this function:

◆ check_attachments()

attachments check_attachments ( attachments  p)

Definition at line 197 of file word_attachment.c.

197  {
199 }
#define attachments_domain
newgen_attachment_domain_defined

References attachments_domain, and gen_check().

+ Here is the call graph for this function:

◆ check_word_to_attachments()

word_to_attachments check_word_to_attachments ( word_to_attachments  p)

Definition at line 239 of file word_attachment.c.

239  {
241 }
#define word_to_attachments_domain
newgen_attachments_domain_defined

References gen_check(), and word_to_attachments_domain.

+ Here is the call graph for this function:

◆ copy_attachee()

attachee copy_attachee ( attachee  p)

ATTACHEE.

Definition at line 18 of file word_attachment.c.

18  {
19  return (attachee) gen_copy_tree((gen_chunk*) p);
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_attachment()

attachment copy_attachment ( attachment  p)

ATTACHMENT.

Definition at line 149 of file word_attachment.c.

149  {
150  return (attachment) gen_copy_tree((gen_chunk*) p);
151 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ copy_attachments()

attachments copy_attachments ( attachments  p)

ATTACHMENTS.

Definition at line 191 of file word_attachment.c.

191  {
192  return (attachments) gen_copy_tree((gen_chunk*) p);
193 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ copy_word_to_attachments()

word_to_attachments copy_word_to_attachments ( word_to_attachments  p)

WORD_TO_ATTACHMENTS.

Definition at line 233 of file word_attachment.c.

233  {
235 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ delete_word_to_attachments()

attachments delete_word_to_attachments ( word_to_attachments  f,
void_star  k 
)

Definition at line 281 of file word_attachment.c.

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

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

+ Here is the call graph for this function:

◆ extend_word_to_attachments()

void extend_word_to_attachments ( word_to_attachments  f,
void_star  k,
attachments  v 
)

Definition at line 278 of file word_attachment.c.

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

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

+ Here is the call graph for this function:

◆ free_attachee()

void free_attachee ( attachee  p)

Definition at line 21 of file word_attachment.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_attachment()

void free_attachment ( attachment  p)

Definition at line 152 of file word_attachment.c.

152  {
153  gen_free((gen_chunk*) p);
154 }

References gen_free().

+ Here is the call graph for this function:

◆ free_attachments()

void free_attachments ( attachments  p)

Definition at line 194 of file word_attachment.c.

194  {
195  gen_free((gen_chunk*) p);
196 }

References gen_free().

+ Here is the call graph for this function:

◆ free_word_to_attachments()

void free_word_to_attachments ( word_to_attachments  p)

Definition at line 236 of file word_attachment.c.

236  {
237  gen_free((gen_chunk*) p);
238 }

References gen_free().

+ Here is the call graph for this function:

◆ gen_attachee_cons()

list gen_attachee_cons ( attachee  p,
list  l 
)

Definition at line 34 of file word_attachment.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 ATTACHEE_NEWGEN_DOMAIN

References ATTACHEE_NEWGEN_DOMAIN, and gen_typed_cons().

+ Here is the call graph for this function:

◆ gen_attachment_cons()

list gen_attachment_cons ( attachment  p,
list  l 
)

Definition at line 165 of file word_attachment.c.

165  {
167 }
#define ATTACHMENT_NEWGEN_DOMAIN

References ATTACHMENT_NEWGEN_DOMAIN, and gen_typed_cons().

+ Here is the call graph for this function:

◆ gen_attachments_cons()

list gen_attachments_cons ( attachments  p,
list  l 
)

Definition at line 207 of file word_attachment.c.

207  {
209 }
#define ATTACHMENTS_NEWGEN_DOMAIN

References ATTACHMENTS_NEWGEN_DOMAIN, and gen_typed_cons().

+ Here is the call graph for this function:

◆ gen_word_to_attachments_cons()

list gen_word_to_attachments_cons ( word_to_attachments  p,
list  l 
)

Definition at line 249 of file word_attachment.c.

249  {
251 }
#define WORD_TO_ATTACHMENTS_NEWGEN_DOMAIN

References gen_typed_cons(), and WORD_TO_ATTACHMENTS_NEWGEN_DOMAIN.

+ Here is the call graph for this function:

◆ make_attachee()

attachee make_attachee ( enum attachee_utype  tag,
void *  val 
)

Definition at line 80 of file word_attachment.c.

80  {
81  return (attachee) gen_alloc(3*sizeof(gen_chunk), GEN_CHECK_ALLOC, attachee_domain, tag, val);
82 }
#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 attachee_domain, gen_alloc(), and GEN_CHECK_ALLOC.

+ Here is the call graph for this function:

◆ make_attachee_call()

attachee make_attachee_call ( call  _field_)

Definition at line 89 of file word_attachment.c.

89  {
90  return make_attachee(is_attachee_call, (void*)(intptr_t) _field_);
91 }
attachee make_attachee(enum attachee_utype tag, void *val)

References intptr_t, is_attachee_call, and make_attachee().

+ Here is the call graph for this function:

◆ make_attachee_comment()

attachee make_attachee_comment ( void  )

Definition at line 143 of file word_attachment.c.

143  {
145 }
#define UU
Definition: newgen_types.h:98

References is_attachee_comment, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_complementary_sections()

attachee make_attachee_complementary_sections ( void  )

Definition at line 104 of file word_attachment.c.

104  {
106 }

References is_attachee_complementary_sections, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_complexities()

attachee make_attachee_complexities ( void  )

Definition at line 107 of file word_attachment.c.

107  {
109 }

References is_attachee_complexities, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_continuation_conditions()

attachee make_attachee_continuation_conditions ( void  )

Definition at line 110 of file word_attachment.c.

110  {
112 }

References is_attachee_continuation_conditions, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_cumulated_effects()

attachee make_attachee_cumulated_effects ( void  )

Definition at line 113 of file word_attachment.c.

113  {
115 }

References is_attachee_cumulated_effects, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_declaration()

attachee make_attachee_declaration ( entity  _field_)

Definition at line 92 of file word_attachment.c.

92  {
93  return make_attachee(is_attachee_declaration, (void*)(intptr_t) _field_);
94 }

References intptr_t, is_attachee_declaration, and make_attachee().

+ Here is the call graph for this function:

◆ make_attachee_decoration()

attachee make_attachee_decoration ( void  )

Definition at line 140 of file word_attachment.c.

140  {
142 }

References is_attachee_decoration, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_loop()

attachee make_attachee_loop ( loop  _field_)

Definition at line 98 of file word_attachment.c.

98  {
99  return make_attachee(is_attachee_loop, (void*)(intptr_t) _field_);
100 }

References intptr_t, is_attachee_loop, and make_attachee().

+ Here is the call graph for this function:

◆ make_attachee_module_head()

attachee make_attachee_module_head ( entity  _field_)

Definition at line 101 of file word_attachment.c.

101  {
102  return make_attachee(is_attachee_module_head, (void*)(intptr_t) _field_);
103 }

References intptr_t, is_attachee_module_head, and make_attachee().

+ Here is the call graph for this function:

◆ make_attachee_out_regions()

attachee make_attachee_out_regions ( void  )

Definition at line 116 of file word_attachment.c.

116  {
118 }

References is_attachee_out_regions, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_preconditions()

attachee make_attachee_preconditions ( void  )

Definition at line 119 of file word_attachment.c.

119  {
121 }

References is_attachee_preconditions, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_privatized_regions()

attachee make_attachee_privatized_regions ( void  )

Definition at line 122 of file word_attachment.c.

122  {
124 }

References is_attachee_privatized_regions, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_proper_effects()

attachee make_attachee_proper_effects ( void  )

Definition at line 125 of file word_attachment.c.

125  {
127 }

References is_attachee_proper_effects, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_proper_regions()

attachee make_attachee_proper_regions ( void  )

Definition at line 128 of file word_attachment.c.

128  {
130 }

References is_attachee_proper_regions, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_reference()

attachee make_attachee_reference ( reference  _field_)

Definition at line 86 of file word_attachment.c.

86  {
87  return make_attachee(is_attachee_reference, (void*)(intptr_t) _field_);
88 }

References intptr_t, is_attachee_reference, and make_attachee().

+ Here is the call graph for this function:

◆ make_attachee_regions()

attachee make_attachee_regions ( void  )

Definition at line 131 of file word_attachment.c.

131  {
133 }

References is_attachee_regions, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_statement_line_number()

attachee make_attachee_statement_line_number ( intptr_t  _field_)

Definition at line 83 of file word_attachment.c.

83  {
85 }

References intptr_t, is_attachee_statement_line_number, and make_attachee().

+ Here is the call graph for this function:

◆ make_attachee_static_control()

attachee make_attachee_static_control ( void  )

Definition at line 134 of file word_attachment.c.

134  {
136 }

References is_attachee_static_control, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_transformers()

attachee make_attachee_transformers ( void  )

Definition at line 137 of file word_attachment.c.

137  {
139 }

References is_attachee_transformers, make_attachee(), and UU.

+ Here is the call graph for this function:

◆ make_attachee_type()

attachee make_attachee_type ( string  _field_)

Definition at line 95 of file word_attachment.c.

95  {
96  return make_attachee(is_attachee_type, (void*)(intptr_t) _field_);
97 }

References intptr_t, is_attachee_type, and make_attachee().

+ Here is the call graph for this function:

◆ make_attachment()

attachment make_attachment ( attachee  a1,
intptr_t  a2,
intptr_t  a3 
)

Definition at line 185 of file word_attachment.c.

185  {
186  return (attachment) gen_alloc(4*sizeof(gen_chunk), GEN_CHECK_ALLOC, attachment_domain, a1, a2, a3);
187 }

References attachment_domain, gen_alloc(), and GEN_CHECK_ALLOC.

+ Here is the call graph for this function:

◆ make_attachments()

attachments make_attachments ( list  a)

Definition at line 227 of file word_attachment.c.

227  {
229 }

References attachments_domain, gen_alloc(), and GEN_CHECK_ALLOC.

+ Here is the call graph for this function:

◆ make_word_to_attachments()

word_to_attachments make_word_to_attachments ( void  )

Definition at line 269 of file word_attachment.c.

References gen_alloc(), GEN_CHECK_ALLOC, and word_to_attachments_domain.

+ Here is the call graph for this function:

◆ read_attachee()

attachee read_attachee ( FILE *  f)

Definition at line 51 of file word_attachment.c.

51  {
52  return (attachee) 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_attachment()

attachment read_attachment ( FILE *  f)

Definition at line 182 of file word_attachment.c.

182  {
183  return (attachment) gen_read(f);
184 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ read_attachments()

attachments read_attachments ( FILE *  f)

Definition at line 224 of file word_attachment.c.

224  {
225  return (attachments) gen_read(f);
226 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ read_word_to_attachments()

word_to_attachments read_word_to_attachments ( FILE *  f)

Definition at line 266 of file word_attachment.c.

266  {
267  return (word_to_attachments) gen_read(f);
268 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ update_word_to_attachments()

void update_word_to_attachments ( word_to_attachments  f,
void_star  k,
attachments  v 
)

Definition at line 275 of file word_attachment.c.

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

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

+ Here is the call graph for this function:

◆ word_to_attachments_assign_contents()

void word_to_attachments_assign_contents ( word_to_attachments  r,
word_to_attachments  v 
)

Definition at line 252 of file word_attachment.c.

252  {
255  message_assert("defined references to domain word_to_attachments",
257  memcpy(r, v, sizeof(struct _newgen_struct_word_to_attachments_));
258 }
word_to_attachments check_word_to_attachments(word_to_attachments p)
bool word_to_attachments_defined_p(word_to_attachments p)

References check_word_to_attachments(), message_assert, and word_to_attachments_defined_p().

+ Here is the call graph for this function:

◆ word_to_attachments_consistent_p()

bool word_to_attachments_consistent_p ( word_to_attachments  p)

Definition at line 242 of file word_attachment.c.

242  {
244  return gen_consistent_p((gen_chunk*) p);
245 }

References check_word_to_attachments(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ word_to_attachments_defined_p()

bool word_to_attachments_defined_p ( word_to_attachments  p)

Definition at line 246 of file word_attachment.c.

246  {
247  return gen_defined_p((gen_chunk*) p);
248 }

References gen_defined_p().

+ Here is the call graph for this function:

◆ word_to_attachments_non_recursive_free()

void word_to_attachments_non_recursive_free ( word_to_attachments  p)

Definition at line 259 of file word_attachment.c.

259  {
260  // should clear up contents...
261  free(p);
262 }

References free().

+ Here is the call graph for this function:

◆ write_attachee()

void write_attachee ( FILE *  f,
attachee  p 
)

Definition at line 48 of file word_attachment.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_attachment()

void write_attachment ( FILE *  f,
attachment  p 
)

Definition at line 179 of file word_attachment.c.

179  {
180  gen_write(f, (gen_chunk*) p);
181 }

References f(), and gen_write().

+ Here is the call graph for this function:

◆ write_attachments()

void write_attachments ( FILE *  f,
attachments  p 
)

Definition at line 221 of file word_attachment.c.

221  {
222  gen_write(f, (gen_chunk*) p);
223 }

References f(), and gen_write().

+ Here is the call graph for this function:

◆ write_word_to_attachments()

void write_word_to_attachments ( FILE *  f,
word_to_attachments  p 
)

Definition at line 263 of file word_attachment.c.

263  {
264  gen_write(f, (gen_chunk*) p);
265 }

References f(), and gen_write().

+ Here is the call graph for this function: