PIPS
makefile.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_makefile_
 
struct  _newgen_struct_owner_
 
struct  _newgen_struct_real_resource_
 
struct  _newgen_struct_rule_
 
struct  _newgen_struct_virtual_resource_
 

Macros

#define _gen_makefile_start   15
 
#define makefile_domain   (_gen_makefile_start+0)
 
#define _newgen_makefile_domain_defined_
 
#define MAKEFILE_NEWGEN_DOMAIN   (makefile_domain)
 
#define makefile_NEWGEN_DOMAIN   (makefile_domain)
 
#define owner_domain   (_gen_makefile_start+1)
 newgen_makefile_domain_defined More...
 
#define _newgen_owner_domain_defined_
 
#define OWNER_NEWGEN_DOMAIN   (owner_domain)
 
#define owner_NEWGEN_DOMAIN   (owner_domain)
 
#define real_resource_domain   (_gen_makefile_start+2)
 newgen_owner_domain_defined More...
 
#define _newgen_real_resource_domain_defined_
 
#define REAL_RESOURCE_NEWGEN_DOMAIN   (real_resource_domain)
 
#define real_resource_NEWGEN_DOMAIN   (real_resource_domain)
 
#define rule_domain   (_gen_makefile_start+3)
 newgen_real_resource_domain_defined More...
 
#define _newgen_rule_domain_defined_
 
#define RULE_NEWGEN_DOMAIN   (rule_domain)
 
#define rule_NEWGEN_DOMAIN   (rule_domain)
 
#define virtual_resource_domain   (_gen_makefile_start+4)
 newgen_rule_domain_defined More...
 
#define _newgen_virtual_resource_domain_defined_
 
#define VIRTUAL_RESOURCE_NEWGEN_DOMAIN   (virtual_resource_domain)
 
#define virtual_resource_NEWGEN_DOMAIN   (virtual_resource_domain)
 
#define MAKEFILE(x)   ((makefile)((x).p))
 newgen_virtual_resource_domain_defined More...
 
#define makefile_CAST(x)   MAKEFILE(x)
 
#define MAKEFILE_CAST(x)   MAKEFILE(x)
 
#define MAKEFILE_(x)   ((x).e)
 
#define MAKEFILE_TYPE   makefile
 
#define makefile_TYPE   makefile
 
#define makefile_undefined   ((makefile)gen_chunk_undefined)
 
#define makefile_undefined_p(x)   ((x)==makefile_undefined)
 
#define gen_MAKEFILE_cons   gen_makefile_cons
 
#define makefile_domain_number(x)   ((x)->_type_)
 
#define makefile_rules_(x)   makefile_rules(x) /**old hack compatible */
 
#define makefile_rules(x)   ((x)->_makefile_rules_)
 
#define makefile_active_phases_(x)   makefile_active_phases(x) /**old hack compatible */
 
#define makefile_active_phases(x)   ((x)->_makefile_active_phases_)
 
#define OWNER(x)   ((owner)((x).p))
 OWNER. More...
 
#define owner_CAST(x)   OWNER(x)
 
#define OWNER_CAST(x)   OWNER(x)
 
#define OWNER_(x)   ((x).e)
 
#define OWNER_TYPE   owner
 
#define owner_TYPE   owner
 
#define owner_undefined   ((owner)gen_chunk_undefined)
 
#define owner_undefined_p(x)   ((x)==owner_undefined)
 
#define gen_OWNER_cons   gen_owner_cons
 
#define owner_domain_number(x)   ((x)->_type_)
 
#define owner_tag(x)   ((x)->_owner_tag__)
 
#define owner_program_p(x)   (owner_tag(x)==is_owner_program)
 
#define owner_program_(x)   owner_program(x) /**old hack compatible */
 
#define owner_program(x)   ((x)->_owner_union_._owner_program_.u)
 
#define owner_module_p(x)   (owner_tag(x)==is_owner_module)
 
#define owner_module_(x)   owner_module(x) /**old hack compatible */
 
#define owner_module(x)   ((x)->_owner_union_._owner_module_.u)
 
#define owner_main_p(x)   (owner_tag(x)==is_owner_main)
 
#define owner_main_(x)   owner_main(x) /**old hack compatible */
 
#define owner_main(x)   ((x)->_owner_union_._owner_main_.u)
 
#define owner_callees_p(x)   (owner_tag(x)==is_owner_callees)
 
#define owner_callees_(x)   owner_callees(x) /**old hack compatible */
 
#define owner_callees(x)   ((x)->_owner_union_._owner_callees_.u)
 
#define owner_callers_p(x)   (owner_tag(x)==is_owner_callers)
 
#define owner_callers_(x)   owner_callers(x) /**old hack compatible */
 
#define owner_callers(x)   ((x)->_owner_union_._owner_callers_.u)
 
#define owner_all_p(x)   (owner_tag(x)==is_owner_all)
 
#define owner_all_(x)   owner_all(x) /**old hack compatible */
 
#define owner_all(x)   ((x)->_owner_union_._owner_all_.u)
 
#define owner_select_p(x)   (owner_tag(x)==is_owner_select)
 
#define owner_select_(x)   owner_select(x) /**old hack compatible */
 
#define owner_select(x)   ((x)->_owner_union_._owner_select_.u)
 
#define owner_compilation_unit_p(x)   (owner_tag(x)==is_owner_compilation_unit)
 
#define owner_compilation_unit_(x)   owner_compilation_unit(x) /**old hack compatible */
 
#define owner_compilation_unit(x)   ((x)->_owner_union_._owner_compilation_unit_.u)
 
#define REAL_RESOURCE(x)   ((real_resource)((x).p))
 REAL_RESOURCE. More...
 
#define real_resource_CAST(x)   REAL_RESOURCE(x)
 
#define REAL_RESOURCE_CAST(x)   REAL_RESOURCE(x)
 
#define REAL_RESOURCE_(x)   ((x).e)
 
#define REAL_RESOURCE_TYPE   real_resource
 
#define real_resource_TYPE   real_resource
 
#define real_resource_undefined   ((real_resource)gen_chunk_undefined)
 
#define real_resource_undefined_p(x)   ((x)==real_resource_undefined)
 
#define gen_REAL_RESOURCE_cons   gen_real_resource_cons
 
#define real_resource_domain_number(x)   ((x)->_type_)
 
#define real_resource_resource_name_(x)   real_resource_resource_name(x) /**old hack compatible */
 
