PIPS
|
Go to the source code of this file.
Data Structures | |
struct | _newgen_struct_makefile_ |
struct | _newgen_struct_owner_ |
struct | _newgen_struct_real_resource_ |
struct | _newgen_struct_rule_ |
struct | _newgen_struct_virtual_resource_ |
Typedefs | |
typedef struct _newgen_struct_makefile_ * | makefile |
typedef struct _newgen_struct_owner_ * | owner |
typedef struct _newgen_struct_real_resource_ * | real_resource |
typedef struct _newgen_struct_rule_ * | rule |
typedef struct _newgen_struct_virtual_resource_ * | virtual_resource |
Enumerations | |
enum | owner_utype { is_owner_program , is_owner_module , is_owner_main , is_owner_callees , is_owner_callers , is_owner_all , is_owner_select , is_owner_compilation_unit } |
#define _gen_makefile_start 15 |
Definition at line 3 of file makefile.h.
#define _newgen_makefile_domain_defined_ |
Definition at line 12 of file makefile.h.
#define _newgen_owner_domain_defined_ |
Definition at line 20 of file makefile.h.
#define _newgen_real_resource_domain_defined_ |
Definition at line 28 of file makefile.h.
#define _newgen_rule_domain_defined_ |
Definition at line 36 of file makefile.h.
#define _newgen_virtual_resource_domain_defined_ |
Definition at line 44 of file makefile.h.
#define gen_MAKEFILE_cons gen_makefile_cons |
Definition at line 66 of file makefile.h.
#define gen_OWNER_cons gen_owner_cons |
Definition at line 102 of file makefile.h.
#define gen_REAL_RESOURCE_cons gen_real_resource_cons |
Definition at line 187 of file makefile.h.
#define gen_RULE_cons gen_rule_cons |
Definition at line 223 of file makefile.h.
#define gen_VIRTUAL_RESOURCE_cons gen_virtual_resource_cons |
Definition at line 274 of file makefile.h.
Definition at line 55 of file makefile.h.
Definition at line 84 of file makefile.h.
#define makefile_active_phases_ | ( | x | ) | makefile_active_phases(x) /**old hack compatible */ |
Definition at line 83 of file makefile.h.
Definition at line 53 of file makefile.h.
Definition at line 54 of file makefile.h.
#define makefile_domain (_gen_makefile_start+0) |
Definition at line 10 of file makefile.h.
Definition at line 80 of file makefile.h.
#define MAKEFILE_NEWGEN_DOMAIN (makefile_domain) |
Definition at line 13 of file makefile.h.
#define makefile_NEWGEN_DOMAIN (makefile_domain) |
Definition at line 14 of file makefile.h.
Definition at line 82 of file makefile.h.
#define makefile_rules_ | ( | x | ) | makefile_rules(x) /**old hack compatible */ |
Definition at line 81 of file makefile.h.
#define makefile_spec "\--NEWGEN-START 15\n\makefile = rules:rule* x active_phases:string*;\n\owner = program:unit + module:unit + main:unit + callees:unit + callers:unit + all:unit + select:unit + compilation_unit:unit;\n\real_resource = resource_name:string x owner_name:string;\n\rule = phase:string x required:virtual_resource* x produced:virtual_resource* x preserved:virtual_resource* x modified:virtual_resource* x pre_transformation:virtual_resource* x post_transformation:virtual_resource*;\n\virtual_resource = name:string x owner:owner;\n\" |
Definition at line 294 of file makefile.h.
#define MAKEFILE_TYPE makefile |
Definition at line 56 of file makefile.h.
#define makefile_TYPE makefile |
Definition at line 57 of file makefile.h.
#define makefile_undefined ((makefile)gen_chunk_undefined) |
Definition at line 58 of file makefile.h.
#define makefile_undefined_p | ( | x | ) | ((x)==makefile_undefined) |
Definition at line 59 of file makefile.h.
OWNER.
Definition at line 88 of file makefile.h.
Definition at line 91 of file makefile.h.
Definition at line 163 of file makefile.h.
Definition at line 162 of file makefile.h.
#define owner_all_p | ( | x | ) | (owner_tag(x)==is_owner_all) |
Definition at line 161 of file makefile.h.
Definition at line 157 of file makefile.h.
#define owner_callees_ | ( | x | ) | owner_callees(x) /**old hack compatible */ |
Definition at line 156 of file makefile.h.
#define owner_callees_p | ( | x | ) | (owner_tag(x)==is_owner_callees) |
Definition at line 155 of file makefile.h.
Definition at line 160 of file makefile.h.
#define owner_callers_ | ( | x | ) | owner_callers(x) /**old hack compatible */ |
Definition at line 159 of file makefile.h.
#define owner_callers_p | ( | x | ) | (owner_tag(x)==is_owner_callers) |
Definition at line 158 of file makefile.h.
Definition at line 89 of file makefile.h.
Definition at line 90 of file makefile.h.
Definition at line 169 of file makefile.h.
#define owner_compilation_unit_ | ( | x | ) | owner_compilation_unit(x) /**old hack compatible */ |
Definition at line 168 of file makefile.h.
#define owner_compilation_unit_p | ( | x | ) | (owner_tag(x)==is_owner_compilation_unit) |
Definition at line 167 of file makefile.h.
#define owner_domain (_gen_makefile_start+1) |
newgen_makefile_domain_defined
Definition at line 18 of file makefile.h.
Definition at line 144 of file makefile.h.
Definition at line 154 of file makefile.h.
#define owner_main_ | ( | x | ) | owner_main(x) /**old hack compatible */ |
Definition at line 153 of file makefile.h.
#define owner_main_p | ( | x | ) | (owner_tag(x)==is_owner_main) |
Definition at line 152 of file makefile.h.
Definition at line 151 of file makefile.h.
#define owner_module_ | ( | x | ) | owner_module(x) /**old hack compatible */ |
Definition at line 150 of file makefile.h.
#define owner_module_p | ( | x | ) | (owner_tag(x)==is_owner_module) |
Definition at line 149 of file makefile.h.
#define OWNER_NEWGEN_DOMAIN (owner_domain) |
Definition at line 21 of file makefile.h.
#define owner_NEWGEN_DOMAIN (owner_domain) |
Definition at line 22 of file makefile.h.
Definition at line 148 of file makefile.h.
#define owner_program_ | ( | x | ) | owner_program(x) /**old hack compatible */ |
Definition at line 147 of file makefile.h.
#define owner_program_p | ( | x | ) | (owner_tag(x)==is_owner_program) |
Definition at line 146 of file makefile.h.
Definition at line 166 of file makefile.h.
#define owner_select_ | ( | x | ) | owner_select(x) /**old hack compatible */ |
Definition at line 165 of file makefile.h.
#define owner_select_p | ( | x | ) | (owner_tag(x)==is_owner_select) |
Definition at line 164 of file makefile.h.
Definition at line 145 of file makefile.h.
#define OWNER_TYPE owner |
Definition at line 92 of file makefile.h.
#define owner_TYPE owner |
Definition at line 93 of file makefile.h.
#define owner_undefined ((owner)gen_chunk_undefined) |
Definition at line 94 of file makefile.h.
#define owner_undefined_p | ( | x | ) | ((x)==owner_undefined) |
Definition at line 95 of file makefile.h.
#define REAL_RESOURCE | ( | x | ) | ((real_resource)((x).p)) |
REAL_RESOURCE.
Definition at line 173 of file makefile.h.
Definition at line 176 of file makefile.h.
#define real_resource_CAST | ( | x | ) | REAL_RESOURCE(x) |
Definition at line 174 of file makefile.h.
#define REAL_RESOURCE_CAST | ( | x | ) | REAL_RESOURCE(x) |
Definition at line 175 of file makefile.h.
#define real_resource_domain (_gen_makefile_start+2) |
newgen_owner_domain_defined
Definition at line 26 of file makefile.h.
Definition at line 201 of file makefile.h.
#define REAL_RESOURCE_NEWGEN_DOMAIN (real_resource_domain) |
Definition at line 29 of file makefile.h.
#define real_resource_NEWGEN_DOMAIN (real_resource_domain) |
Definition at line 30 of file makefile.h.
Definition at line 205 of file makefile.h.
#define real_resource_owner_name_ | ( | x | ) | real_resource_owner_name(x) /**old hack compatible */ |
Definition at line 204 of file makefile.h.
Definition at line 203 of file makefile.h.
#define real_resource_resource_name_ | ( | x | ) | real_resource_resource_name(x) /**old hack compatible */ |
Definition at line 202 of file makefile.h.
#define REAL_RESOURCE_TYPE real_resource |
Definition at line 177 of file makefile.h.
#define real_resource_TYPE real_resource |
Definition at line 178 of file makefile.h.
#define real_resource_undefined ((real_resource)gen_chunk_undefined) |
Definition at line 179 of file makefile.h.
#define real_resource_undefined_p | ( | x | ) | ((x)==real_resource_undefined) |
Definition at line 180 of file makefile.h.
RULE.
Definition at line 209 of file makefile.h.
Definition at line 212 of file makefile.h.
Definition at line 210 of file makefile.h.
Definition at line 211 of file makefile.h.
#define rule_domain (_gen_makefile_start+3) |
newgen_real_resource_domain_defined
Definition at line 34 of file makefile.h.
Definition at line 242 of file makefile.h.
Definition at line 252 of file makefile.h.
#define rule_modified_ | ( | x | ) | rule_modified(x) /**old hack compatible */ |
Definition at line 251 of file makefile.h.
#define RULE_NEWGEN_DOMAIN (rule_domain) |
Definition at line 37 of file makefile.h.
#define rule_NEWGEN_DOMAIN (rule_domain) |
Definition at line 38 of file makefile.h.
Definition at line 244 of file makefile.h.
#define rule_phase_ | ( | x | ) | rule_phase(x) /**old hack compatible */ |
Definition at line 243 of file makefile.h.
Definition at line 256 of file makefile.h.
#define rule_post_transformation_ | ( | x | ) | rule_post_transformation(x) /**old hack compatible */ |
Definition at line 255 of file makefile.h.
Definition at line 254 of file makefile.h.
#define rule_pre_transformation_ | ( | x | ) | rule_pre_transformation(x) /**old hack compatible */ |
Definition at line 253 of file makefile.h.
Definition at line 250 of file makefile.h.
#define rule_preserved_ | ( | x | ) | rule_preserved(x) /**old hack compatible */ |
Definition at line 249 of file makefile.h.
Definition at line 248 of file makefile.h.
#define rule_produced_ | ( | x | ) | rule_produced(x) /**old hack compatible */ |
Definition at line 247 of file makefile.h.
Definition at line 246 of file makefile.h.
#define rule_required_ | ( | x | ) | rule_required(x) /**old hack compatible */ |
Definition at line 245 of file makefile.h.
#define RULE_TYPE rule |
Definition at line 213 of file makefile.h.
#define rule_TYPE rule |
Definition at line 214 of file makefile.h.
#define rule_undefined ((rule)gen_chunk_undefined) |
Definition at line 215 of file makefile.h.
#define rule_undefined_p | ( | x | ) | ((x)==rule_undefined) |
Definition at line 216 of file makefile.h.
#define VIRTUAL_RESOURCE | ( | x | ) | ((virtual_resource)((x).p)) |
VIRTUAL_RESOURCE.
Definition at line 260 of file makefile.h.
Definition at line 263 of file makefile.h.
#define virtual_resource_CAST | ( | x | ) | VIRTUAL_RESOURCE(x) |
Definition at line 261 of file makefile.h.
#define VIRTUAL_RESOURCE_CAST | ( | x | ) | VIRTUAL_RESOURCE(x) |
Definition at line 262 of file makefile.h.
#define virtual_resource_domain (_gen_makefile_start+4) |
newgen_rule_domain_defined
Definition at line 42 of file makefile.h.
Definition at line 288 of file makefile.h.
Definition at line 290 of file makefile.h.
#define virtual_resource_name_ | ( | x | ) | virtual_resource_name(x) /**old hack compatible */ |
Definition at line 289 of file makefile.h.
#define VIRTUAL_RESOURCE_NEWGEN_DOMAIN (virtual_resource_domain) |
Definition at line 45 of file makefile.h.
#define virtual_resource_NEWGEN_DOMAIN (virtual_resource_domain) |
Definition at line 46 of file makefile.h.
Definition at line 292 of file makefile.h.
#define virtual_resource_owner_ | ( | x | ) | virtual_resource_owner(x) /**old hack compatible */ |
Definition at line 291 of file makefile.h.
#define VIRTUAL_RESOURCE_TYPE virtual_resource |
Definition at line 264 of file makefile.h.
#define virtual_resource_TYPE virtual_resource |
Definition at line 265 of file makefile.h.
#define virtual_resource_undefined ((virtual_resource)gen_chunk_undefined) |
Definition at line 266 of file makefile.h.
#define virtual_resource_undefined_p | ( | x | ) | ((x)==virtual_resource_undefined) |
Definition at line 267 of file makefile.h.
typedef struct _newgen_struct_makefile_* makefile |
Definition at line 15 of file makefile.h.
typedef struct _newgen_struct_owner_* owner |
Definition at line 23 of file makefile.h.
typedef struct _newgen_struct_real_resource_* real_resource |
Definition at line 31 of file makefile.h.
typedef struct _newgen_struct_rule_* rule |
Definition at line 39 of file makefile.h.
typedef struct _newgen_struct_virtual_resource_* virtual_resource |
Definition at line 47 of file makefile.h.
enum owner_utype |
Enumerator | |
---|---|
is_owner_program | |
is_owner_module | |
is_owner_main | |
is_owner_callees | |
is_owner_callers | |
is_owner_all | |
is_owner_select | |
is_owner_compilation_unit |
Definition at line 108 of file makefile.h.
Definition at line 22 of file makefile.c.
References gen_check(), and makefile_domain.
Referenced by makefile_assign_contents(), and makefile_consistent_p().
Definition at line 64 of file makefile.c.
References gen_check(), and owner_domain.
Referenced by owner_assign_contents(), and owner_consistent_p().
real_resource check_real_resource | ( | real_resource | p | ) |
Definition at line 143 of file makefile.c.
References gen_check(), and real_resource_domain.
Referenced by real_resource_assign_contents(), and real_resource_consistent_p().
Definition at line 185 of file makefile.c.
References gen_check(), and rule_domain.
Referenced by rule_assign_contents(), and rule_consistent_p().
virtual_resource check_virtual_resource | ( | virtual_resource | p | ) |
Definition at line 227 of file makefile.c.
References gen_check(), and virtual_resource_domain.
Referenced by virtual_resource_assign_contents(), and virtual_resource_consistent_p().
MAKEFILE.
Definition at line 16 of file makefile.c.
References gen_copy_tree().
OWNER.
Definition at line 58 of file makefile.c.
References gen_copy_tree().
real_resource copy_real_resource | ( | real_resource | p | ) |
REAL_RESOURCE.
Definition at line 137 of file makefile.c.
References gen_copy_tree().
RULE.
Definition at line 179 of file makefile.c.
References gen_copy_tree().
virtual_resource copy_virtual_resource | ( | virtual_resource | p | ) |
VIRTUAL_RESOURCE.
Definition at line 221 of file makefile.c.
References gen_copy_tree().
void free_makefile | ( | makefile | p | ) |
Definition at line 19 of file makefile.c.
References gen_free().
Referenced by close_makefile(), and open_makefile().
void free_owner | ( | owner | p | ) |
Definition at line 61 of file makefile.c.
References gen_free().
void free_real_resource | ( | real_resource | p | ) |
Definition at line 140 of file makefile.c.
References gen_free().
void free_rule | ( | rule | p | ) |
Definition at line 182 of file makefile.c.
References gen_free().
void free_virtual_resource | ( | virtual_resource | p | ) |
Definition at line 224 of file makefile.c.
References gen_free().
Definition at line 32 of file makefile.c.
References gen_typed_cons(), and MAKEFILE_NEWGEN_DOMAIN.
Definition at line 74 of file makefile.c.
References gen_typed_cons(), and OWNER_NEWGEN_DOMAIN.
list gen_real_resource_cons | ( | real_resource | p, |
list | l | ||
) |
Definition at line 153 of file makefile.c.
References gen_typed_cons(), and REAL_RESOURCE_NEWGEN_DOMAIN.
Definition at line 195 of file makefile.c.
References gen_typed_cons(), and RULE_NEWGEN_DOMAIN.
list gen_virtual_resource_cons | ( | virtual_resource | p, |
list | l | ||
) |
Definition at line 237 of file makefile.c.
References gen_typed_cons(), and VIRTUAL_RESOURCE_NEWGEN_DOMAIN.
Definition at line 52 of file makefile.c.
References gen_alloc(), GEN_CHECK_ALLOC, and makefile_domain.
owner make_owner | ( | enum | owner_utype, |
void * | val | ||
) |
Definition at line 107 of file makefile.c.
References gen_alloc(), GEN_CHECK_ALLOC, and owner_domain.
Referenced by make_owner_all(), make_owner_callees(), make_owner_callers(), make_owner_compilation_unit(), make_owner_main(), make_owner_module(), make_owner_program(), and make_owner_select().
owner make_owner_all | ( | void | ) |
Definition at line 125 of file makefile.c.
References is_owner_all, make_owner(), and UU.
owner make_owner_callees | ( | void | ) |
Definition at line 119 of file makefile.c.
References is_owner_callees, make_owner(), and UU.
owner make_owner_callers | ( | void | ) |
Definition at line 122 of file makefile.c.
References is_owner_callers, make_owner(), and UU.
owner make_owner_compilation_unit | ( | void | ) |
Definition at line 131 of file makefile.c.
References is_owner_compilation_unit, make_owner(), and UU.
owner make_owner_main | ( | void | ) |
Definition at line 116 of file makefile.c.
References is_owner_main, make_owner(), and UU.
owner make_owner_module | ( | void | ) |
Definition at line 113 of file makefile.c.
References is_owner_module, make_owner(), and UU.
owner make_owner_program | ( | void | ) |
Definition at line 110 of file makefile.c.
References is_owner_program, make_owner(), and UU.
owner make_owner_select | ( | void | ) |
Definition at line 128 of file makefile.c.
References is_owner_select, make_owner(), and UU.
real_resource make_real_resource | ( | string | a1, |
string | a2 | ||
) |
Definition at line 173 of file makefile.c.
References gen_alloc(), GEN_CHECK_ALLOC, and real_resource_domain.
Definition at line 215 of file makefile.c.
References gen_alloc(), GEN_CHECK_ALLOC, and rule_domain.
virtual_resource make_virtual_resource | ( | string | a1, |
owner | a2 | ||
) |
Definition at line 257 of file makefile.c.
References gen_alloc(), GEN_CHECK_ALLOC, and virtual_resource_domain.
Definition at line 35 of file makefile.c.
References check_makefile(), makefile_defined_p(), and message_assert.
Definition at line 25 of file makefile.c.
References check_makefile(), and gen_consistent_p().
Definition at line 29 of file makefile.c.
References gen_defined_p().
Referenced by makefile_assign_contents().
void makefile_non_recursive_free | ( | makefile | p | ) |
Definition at line 42 of file makefile.c.
References free().
Definition at line 77 of file makefile.c.
References check_owner(), message_assert, and owner_defined_p().
Definition at line 67 of file makefile.c.
References check_owner(), and gen_consistent_p().
Definition at line 71 of file makefile.c.
References gen_defined_p().
Referenced by owner_assign_contents().
void owner_non_recursive_free | ( | owner | p | ) |
Definition at line 84 of file makefile.c.
References free().
string owner_tag_as_string | ( | enum | owner_utype | ) |
Definition at line 94 of file makefile.c.
References is_owner_all, is_owner_callees, is_owner_callers, is_owner_compilation_unit, is_owner_main, is_owner_module, is_owner_program, is_owner_select, and string_undefined.
makefile read_makefile | ( | FILE * | f | ) |
Definition at line 49 of file makefile.c.
References f(), and gen_read().
Referenced by open_makefile().
owner read_owner | ( | FILE * | f | ) |
Definition at line 91 of file makefile.c.
References f(), and gen_read().
real_resource read_real_resource | ( | FILE * | f | ) |
Definition at line 170 of file makefile.c.
References f(), and gen_read().
rule read_rule | ( | FILE * | f | ) |
Definition at line 212 of file makefile.c.
References f(), and gen_read().
virtual_resource read_virtual_resource | ( | FILE * | f | ) |
Definition at line 254 of file makefile.c.
References f(), and gen_read().
void real_resource_assign_contents | ( | real_resource | r, |
real_resource | v | ||
) |
Definition at line 156 of file makefile.c.
References check_real_resource(), message_assert, and real_resource_defined_p().
bool real_resource_consistent_p | ( | real_resource | p | ) |
Definition at line 146 of file makefile.c.
References check_real_resource(), and gen_consistent_p().
bool real_resource_defined_p | ( | real_resource | p | ) |
Definition at line 150 of file makefile.c.
References gen_defined_p().
Referenced by real_resource_assign_contents().
void real_resource_non_recursive_free | ( | real_resource | p | ) |
Definition at line 163 of file makefile.c.
References free().
Definition at line 198 of file makefile.c.
References check_rule(), message_assert, and rule_defined_p().
Definition at line 188 of file makefile.c.
References check_rule(), and gen_consistent_p().
Definition at line 192 of file makefile.c.
References gen_defined_p().
Referenced by rule_assign_contents().
void rule_non_recursive_free | ( | rule | p | ) |
Definition at line 205 of file makefile.c.
References free().
void virtual_resource_assign_contents | ( | virtual_resource | r, |
virtual_resource | v | ||
) |
Definition at line 240 of file makefile.c.
References check_virtual_resource(), message_assert, and virtual_resource_defined_p().
bool virtual_resource_consistent_p | ( | virtual_resource | p | ) |
Definition at line 230 of file makefile.c.
References check_virtual_resource(), and gen_consistent_p().
bool virtual_resource_defined_p | ( | virtual_resource | p | ) |
Definition at line 234 of file makefile.c.
References gen_defined_p().
Referenced by virtual_resource_assign_contents().
void virtual_resource_non_recursive_free | ( | virtual_resource | p | ) |
Definition at line 247 of file makefile.c.
References free().
void write_makefile | ( | FILE * | f, |
makefile | p | ||
) |
Definition at line 46 of file makefile.c.
References f(), and gen_write().
Referenced by save_makefile().
void write_owner | ( | FILE * | f, |
owner | p | ||
) |
Definition at line 88 of file makefile.c.
References f(), and gen_write().
void write_real_resource | ( | FILE * | f, |
real_resource | p | ||
) |
Definition at line 167 of file makefile.c.
References f(), and gen_write().
void write_rule | ( | FILE * | f, |
rule | p | ||
) |
Definition at line 209 of file makefile.c.
References f(), and gen_write().
void write_virtual_resource | ( | FILE * | f, |
virtual_resource | p | ||
) |
Definition at line 251 of file makefile.c.
References f(), and gen_write().