| 1 |
mmeineke |
10 |
#ifndef __INTERFACE_H__ |
| 2 |
|
|
#define __INTERFACE_H__ |
| 3 |
|
|
|
| 4 |
|
|
#include "node_list.h" |
| 5 |
|
|
|
| 6 |
|
|
/* |
| 7 |
|
|
* the following is used to clarify the namespcae of a given statement |
| 8 |
|
|
* or block node. |
| 9 |
|
|
*/ |
| 10 |
|
|
|
| 11 |
|
|
struct namespc{ |
| 12 |
|
|
int index; |
| 13 |
|
|
node_type type; |
| 14 |
|
|
}; |
| 15 |
|
|
|
| 16 |
|
|
/* |
| 17 |
|
|
* The following are the function calls to initialize the different |
| 18 |
|
|
* code blocks. |
| 19 |
|
|
*/ |
| 20 |
|
|
|
| 21 |
|
|
extern void init_component( int component_index ); |
| 22 |
|
|
extern void init_molecule( int mol_index ); |
| 23 |
|
|
extern void init_atom( int atom_index ); |
| 24 |
|
|
extern void init_bond( int bond_index ); |
| 25 |
|
|
extern void init_bend( int bend_index ); |
| 26 |
|
|
extern void init_torsion( int torsion_index ); |
| 27 |
|
|
|
| 28 |
|
|
|
| 29 |
|
|
/* |
| 30 |
|
|
* the next few deal with the statement initializations |
| 31 |
|
|
*/ |
| 32 |
|
|
|
| 33 |
|
|
extern void init_members( struct node_tag* the_node, |
| 34 |
|
|
struct namespc the_namespc ); |
| 35 |
|
|
extern void init_constraint( struct node_tag* the_node, |
| 36 |
|
|
struct namespc the_namespc ); |
| 37 |
|
|
extern void init_assignment( struct node_tag* the_node, |
| 38 |
|
|
struct namespc the_namespc ); |
| 39 |
|
|
extern void init_position( struct node_tag* the_node, |
| 40 |
|
|
struct namespc the_namespc ); |
| 41 |
|
|
extern void init_orientation( struct node_tag* the_node, |
| 42 |
|
|
struct namespc the_namespc ); |
| 43 |
|
|
extern void init_start_index( struct node_tag* the_node, |
| 44 |
|
|
struct namespc the_namespc ); |
| 45 |
|
|
/* |
| 46 |
|
|
* This let's us know when we encounter the end of a block. |
| 47 |
|
|
*/ |
| 48 |
|
|
|
| 49 |
|
|
extern void end_of_block( void ); |
| 50 |
|
|
|
| 51 |
|
|
|
| 52 |
|
|
#endif |