#define real_resource_resource_name(x)   ((x)->_real_resource_resource_name_)
 
#define real_resource_owner_name_(x)   real_resource_owner_name(x) /**old hack compatible */
 
#define real_resource_owner_name(x)   ((x)->_real_resource_owner_name_)
 
#define RULE(x)   ((rule)((x).p))
 RULE. More...
 
#define rule_CAST(x)   RULE(x)
 
#define RULE_CAST(x)   RULE(x)
 
#define RULE_(x)   ((x).e)
 
#define RULE_TYPE   rule
 
#define rule_TYPE   rule
 
#define rule_undefined   ((rule)gen_chunk_undefined)
 
#define rule_undefined_p(x)   ((x)==rule_undefined)
 
#define gen_RULE_cons   gen_rule_cons
 
#define rule_domain_number(x)   ((x)->_type_)
 
#define rule_phase_(x)   rule_phase(x) /**old hack compatible */
 
#define rule_phase(x)   ((x)->_rule_phase_)
 
#define rule_required_(x)   rule_required(x) /**old hack compatible */
 
#define rule_required(x)   ((x)->_rule_required_)
 
#define rule_produced_(x)   rule_produced(x) /**old hack compatible */
 
#define rule_produced(x)   ((x)->_rule_produced_)
 
#define rule_preserved_(x)   rule_preserved(x) /**old hack compatible */
 
#define rule_preserved(x)   ((x)->_rule_preserved_)
 
#define rule_modified_(x)   rule_modified(x) /**old hack compatible */
 
#define rule_modified(x)   ((x)->_rule_modified_)
 
#define rule_pre_transformation_(x)   rule_pre_transformation(x) /**old hack compatible */
 
#define rule_pre_transformation(x)   ((x)->_rule_pre_transformation_)
 
#define rule_post_transformation_(x)   rule_post_transformation(x) /**old hack compatible */
 
#define rule_post_transformation(x)   ((x)->_rule_post_transformation_)
 
#define VIRTUAL_RESOURCE(x)   ((virtual_resource)((x).p))
 VIRTUAL_RESOURCE. More...
 
#define virtual_resource_CAST(x)   VIRTUAL_RESOURCE(x)
 
#define VIRTUAL_RESOURCE_CAST(x)   VIRTUAL_RESOURCE(x)
 
#define VIRTUAL_RESOURCE_(x)   ((x).e)
 
#define VIRTUAL_RESOURCE_TYPE   virtual_resource
 
#define virtual_resource_TYPE   virtual_resource
 
#define virtual_resource_undefined   ((virtual_resource)gen_chunk_undefined)
 
#define virtual_resource_undefined_p(x)   ((x)==virtual_resource_undefined)
 
#define gen_VIRTUAL_RESOURCE_cons   gen_virtual_resource_cons
 
#define virtual_resource_domain_number(x)   ((x)->_type_)
 
#define virtual_resource_name_(x)   virtual_resource_name(x) /**old hack compatible */
 
#define virtual_resource_name(x)   ((x)->_virtual_resource_name_)
 
#define virtual_resource_owner_(x)   virtual_resource_owner(x) /**old hack compatible */
 
#define virtual_resource_owner(x)   ((x)->_virtual_resource_owner_)
 
#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\"
 

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
}
 

Functions

makefile copy_makefile (makefile)
 MAKEFILE. More...
 
void free_makefile (makefile)
 
makefile check_makefile (makefile)
 
bool makefile_consistent_p (makefile)
 
bool makefile_defined_p (makefile)
 
list gen_makefile_cons (makefile, list)
 
void makefile_assign_contents (makefile, makefile)
 
void makefile_non_recursive_free (makefile)
 
void write_makefile (FILE *, makefile)
 
makefile read_makefile (FILE *)
 
makefile make_makefile (list, list)
 
owner copy_owner (owner)
 OWNER. More...
 
void free_owner (owner)
 
owner check_owner (owner)
 
bool owner_consistent_p (owner)
 
bool owner_defined_p (owner)
 
list gen_owner_cons (owner, list)
 
void owner_assign_contents (owner, owner)
 
void owner_non_recursive_free (owner)
 
void write_owner (FILE *, owner)
 
owner read_owner (FILE *)
 
string owner_tag_as_string (enum owner_utype)
 
owner make_owner (enum owner_utype, void *)
 
owner make_owner_program (void)
 
owner make_owner_module (void)
 
owner make_owner_main (void)
 
owner make_owner_callees (void)
 
owner make_owner_callers (void)
 
owner make_owner_all (void)
 
owner make_owner_select (void)
 
owner make_owner_compilation_unit (void)
 
real_resource copy_real_resource (real_resource)
 REAL_RESOURCE. More...
 
void free_real_resource (real_resource)
 
real_resource check_real_resource (real_resource)
 
bool real_resource_consistent_p (real_resource)
 
bool real_resource_defined_p (real_resource)
 
list gen_real_resource_cons (real_resource, list)
 
void real_resource_assign_contents (real_resource, real_resource)
 
void real_resource_non_recursive_free (real_resource)
 
void write_real_resource (FILE *, real_resource)
 
real_resource read_real_resource (FILE *)
 
real_resource make_real_resource (string, string)
 
rule copy_rule (rule)
 RULE. More...
 
void free_rule (rule)
 
rule check_rule (rule)
 
bool rule_consistent_p (rule)
 
bool rule_defined_p (rule)
 
list gen_rule_cons (rule, list)
 
void rule_assign_contents (rule, rule)
 
void rule_non_recursive_free (rule)
 
void write_rule (FILE *, rule)
 
rule read_rule (FILE *)
 
rule make_rule (string, list, list, list, list, list, list)
 
virtual_resource copy_virtual_resource (virtual_resource)
 VIRTUAL_RESOURCE. More...
 
void free_virtual_resource (virtual_resource)
 
virtual_resource check_virtual_resource (virtual_resource)
 
bool virtual_resource_consistent_p (virtual_resource)
 
bool virtual_resource_defined_p (virtual_resource)
 
list gen_virtual_resource_cons (virtual_resource, list)
 
void virtual_resource_assign_contents (virtual_resource, virtual_resource)
 
void virtual_resource_non_recursive_free (virtual_resource)
 
void write_virtual_resource (FILE *, virtual_resource)
 
virtual_resource read_virtual_resource (FILE *)
 
virtual_resource make_virtual_resource (string, owner)
 

Macro Definition Documentation

◆ _gen_makefile_start

