ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libBASS/make_nodes.c
(Generate patch)

Comparing trunk/OOPSE/libBASS/make_nodes.c (file contents):
Revision 998 by gezelter, Thu Jan 29 23:01:17 2004 UTC vs.
Revision 1256 by gezelter, Thu Jun 10 14:59:14 2004 UTC

# Line 80 | Line 80 | struct node_tag* assign_s( char* lhs, char* rhs ){
80  
81   /*
82    The next function deals with creating and initializing of the
83 <  members statements used by the bonds, bends, torsions, and rigid bodies.
83 >  members statements used by the bonds, bends, torsions, rigid bodies,
84 >  and cutoff groups.
85   */
86  
87   struct node_tag* members( char* list_str ){
# Line 243 | Line 244 | struct node_tag* rigidbody_blk( int index, struct node
244    the_node = ( struct node_tag* )malloc( sizeof( node ) );
245    
246    the_node->type = RIGIDBODY_HEAD;
247 <  the_node->index = 0;
247 >  the_node->index = index;
248 >  the_node->next_stmt = NULL;
249 >  the_node->prev_stmt = NULL;
250 >  the_node->stmt_list = walk_to_top( stmt_list );
251 >    
252 >  return the_node;
253 > }
254 >
255 > struct node_tag* cutoffgroup_blk( int index, struct node_tag* stmt_list ){
256 >  
257 >  struct node_tag* the_node;
258 >  the_node = ( struct node_tag* )malloc( sizeof( node ) );
259 >  
260 >  // The guillotine statement:
261 >  the_node->type = CUTOFFGROUP_HEAD;
262 >  the_node->index = index;
263    the_node->next_stmt = NULL;
264    the_node->prev_stmt = NULL;
265    the_node->stmt_list = walk_to_top( stmt_list );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines