PIPS
newgen-local.h File Reference

Go to the source code of this file.

Macros

#define STATEMENT_ORDERING_UNDEFINED   (-1)
 mapping.h inclusion More...
 
#define MAKE_STATEMENT_MAPPING()    (statement_mapping) hash_table_make(hash_pointer, 0)
 
#define FREE_STATEMENT_MAPPING(map)    (hash_table_free((hash_table) (map)))
 
#define SET_STATEMENT_MAPPING(map, stat, val)    hash_put((hash_table) (map), (char *)(stat), (char *)(val))
 
#define GET_STATEMENT_MAPPING(map, stat)    hash_get((hash_table) (map), (char *) (stat))
 
#define STATEMENT_MAPPING_COUNT(map)    hash_table_entry_count((hash_table) map)
 
#define STATEMENT_MAPPING_MAP(s, v, code, h)    HASH_MAP(s, v, code, h)
 
#define DEFINE_CURRENT_MAPPING(name, type)    GENERIC_CURRENT_MAPPING(name, type, statement)
 
#define ENTITY_MAPPING_INCLUDED
 
#define MAKE_ENTITY_MAPPING()    ((entity_mapping) hash_table_make(hash_pointer, 0))
 
#define FREE_ENTITY_MAPPING(map)    (hash_table_free((hash_table) (map)))
 
#define SET_ENTITY_MAPPING(map, ent, val)    hash_put((hash_table) (map), (char *)(ent), (char *)(val))
 
#define GET_ENTITY_MAPPING(map, ent)    hash_get((hash_table) (map), (char *)(ent))
 
#define ENTITY_MAPPING_COUNT(map)    hash_table_entry_count((hash_table) map)
 
#define ENTITY_MAPPING_MAP(s, v, code, h)    HASH_MAP(s, v, code, h)
 
#define CONTROL_MAPPING_INCLUDED
 
#define MAKE_CONTROL_MAPPING()    ((control_mapping) hash_table_make(hash_pointer, 0))
 
#define FREE_CONTROL_MAPPING(map)    (hash_table_free((hash_table) (map)))
 
#define SET_CONTROL_MAPPING(map, cont, val)    hash_put((hash_table) (map), (char *)(cont), (char *)(val))
 
#define GET_CONTROL_MAPPING(map, cont)    hash_get((hash_table) (map), (char *)(cont))
 
#define CONTROL_MAPPING_COUNT(map)    hash_table_entry_count((hash_table) map)
 
#define CONTROL_MAPPING_MAP(s, v, code, h)    HASH_MAP(s, v, code, h)
 

Typedefs

typedef hash_table statement_mapping
 these macros are obsolete! newgen functions (->) should be used instead More...
 
typedef hash_table entity_mapping
 
typedef hash_table control_mapping
 

Macro Definition Documentation

◆ CONTROL_MAPPING_COUNT

#define CONTROL_MAPPING_COUNT (   map)     hash_table_entry_count((hash_table) map)

Definition at line 90 of file newgen-local.h.

◆ CONTROL_MAPPING_INCLUDED

#define CONTROL_MAPPING_INCLUDED

Definition at line 80 of file newgen-local.h.

◆ CONTROL_MAPPING_MAP

#define CONTROL_MAPPING_MAP (   s,
  v,
  code,
 
)     HASH_MAP(s, v, code, h)

Definition at line 92 of file newgen-local.h.

◆ DEFINE_CURRENT_MAPPING

#define DEFINE_CURRENT_MAPPING (   name,
  type 
)     GENERIC_CURRENT_MAPPING(name, type, statement)

Definition at line 58 of file newgen-local.h.

◆ ENTITY_MAPPING_COUNT

#define ENTITY_MAPPING_COUNT (   map)     hash_table_entry_count((hash_table) map)

Definition at line 73 of file newgen-local.h.

◆ ENTITY_MAPPING_INCLUDED

#define ENTITY_MAPPING_INCLUDED

Definition at line 63 of file newgen-local.h.

◆ ENTITY_MAPPING_MAP

#define ENTITY_MAPPING_MAP (   s,
  v,
  code,
 
)     HASH_MAP(s, v, code, h)

Definition at line 75 of file newgen-local.h.

◆ FREE_CONTROL_MAPPING

#define FREE_CONTROL_MAPPING (   map)     (hash_table_free((hash_table) (map)))

Definition at line 84 of file newgen-local.h.

◆ FREE_ENTITY_MAPPING

#define FREE_ENTITY_MAPPING (   map)     (hash_table_free((hash_table) (map)))

Definition at line 67 of file newgen-local.h.

◆ FREE_STATEMENT_MAPPING

#define FREE_STATEMENT_MAPPING (   map)     (hash_table_free((hash_table) (map)))

Definition at line 45 of file newgen-local.h.

◆ GET_CONTROL_MAPPING

#define GET_CONTROL_MAPPING (   map,
  cont 
)     hash_get((hash_table) (map), (char *)(cont))

Definition at line 88 of file newgen-local.h.

◆ GET_ENTITY_MAPPING

#define GET_ENTITY_MAPPING (   map,
  ent 
)     hash_get((hash_table) (map), (char *)(ent))

Definition at line 71 of file newgen-local.h.

◆ GET_STATEMENT_MAPPING

#define GET_STATEMENT_MAPPING (   map,
  stat 
)     hash_get((hash_table) (map), (char *) (stat))

Definition at line 49 of file newgen-local.h.

◆ MAKE_CONTROL_MAPPING

#define MAKE_CONTROL_MAPPING ( )     ((control_mapping) hash_table_make(hash_pointer, 0))

Definition at line 82 of file newgen-local.h.

◆ MAKE_ENTITY_MAPPING

#define MAKE_ENTITY_MAPPING ( )     ((entity_mapping) hash_table_make(hash_pointer, 0))

Definition at line 65 of file newgen-local.h.

◆ MAKE_STATEMENT_MAPPING

#define MAKE_STATEMENT_MAPPING ( )     (statement_mapping) hash_table_make(hash_pointer, 0)

Definition at line 43 of file newgen-local.h.

◆ SET_CONTROL_MAPPING

#define SET_CONTROL_MAPPING (   map,
  cont,
  val 
)     hash_put((hash_table) (map), (char *)(cont), (char *)(val))

Definition at line 86 of file newgen-local.h.

◆ SET_ENTITY_MAPPING

#define SET_ENTITY_MAPPING (   map,
  ent,
  val 
)     hash_put((hash_table) (map), (char *)(ent), (char *)(val))

Definition at line 69 of file newgen-local.h.

◆ SET_STATEMENT_MAPPING

#define SET_STATEMENT_MAPPING (   map,
  stat,
  val 
)     hash_put((hash_table) (map), (char *)(stat), (char *)(val))

Definition at line 47 of file newgen-local.h.

◆ STATEMENT_MAPPING_COUNT

#define STATEMENT_MAPPING_COUNT (   map)     hash_table_entry_count((hash_table) map)

Definition at line 51 of file newgen-local.h.

◆ STATEMENT_MAPPING_MAP

#define STATEMENT_MAPPING_MAP (   s,
  v,
  code,
 
)     HASH_MAP(s, v, code, h)

Definition at line 53 of file newgen-local.h.

◆ STATEMENT_ORDERING_UNDEFINED

#define STATEMENT_ORDERING_UNDEFINED   (-1)

mapping.h inclusion

I do that because this file was previously included in genC.h, but the macros defined here use ri types (statement, entity...). three typedef are also included here. ri.h is a prerequisit for mapping.h.

FC, Feb 21, 1994

Definition at line 35 of file newgen-local.h.

Typedef Documentation

◆ control_mapping

Definition at line 81 of file newgen-local.h.

◆ entity_mapping

Definition at line 64 of file newgen-local.h.

◆ statement_mapping

these macros are obsolete! newgen functions (->) should be used instead

Definition at line 42 of file newgen-local.h.