#define _gen_makefile_start   15

Definition at line 3 of file makefile.h.

◆ _newgen_makefile_domain_defined_

#define _newgen_makefile_domain_defined_

Definition at line 12 of file makefile.h.

◆ _newgen_owner_domain_defined_

#define _newgen_owner_domain_defined_

Definition at line 20 of file makefile.h.

◆ _newgen_real_resource_domain_defined_

#define _newgen_real_resource_domain_defined_

Definition at line 28 of file makefile.h.

◆ _newgen_rule_domain_defined_

#define _newgen_rule_domain_defined_

Definition at line 36 of file makefile.h.

◆ _newgen_virtual_resource_domain_defined_

#define _newgen_virtual_resource_domain_defined_

Definition at line 44 of file makefile.h.

◆ gen_MAKEFILE_cons

#define gen_MAKEFILE_cons   gen_makefile_cons

Definition at line 66 of file makefile.h.

◆ gen_OWNER_cons

#define gen_OWNER_cons   gen_owner_cons

Definition at line 102 of file makefile.h.

◆ gen_REAL_RESOURCE_cons

#define gen_REAL_RESOURCE_cons   gen_real_resource_cons

Definition at line 187 of file makefile.h.

◆ gen_RULE_cons

#define gen_RULE_cons   gen_rule_cons

Definition at line 223 of file makefile.h.

◆ gen_VIRTUAL_RESOURCE_cons

#define gen_VIRTUAL_RESOURCE_cons   gen_virtual_resource_cons

Definition at line 274 of file makefile.h.

◆ MAKEFILE

#define MAKEFILE (   x)    ((makefile)((x).p))

newgen_virtual_resource_domain_defined

MAKEFILE

Definition at line 52 of file makefile.h.

◆ MAKEFILE_

#define MAKEFILE_ (   x)    ((x).e)

Definition at line 55 of file makefile.h.

◆ makefile_active_phases

#define makefile_active_phases (   x)    ((x)->_makefile_active_phases_)

Definition at line 84 of file makefile.h.

◆ makefile_active_phases_

#define makefile_active_phases_ (   x)    makefile_active_phases(x) /**old hack compatible */

Definition at line 83 of file makefile.h.

◆ makefile_CAST

#define makefile_CAST (   x)    MAKEFILE(x)

Definition at line 53 of file makefile.h.

◆ MAKEFILE_CAST

#define MAKEFILE_CAST (   x)    MAKEFILE(x)

Definition at line 54 of file makefile.h.

◆ makefile_domain

#define makefile_domain   (_gen_makefile_start+0)

Definition at line 10 of file makefile.h.

◆ makefile_domain_number

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

Definition at line 80 of file makefile.h.

◆ MAKEFILE_NEWGEN_DOMAIN

#define MAKEFILE_NEWGEN_DOMAIN   (makefile_domain)

Definition at line 13 of file makefile.h.

◆ makefile_NEWGEN_DOMAIN

#define makefile_NEWGEN_DOMAIN   (makefile_domain)

Definition at line 14 of file makefile.h.

◆ makefile_rules

#define makefile_rules (   x)    ((x)->_makefile_rules_)

Definition at line 82 of file makefile.h.

◆ makefile_rules_

#define makefile_rules_ (   x)    makefile_rules(x) /**old hack compatible */

Definition at line 81 of file makefile.h.

◆ makefile_spec

#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.

◆ MAKEFILE_TYPE

#define MAKEFILE_TYPE   makefile

Definition at line 56 of file makefile.h.

◆ makefile_TYPE

#define makefile_TYPE   makefile

Definition at line 57 of file makefile.h.

◆ makefile_undefined

#define makefile_undefined   ((makefile)gen_chunk_undefined)

Definition at line 58 of file makefile.h.

◆ makefile_undefined_p

#define makefile_undefined_p (   x)    ((x)==makefile_undefined)

Definition at line 59 of file makefile.h.

◆ OWNER

#define OWNER (   x)    ((owner)((x).p))

OWNER.

Definition at line 88 of file makefile.h.

◆ OWNER_

#define OWNER_ (   x)    ((x).e)

Definition at line 91 of file makefile.h.

◆ owner_all

#define owner_all (   x)    ((x)->_owner_union_._owner_all_.u)

Definition at line 163 of file makefile.h.

◆ owner_all_

#define owner_all_ (   x)    owner_all(x) /**old hack compatible */

Definition at line 162 of file makefile.h.

◆ owner_all_p

#define owner_all_p (   x)    (owner_tag(x)==is_owner_all)

Definition at line 161 of file makefile.h.

◆ owner_callees

#define owner_callees (   x)    ((x)->_owner_union_._owner_callees_.u)

Definition at line 157 of file makefile.h.

◆ owner_callees_

#define owner_callees_ (   x)    owner_callees(x) /**old hack compatible */

Definition at line 156 of file makefile.h.

◆ owner_callees_p

#define owner_callees_p (   x)    (owner_tag(x)==is_owner_callees)

Definition at line 155 of file makefile.h.

◆ owner_callers

#define owner_callers (   x)    ((x)->_owner_union_._owner_callers_.u)

Definition at line 160 of file makefile.h.

◆ owner_callers_

#define owner_callers_ (   x)    owner_callers(x) /**old hack compatible */

Definition at line 159 of file makefile.h.

◆ owner_callers_p

#define owner_callers_p (   x)    (owner_tag(x)==is_owner_callers)

Definition at line 158 of file makefile.h.

◆ owner_CAST

#define owner_CAST (   x)    OWNER(x)

Definition at line 89 of file makefile.h.

◆ OWNER_CAST

#define OWNER_CAST (   x)    OWNER(x)

Definition at line 90 of file makefile.h.

◆ owner_compilation_unit

#define owner_compilation_unit (   x)    ((x)->_owner_union_._owner_compilation_unit_.u)

Definition at line 169 of file makefile.h.

◆ owner_compilation_unit_

#define owner_compilation_unit_ (   x)    owner_compilation_unit(x) /**old hack compatible */

Definition at line 168 of file makefile.h.

◆ owner_compilation_unit_p

#define owner_compilation_unit_p (   x)    (owner_tag(x)==is_owner_compilation_unit)

Definition at line 167 of file makefile.h.

◆ owner_domain

#define owner_domain   (_gen_makefile_start+1)

newgen_makefile_domain_defined

Definition at line 18 of file makefile.h.

◆ owner_domain_number

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

