PIPS
c_parser_private.c
Go to the documentation of this file.
1 /*
2  * THIS FILE HAS BEEN AUTOMATICALLY GENERATED BY NEWGEN.
3  *
4  * PLEASE DO NOT MODIFY IT.
5  */
6 
7 
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 #include "genC.h"
12 #include "c_parser_private.h"
13 
14 /* C_PARSER_CONTEXT
15  */
18 }
20  gen_free((gen_chunk*) p);
21 }
24 }
27  return gen_consistent_p((gen_chunk*) p);
28 }
30  return gen_defined_p((gen_chunk*) p);
31 }
34 }
38  message_assert("defined references to domain c_parser_context",
40  memcpy(r, v, sizeof(struct _newgen_struct_c_parser_context_));
41 }
43  // should clear up contents...
44  free(p);
45 }
47  gen_write(f, (gen_chunk*) p);
48 }
50  return (c_parser_context) gen_read(f);
51 }
52 c_parser_context make_c_parser_context(string a1, type a2, storage a3, list a4, bool a5, bool a6) {
53  return (c_parser_context) gen_alloc(7*sizeof(gen_chunk), GEN_CHECK_ALLOC, c_parser_context_domain, a1, a2, a3, a4, a5, a6);
54 }
55 
c_parser_context read_c_parser_context(FILE *f)
void write_c_parser_context(FILE *f, c_parser_context p)
c_parser_context check_c_parser_context(c_parser_context p)
bool c_parser_context_consistent_p(c_parser_context p)
c_parser_context make_c_parser_context(string a1, type a2, storage a3, list a4, bool a5, bool a6)
list gen_c_parser_context_cons(c_parser_context p, list l)
void c_parser_context_non_recursive_free(c_parser_context p)
c_parser_context copy_c_parser_context(c_parser_context p)
C_PARSER_CONTEXT.
void free_c_parser_context(c_parser_context p)
void c_parser_context_assign_contents(c_parser_context r, c_parser_context v)
bool c_parser_context_defined_p(c_parser_context p)
#define C_PARSER_CONTEXT_NEWGEN_DOMAIN
#define c_parser_context_domain
newgen_qualifier_domain_defined
#define GEN_CHECK_ALLOC
Definition: genC.h:307
void gen_free(gen_chunk *obj)
version without shared_pointers.
Definition: genClib.c:992
gen_chunk * gen_alloc(int size, int gen_check_p, int dom,...)
allocates something in newgen.
Definition: genClib.c:298
int gen_consistent_p(gen_chunk *obj)
GEN_CONSISTENT_P dynamically checks the type correctness of OBJ.
Definition: genClib.c:2398
int gen_defined_p(gen_chunk *obj)
Definition: genClib.c:2438
gen_chunk * gen_check(gen_chunk *obj, int t)
GEN_CHECK checks that the gen_chunk received OBJ is of the appropriate TYPE.
Definition: genClib.c:2356
gen_chunk * gen_read(FILE *file)
GEN_READ reads any object from the FILE stream.
Definition: genClib.c:2323
gen_chunk * gen_copy_tree(gen_chunk *obj)
Definition: genClib.c:1429
void gen_write(FILE *fd, gen_chunk *obj)
GEN_WRITE writes the OBJect on the stream FD.
Definition: genClib.c:1745
void free(void *)
list gen_typed_cons(_int type, const void *item, const list next)
CONS a list with minimal type checking this cannot be done within the CONS macro because possible fun...
Definition: list.c:900
#define message_assert(msg, ex)
Definition: newgen_assert.h:47
int f(int off1, int off2, int n, float r[n], float a[n], float b[n])
Definition: offsets.c:15
The structure used to build lists in NewGen.
Definition: newgen_list.h:41
A gen_chunk is used to store every object.
Definition: genC.h:58