Definition at line 144 of file makefile.h.

◆ owner_main

#define owner_main (   x)    ((x)->_owner_union_._owner_main_.u)

Definition at line 154 of file makefile.h.

◆ owner_main_

#define owner_main_ (   x)    owner_main(x) /**old hack compatible */

Definition at line 153 of file makefile.h.

◆ owner_main_p

#define owner_main_p (   x)    (owner_tag(x)==is_owner_main)

Definition at line 152 of file makefile.h.

◆ owner_module

#define owner_module (   x)    ((x)->_owner_union_._owner_module_.u)

Definition at line 151 of file makefile.h.

◆ owner_module_

#define owner_module_ (   x)    owner_module(x) /**old hack compatible */

Definition at line 150 of file makefile.h.

◆ owner_module_p

#define owner_module_p (   x)    (owner_tag(x)==is_owner_module)

Definition at line 149 of file makefile.h.

◆ OWNER_NEWGEN_DOMAIN

#define OWNER_NEWGEN_DOMAIN   (owner_domain)

Definition at line 21 of file makefile.h.

◆ owner_NEWGEN_DOMAIN

#define owner_NEWGEN_DOMAIN   (owner_domain)

Definition at line 22 of file makefile.h.

◆ owner_program

#define owner_program (   x)    ((x)->_owner_union_._owner_program_.u)

Definition at line 148 of file makefile.h.

◆ owner_program_

#define owner_program_ (   x)    owner_program(x) /**old hack compatible */

Definition at line 147 of file makefile.h.

◆ owner_program_p

#define owner_program_p (   x)    (owner_tag(x)==is_owner_program)

Definition at line 146 of file makefile.h.

◆ owner_select

#define owner_select (   x)    ((x)->_owner_union_._owner_select_.u)

Definition at line 166 of file makefile.h.

◆ owner_select_

#define owner_select_ (   x)    owner_select(x) /**old hack compatible */

Definition at line 165 of file makefile.h.

◆ owner_select_p

#define owner_select_p (   x)    (owner_tag(x)==is_owner_select)

Definition at line 164 of file makefile.h.

◆ owner_tag

#define owner_tag (   x)    ((x)->_owner_tag__)

Definition at line 145 of file makefile.h.

◆ OWNER_TYPE

#define OWNER_TYPE   owner

Definition at line 92 of file makefile.h.

◆ owner_TYPE

#define owner_TYPE   owner

Definition at line 93 of file makefile.h.

◆ owner_undefined

#define owner_undefined   ((owner)gen_chunk_undefined)

Definition at line 94 of file makefile.h.

◆ owner_undefined_p

#define owner_undefined_p (   x)    ((x)==owner_undefined)

Definition at line 95 of file makefile.h.

◆ REAL_RESOURCE

#define REAL_RESOURCE (   x)    ((real_resource)((x).p))

REAL_RESOURCE.

Definition at line 173 of file makefile.h.

◆ REAL_RESOURCE_

#define REAL_RESOURCE_ (   x)    ((x).e)

Definition at line 176 of file makefile.h.

◆ real_resource_CAST

#define real_resource_CAST (   x)    REAL_RESOURCE(x)

Definition at line 174 of file makefile.h.

◆ REAL_RESOURCE_CAST

#define REAL_RESOURCE_CAST (   x)    REAL_RESOURCE(x)

Definition at line 175 of file makefile.h.

◆ real_resource_domain

#define real_resource_domain   (_gen_makefile_start+2)

newgen_owner_domain_defined

Definition at line 26 of file makefile.h.

◆ real_resource_domain_number

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

Definition at line 201 of file makefile.h.

◆ REAL_RESOURCE_NEWGEN_DOMAIN

#define REAL_RESOURCE_NEWGEN_DOMAIN   (real_resource_domain)

Definition at line 29 of file makefile.h.

◆ real_resource_NEWGEN_DOMAIN

#define real_resource_NEWGEN_DOMAIN   (real_resource_domain)

Definition at line 30 of file makefile.h.

◆ real_resource_owner_name

#define real_resource_owner_name (   x)    ((x)->_real_resource_owner_name_)

Definition at line 205 of file makefile.h.

◆ real_resource_owner_name_

#define real_resource_owner_name_ (   x)    real_resource_owner_name(x) /**old hack compatible */

Definition at line 204 of file makefile.h.

◆ real_resource_resource_name

#define real_resource_resource_name (   x)    ((x)->_real_resource_resource_name_)

Definition at line 203 of file makefile.h.

◆ real_resource_resource_name_

#define real_resource_resource_name_ (   x)    real_resource_resource_name(x) /**old hack compatible */

Definition at line 202 of file makefile.h.

◆ REAL_RESOURCE_TYPE

#define REAL_RESOURCE_TYPE   real_resource

Definition at line 177 of file makefile.h.

◆ real_resource_TYPE

#define real_resource_TYPE   real_resource

Definition at line 178 of file makefile.h.

◆ real_resource_undefined

#define real_resource_undefined   ((real_resource)gen_chunk_undefined)

Definition at line 179 of file makefile.h.

◆ real_resource_undefined_p

#define real_resource_undefined_p (   x)    ((x)==real_resource_undefined)

Definition at line 180 of file makefile.h.

◆ RULE

#define RULE (   x)    ((rule)((x).p))

RULE.

Definition at line 209 of file makefile.h.

◆ RULE_

#define RULE_ (   x)    ((x).e)

Definition at line 212 of file makefile.h.

◆ rule_CAST

#define rule_CAST (   x)    RULE(x)

Definition at line 210 of file makefile.h.

◆ RULE_CAST

#define RULE_CAST (   x)    RULE(x)

Definition at line 211 of file makefile.h.

◆ rule_domain

#define rule_domain   (_gen_makefile_start+3)

newgen_real_resource_domain_defined

Definition at line 34 of file makefile.h.

◆ rule_domain_number

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

Definition at line 242 of file makefile.h.

◆ rule_modified

#define rule_modified (   x)    ((x)->_rule_modified_)

Definition at line 252 of file makefile.h.

◆ rule_modified_

#define rule_modified_ (   x)    rule_modified(x) /**old hack compatible */

Definition at line 251 of file makefile.h.

◆ RULE_NEWGEN_DOMAIN

#define RULE_NEWGEN_DOMAIN   (rule_domain)

Definition at line 37 of file makefile.h.

◆ rule_NEWGEN_DOMAIN

#define rule_NEWGEN_DOMAIN   (rule_domain)

Definition at line 38 of file makefile.h.

◆ rule_phase

#define rule_phase (   x)    ((x)->_rule_phase_)

Definition at line 244 of file makefile.h.

◆ rule_phase_

#define rule_phase_ (   x)    rule_phase(x) /**old hack compatible */

Definition at line 243 of file makefile.h.

◆ rule_post_transformation

#define rule_post_transformation (   x)    ((x)->_rule_post_transformation_)

Definition at line 256 of file makefile.h.

◆ rule_post_transformation_

#define rule_post_transformation_ (   x)    rule_post_transformation(x) /**old hack compatible */

Definition at line 255 of file makefile.h.

◆ rule_pre_transformation

#define rule_pre_transformation (   x)    ((x)->_rule_pre_transformation_)

Definition at line 254 of file makefile.h.

◆ rule_pre_transformation_

#define rule_pre_transformation_ (   x)    rule_pre_transformation(x) /**old hack compatible */

Definition at line 253 of file makefile.h.

◆ rule_preserved

#define rule_preserved (   x)    ((x)->_rule_preserved_)

Definition at line 250 of file makefile.h.

◆ rule_preserved_

#define rule_preserved_ (   x)    rule_preserved(x) /**old hack compatible */

Definition at line 249 of file makefile.h.

◆ rule_produced

#define rule_produced (   x)    ((x)->_rule_produced_)

Definition at line 248 of file makefile.h.

◆ rule_produced_

#define rule_produced_ (   x)    rule_produced(x) /**old hack compatible */

Definition at line 247 of file makefile.h.

◆ rule_required

#define rule_required (   x)    ((x)->_rule_required_)

Definition at line 246 of file makefile.h.

◆ rule_required_

#define rule_required_ (   x)    rule_required(x) /**old hack compatible */

Definition at line 245 of file makefile.h.

◆ RULE_TYPE

#define RULE_TYPE   rule

Definition at line 213 of file makefile.h.

◆ rule_TYPE

#define rule_TYPE   rule

Definition at line 214 of file makefile.h.

◆ rule_undefined

#define rule_undefined   ((rule)gen_chunk_undefined)

Definition at line 215 of file makefile.h.

◆ rule_undefined_p

#define rule_undefined_p (   x)    ((x)==rule_undefined)

Definition at line 216 of file makefile.h.

◆ VIRTUAL_RESOURCE

#define VIRTUAL_RESOURCE (   x)    ((virtual_resource)((x).p))

VIRTUAL_RESOURCE.

Definition at line 260 of file makefile.h.

◆ VIRTUAL_RESOURCE_

#define VIRTUAL_RESOURCE_ (   x)    ((x).e)

Definition at line 263 of file makefile.h.

◆ virtual_resource_CAST

#define virtual_resource_CAST (   x)    VIRTUAL_RESOURCE(x)

Definition at line 261 of file makefile.h.

◆ VIRTUAL_RESOURCE_CAST

#define VIRTUAL_RESOURCE_CAST (   x)    VIRTUAL_RESOURCE(x)

Definition at line 262 of file makefile.h.

◆ virtual_resource_domain

#define virtual_resource_domain   (_gen_makefile_start+4)

newgen_rule_domain_defined

Definition at line 42 of file makefile.h.

◆ virtual_resource_domain_number

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

Definition at line 288 of file makefile.h.

◆ virtual_resource_name

#define virtual_resource_name (   x)    ((x)->_virtual_resource_name_)

Definition at line 290 of file makefile.h.

◆ virtual_resource_name_

#define virtual_resource_name_ (   x)    virtual_resource_name(x) /**old hack compatible */

Definition at line 289 of file makefile.h.

◆ VIRTUAL_RESOURCE_NEWGEN_DOMAIN

#define VIRTUAL_RESOURCE_NEWGEN_DOMAIN   (virtual_resource_domain)

Definition at line 45 of file makefile.h.

◆ virtual_resource_NEWGEN_DOMAIN

#define virtual_resource_NEWGEN_DOMAIN   (virtual_resource_domain)

Definition at line 46 of file makefile.h.

◆ virtual_resource_owner

#define virtual_resource_owner (   x)    ((x)->_virtual_resource_owner_)

Definition at line 292 of file makefile.h.

◆ virtual_resource_owner_

#define virtual_resource_owner_ (   x)    virtual_resource_owner(x) /**old hack compatible */

Definition at line 291 of file makefile.h.

◆ VIRTUAL_RESOURCE_TYPE

#define VIRTUAL_RESOURCE_TYPE   virtual_resource

Definition at line 264 of file makefile.h.

◆ virtual_resource_TYPE

#define virtual_resource_TYPE   virtual_resource

Definition at line 265 of file makefile.h.

◆ virtual_resource_undefined

#define virtual_resource_undefined   ((virtual_resource)gen_chunk_undefined)

Definition at line 266 of file makefile.h.

◆ virtual_resource_undefined_p

#define virtual_resource_undefined_p (   x)    ((x)==virtual_resource_undefined)

Definition at line 267 of file makefile.h.

Typedef Documentation

◆ makefile

Definition at line 15 of file makefile.h.

◆ owner

typedef struct _newgen_struct_owner_* owner

Definition at line 23 of file makefile.h.

◆ real_resource

Definition at line 31 of file makefile.h.

◆ rule

typedef struct _newgen_struct_rule_* rule

Definition at line 39 of file makefile.h.

◆ virtual_resource

Definition at line 47 of file makefile.h.

Enumeration Type Documentation

◆ 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.

108  {
114  is_owner_all,
117 };
@ is_owner_main
Definition: makefile.h:111
@ is_owner_callees
Definition: makefile.h:112
@ is_owner_select
Definition: makefile.h:115
@ is_owner_compilation_unit
Definition: makefile.h:116
@ is_owner_module
Definition: makefile.h:110
@ is_owner_callers
Definition: makefile.h:113
@ is_owner_all
Definition: makefile.h:114
@ is_owner_program
Definition: makefile.h:109

Function Documentation

◆ check_makefile()

makefile check_makefile ( makefile  p)

Definition at line 22 of file makefile.c.

22  {
24 }
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 makefile_domain
Definition: makefile.h:10
A gen_chunk is used to store every object.
Definition: genC.h:58

References gen_check(), and makefile_domain.

Referenced by makefile_assign_contents(), and makefile_consistent_p().

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

◆ check_owner()

owner check_owner ( owner  p)

Definition at line 64 of file makefile.c.

64  {
65  return (owner) gen_check((gen_chunk*) p, owner_domain);
66 }
#define owner_domain
newgen_makefile_domain_defined
Definition: makefile.h:18

References gen_check(), and owner_domain.

Referenced by owner_assign_contents(), and owner_consistent_p().

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

◆ check_real_resource()

real_resource check_real_resource ( real_resource  p)

Definition at line 143 of file makefile.c.

143  {
145 }
#define real_resource_domain
newgen_owner_domain_defined
Definition: makefile.h:26

References gen_check(), and real_resource_domain.

Referenced by real_resource_assign_contents(), and real_resource_consistent_p().

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

◆ check_rule()

rule check_rule ( rule  p)

Definition at line 185 of file makefile.c.

185  {
186  return (rule) gen_check((gen_chunk*) p, rule_domain);
187 }
#define rule_domain
newgen_real_resource_domain_defined
Definition: makefile.h:34

References gen_check(), and rule_domain.

Referenced by rule_assign_contents(), and rule_consistent_p().

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

◆ check_virtual_resource()

virtual_resource check_virtual_resource ( virtual_resource  p)

Definition at line 227 of file makefile.c.

227  {
229 }
#define virtual_resource_domain
newgen_rule_domain_defined
Definition: makefile.h:42

References gen_check(), and virtual_resource_domain.

Referenced by virtual_resource_assign_contents(), and virtual_resource_consistent_p().

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

◆ copy_makefile()

makefile copy_makefile ( makefile  p)

MAKEFILE.

Definition at line 16 of file makefile.c.

16  {
17  return (makefile) gen_copy_tree((gen_chunk*) p);
18 }
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_owner()

owner copy_owner ( owner  p)

OWNER.

Definition at line 58 of file makefile.c.

58  {
59  return (owner) gen_copy_tree((gen_chunk*) p);
60 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ copy_real_resource()

real_resource copy_real_resource ( real_resource  p)

REAL_RESOURCE.

Definition at line 137 of file makefile.c.

137  {
138  return (real_resource) gen_copy_tree((gen_chunk*) p);
139 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ copy_rule()

rule copy_rule ( rule  p)

RULE.

Definition at line 179 of file makefile.c.

179  {
180  return (rule) gen_copy_tree((gen_chunk*) p);
181 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ copy_virtual_resource()

virtual_resource copy_virtual_resource ( virtual_resource  p)

VIRTUAL_RESOURCE.

Definition at line 221 of file makefile.c.

221  {
223 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ free_makefile()

void free_makefile ( makefile  p)

Definition at line 19 of file makefile.c.

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

References gen_free().

Referenced by close_makefile(), and open_makefile().

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

◆ free_owner()

void free_owner ( owner  p)

Definition at line 61 of file makefile.c.

61  {
62  gen_free((gen_chunk*) p);
63 }

References gen_free().

+ Here is the call graph for this function:

◆ free_real_resource()

void free_real_resource ( real_resource  p)

Definition at line 140 of file makefile.c.

140  {
141  gen_free((gen_chunk*) p);
142 }

References gen_free().

+ Here is the call graph for this function:

◆ free_rule()

void free_rule ( rule  p)

Definition at line 182 of file makefile.c.

182  {
183  gen_free((gen_chunk*) p);
184 }

References gen_free().

+ Here is the call graph for this function:

◆ free_virtual_resource()

void free_virtual_resource ( virtual_resource  p)

Definition at line 224 of file makefile.c.

224  {
225  gen_free((gen_chunk*) p);
226 }

References gen_free().

+ Here is the call graph for this function:

◆ gen_makefile_cons()

list gen_makefile_cons ( makefile  p,
list  l 
)

Definition at line 32 of file makefile.c.

32  {
34 }
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 MAKEFILE_NEWGEN_DOMAIN
Definition: makefile.h:13

References gen_typed_cons(), and MAKEFILE_NEWGEN_DOMAIN.

+ Here is the call graph for this function:

◆ gen_owner_cons()

list gen_owner_cons ( owner  p,
list  l 
)

Definition at line 74 of file makefile.c.

74  {
75  return gen_typed_cons(OWNER_NEWGEN_DOMAIN, p, l);
76 }
#define OWNER_NEWGEN_DOMAIN
Definition: makefile.h:21

References gen_typed_cons(), and OWNER_NEWGEN_DOMAIN.

+ Here is the call graph for this function:

◆ gen_real_resource_cons()

list gen_real_resource_cons ( real_resource  p,
list  l 
)

Definition at line 153 of file makefile.c.

153  {
155 }
#define REAL_RESOURCE_NEWGEN_DOMAIN
Definition: makefile.h:29

References gen_typed_cons(), and REAL_RESOURCE_NEWGEN_DOMAIN.

+ Here is the call graph for this function:

◆ gen_rule_cons()

list gen_rule_cons ( rule  p,
list  l 
)

Definition at line 195 of file makefile.c.

195  {
196  return gen_typed_cons(RULE_NEWGEN_DOMAIN, p, l);
197 }
#define RULE_NEWGEN_DOMAIN
Definition: makefile.h:37

References gen_typed_cons(), and RULE_NEWGEN_DOMAIN.

+ Here is the call graph for this function:

◆ gen_virtual_resource_cons()

list gen_virtual_resource_cons ( virtual_resource  p,
list  l 
)

Definition at line 237 of file makefile.c.

237  {
239 }
#define VIRTUAL_RESOURCE_NEWGEN_DOMAIN
Definition: makefile.h:45

References gen_typed_cons(), and VIRTUAL_RESOURCE_NEWGEN_DOMAIN.

+ Here is the call graph for this function:

◆ make_makefile()

makefile make_makefile ( list  a1,
list  a2 
)

Definition at line 52 of file makefile.c.

52  {
53  return (makefile) gen_alloc(3*sizeof(gen_chunk), GEN_CHECK_ALLOC, makefile_domain, a1, a2);
54 }
#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 gen_alloc(), GEN_CHECK_ALLOC, and makefile_domain.

+ Here is the call graph for this function:

◆ make_owner()

owner make_owner ( enum  owner_utype,
void *  val 
)

Definition at line 107 of file makefile.c.

107  {
108  return (owner) gen_alloc(3*sizeof(gen_chunk), GEN_CHECK_ALLOC, owner_domain, tag, val);
109 }
int tag
TAG.
Definition: newgen_types.h:92

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

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

◆ make_owner_all()

owner make_owner_all ( void  )

Definition at line 125 of file makefile.c.

125  {
126  return make_owner(is_owner_all, UU);
127 }
owner make_owner(enum owner_utype tag, void *val)
Definition: makefile.c:107
#define UU
Definition: newgen_types.h:98

References is_owner_all, make_owner(), and UU.

+ Here is the call graph for this function:

◆ make_owner_callees()

owner make_owner_callees ( void  )

Definition at line 119 of file makefile.c.

119  {
120  return make_owner(is_owner_callees, UU);
121 }

References is_owner_callees, make_owner(), and UU.

+ Here is the call graph for this function:

◆ make_owner_callers()

owner make_owner_callers ( void  )

Definition at line 122 of file makefile.c.

122  {
123  return make_owner(is_owner_callers, UU);
124 }

References is_owner_callers, make_owner(), and UU.

+ Here is the call graph for this function:

◆ make_owner_compilation_unit()

owner make_owner_compilation_unit ( void  )

Definition at line 131 of file makefile.c.

131  {
133 }

References is_owner_compilation_unit, make_owner(), and UU.

+ Here is the call graph for this function:

◆ make_owner_main()

owner make_owner_main ( void  )

Definition at line 116 of file makefile.c.

116  {
117  return make_owner(is_owner_main, UU);
118 }

References is_owner_main, make_owner(), and UU.

+ Here is the call graph for this function:

◆ make_owner_module()

owner make_owner_module ( void  )

Definition at line 113 of file makefile.c.

113  {
114  return make_owner(is_owner_module, UU);
115 }

References is_owner_module, make_owner(), and UU.

+ Here is the call graph for this function:

◆ make_owner_program()

owner make_owner_program ( void  )

Definition at line 110 of file makefile.c.

110  {
111  return make_owner(is_owner_program, UU);
112 }

References is_owner_program, make_owner(), and UU.

+ Here is the call graph for this function:

◆ make_owner_select()

owner make_owner_select ( void  )

Definition at line 128 of file makefile.c.

128  {
129  return make_owner(is_owner_select, UU);
130 }

References is_owner_select, make_owner(), and UU.

+ Here is the call graph for this function:

◆ make_real_resource()

real_resource make_real_resource ( string  a1,
string  a2 
)

Definition at line 173 of file makefile.c.

173  {
175 }

References gen_alloc(), GEN_CHECK_ALLOC, and real_resource_domain.

+ Here is the call graph for this function:

◆ make_rule()

rule make_rule ( string  a1,
list  a2,
list  a3,
list  a4,
list  a5,
list  a6,
list  a7 
)

Definition at line 215 of file makefile.c.

215  {
216  return (rule) gen_alloc(8*sizeof(gen_chunk), GEN_CHECK_ALLOC, rule_domain, a1, a2, a3, a4, a5, a6, a7);
217 }

References gen_alloc(), GEN_CHECK_ALLOC, and rule_domain.

+ Here is the call graph for this function:

◆ make_virtual_resource()

virtual_resource make_virtual_resource ( string  a1,
owner  a2 
)

Definition at line 257 of file makefile.c.

257  {
259 }

References gen_alloc(), GEN_CHECK_ALLOC, and virtual_resource_domain.

+ Here is the call graph for this function:

◆ makefile_assign_contents()

void makefile_assign_contents ( makefile  r,
makefile  v 
)

Definition at line 35 of file makefile.c.

35  {
36  check_makefile(r);
37  check_makefile(v);
38  message_assert("defined references to domain makefile",
40  memcpy(r, v, sizeof(struct _newgen_struct_makefile_));
41 }
bool makefile_defined_p(makefile p)
Definition: makefile.c:29
makefile check_makefile(makefile p)
Definition: makefile.c:22
#define message_assert(msg, ex)
Definition: newgen_assert.h:47

References check_makefile(), makefile_defined_p(), and message_assert.

+ Here is the call graph for this function:

◆ makefile_consistent_p()

bool makefile_consistent_p ( makefile  p)

Definition at line 25 of file makefile.c.

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

References check_makefile(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ makefile_defined_p()

bool makefile_defined_p ( makefile  p)

Definition at line 29 of file makefile.c.

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

References gen_defined_p().

Referenced by makefile_assign_contents().

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

◆ makefile_non_recursive_free()

void makefile_non_recursive_free ( makefile  p)

Definition at line 42 of file makefile.c.

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

References free().

+ Here is the call graph for this function:

◆ owner_assign_contents()

void owner_assign_contents ( owner  r,
owner  v 
)

Definition at line 77 of file makefile.c.

77  {
78  check_owner(r);
79  check_owner(v);
80  message_assert("defined references to domain owner",
82  memcpy(r, v, sizeof(struct _newgen_struct_owner_));
83 }
owner check_owner(owner p)
Definition: makefile.c:64
bool owner_defined_p(owner p)
Definition: makefile.c:71

References check_owner(), message_assert, and owner_defined_p().

+ Here is the call graph for this function:

◆ owner_consistent_p()

bool owner_consistent_p ( owner  p)

Definition at line 67 of file makefile.c.

67  {
68  check_owner(p);
69  return gen_consistent_p((gen_chunk*) p);
70 }

References check_owner(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ owner_defined_p()

bool owner_defined_p ( owner  p)

Definition at line 71 of file makefile.c.

71  {
72  return gen_defined_p((gen_chunk*) p);
73 }

References gen_defined_p().

Referenced by owner_assign_contents().

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

◆ owner_non_recursive_free()

void owner_non_recursive_free ( owner  p)

Definition at line 84 of file makefile.c.

84  {
85  // should clear up contents...
86  free(p);
87 }

References free().

+ Here is the call graph for this function:

◆ owner_tag_as_string()

string owner_tag_as_string ( enum  owner_utype)

Definition at line 94 of file makefile.c.

94  {
95  switch (tag) {
96  case is_owner_program: return "program";
97  case is_owner_module: return "module";
98  case is_owner_main: return "main";
99  case is_owner_callees: return "callees";
100  case is_owner_callers: return "callers";
101  case is_owner_all: return "all";
102  case is_owner_select: return "select";
103  case is_owner_compilation_unit: return "compilation_unit";
104  default: return string_undefined;
105  }
106 }
#define string_undefined
Definition: newgen_types.h:40

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.

◆ read_makefile()

makefile read_makefile ( FILE *  f)

Definition at line 49 of file makefile.c.

49  {
50  return (makefile) gen_read(f);
51 }
gen_chunk * gen_read(FILE *file)
GEN_READ reads any object from the FILE stream.
Definition: genClib.c:2323
int f(int off1, int off2, int n, float r[n], float a[n], float b[n])
Definition: offsets.c:15

References f(), and gen_read().

Referenced by open_makefile().

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

◆ read_owner()

owner read_owner ( FILE *  f)

Definition at line 91 of file makefile.c.

91  {
92  return (owner) gen_read(f);
93 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ read_real_resource()

real_resource read_real_resource ( FILE *  f)

Definition at line 170 of file makefile.c.

170  {
171  return (real_resource) gen_read(f);
172 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ read_rule()

rule read_rule ( FILE *  f)

Definition at line 212 of file makefile.c.

212  {
213  return (rule) gen_read(f);
214 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ read_virtual_resource()

virtual_resource read_virtual_resource ( FILE *  f)

Definition at line 254 of file makefile.c.

254  {
255  return (virtual_resource) gen_read(f);
256 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ real_resource_assign_contents()

void real_resource_assign_contents ( real_resource  r,
real_resource  v 
)

Definition at line 156 of file makefile.c.

156  {
159  message_assert("defined references to domain real_resource",
161  memcpy(r, v, sizeof(struct _newgen_struct_real_resource_));
162 }
bool real_resource_defined_p(real_resource p)
Definition: makefile.c:150
real_resource check_real_resource(real_resource p)
Definition: makefile.c:143

References check_real_resource(), message_assert, and real_resource_defined_p().

+ Here is the call graph for this function:

◆ real_resource_consistent_p()

bool real_resource_consistent_p ( real_resource  p)

Definition at line 146 of file makefile.c.

146  {
148  return gen_consistent_p((gen_chunk*) p);
149 }

References check_real_resource(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ real_resource_defined_p()

bool real_resource_defined_p ( real_resource  p)

Definition at line 150 of file makefile.c.

150  {
151  return gen_defined_p((gen_chunk*) p);
152 }

References gen_defined_p().

Referenced by real_resource_assign_contents().

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

◆ real_resource_non_recursive_free()

void real_resource_non_recursive_free ( real_resource  p)

Definition at line 163 of file makefile.c.

163  {
164  // should clear up contents...
165  free(p);
166 }

References free().

+ Here is the call graph for this function:

◆ rule_assign_contents()

void rule_assign_contents ( rule  r,
rule  v 
)

Definition at line 198 of file makefile.c.

198  {
199  check_rule(r);
200  check_rule(v);
201  message_assert("defined references to domain rule",
202  rule_defined_p(r) && rule_defined_p(v));
203  memcpy(r, v, sizeof(struct _newgen_struct_rule_));
204 }
rule check_rule(rule p)
Definition: makefile.c:185
bool rule_defined_p(rule p)
Definition: makefile.c:192

References check_rule(), message_assert, and rule_defined_p().

+ Here is the call graph for this function:

◆ rule_consistent_p()

bool rule_consistent_p ( rule  p)

Definition at line 188 of file makefile.c.

188  {
189  check_rule(p);
190  return gen_consistent_p((gen_chunk*) p);
191 }

References check_rule(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ rule_defined_p()

bool rule_defined_p ( rule  p)

Definition at line 192 of file makefile.c.

192  {
193  return gen_defined_p((gen_chunk*) p);
194 }

References gen_defined_p().

Referenced by rule_assign_contents().

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

◆ rule_non_recursive_free()

void rule_non_recursive_free ( rule  p)

Definition at line 205 of file makefile.c.

205  {
206  // should clear up contents...
207  free(p);
208 }

References free().

+ Here is the call graph for this function:

◆ virtual_resource_assign_contents()

void virtual_resource_assign_contents ( virtual_resource  r,
virtual_resource  v 
)

Definition at line 240 of file makefile.c.

240  {
243  message_assert("defined references to domain virtual_resource",
245  memcpy(r, v, sizeof(struct _newgen_struct_virtual_resource_));
246 }
bool virtual_resource_defined_p(virtual_resource p)
Definition: makefile.c:234
virtual_resource check_virtual_resource(virtual_resource p)
Definition: makefile.c:227

References check_virtual_resource(), message_assert, and virtual_resource_defined_p().

+ Here is the call graph for this function:

◆ virtual_resource_consistent_p()

bool virtual_resource_consistent_p ( virtual_resource  p)

Definition at line 230 of file makefile.c.

230  {
232  return gen_consistent_p((gen_chunk*) p);
233 }

References check_virtual_resource(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ virtual_resource_defined_p()

bool virtual_resource_defined_p ( virtual_resource  p)

Definition at line 234 of file makefile.c.

234  {
235  return gen_defined_p((gen_chunk*) p);
236 }

References gen_defined_p().

Referenced by virtual_resource_assign_contents().

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

◆ virtual_resource_non_recursive_free()

void virtual_resource_non_recursive_free ( virtual_resource  p)

Definition at line 247 of file makefile.c.

247  {
248  // should clear up contents...
249  free(p);
250 }

References free().

+ Here is the call graph for this function:

◆ write_makefile()

void write_makefile ( FILE *  f,
makefile  p 
)

Definition at line 46 of file makefile.c.

46  {
47  gen_write(f, (gen_chunk*) p);
48 }
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().

Referenced by save_makefile().

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

◆ write_owner()

void write_owner ( FILE *  f,
owner  p 
)

Definition at line 88 of file makefile.c.

88  {
89  gen_write(f, (gen_chunk*) p);
90 }

References f(), and gen_write().

+ Here is the call graph for this function:

◆ write_real_resource()

void write_real_resource ( FILE *  f,
real_resource  p 
)

Definition at line 167 of file makefile.c.

167  {
168  gen_write(f, (gen_chunk*) p);
169 }

References f(), and gen_write().

+ Here is the call graph for this function:

◆ write_rule()

void write_rule ( FILE *  f,
rule  p 
)

Definition at line 209 of file makefile.c.

209  {
210  gen_write(f, (gen_chunk*) p);
211 }

References f(), and gen_write().

+ Here is the call graph for this function:

◆ write_virtual_resource()

void write_virtual_resource ( FILE *  f,
virtual_resource  p 
)

Definition at line 251 of file makefile.c.

251  {
252  gen_write(f, (gen_chunk*) p);
253 }

References f(), and gen_write().

+ Here is the call graph for this function: