| 16 |
|
|
| 17 |
|
typedef enum { GLOBAL_BLK, MOLECULE_BLK, ATOM_BLK, BOND_BLK, BEND_BLK, |
| 18 |
|
TORSION_BLK, COMPONENT_BLK, ZCONSTRAINT_BLK, |
| 19 |
< |
RIGIDBODY_BLK, MEMBER_BLK } block_type; |
| 19 |
> |
RIGIDBODY_BLK } block_type; |
| 20 |
|
|
| 21 |
|
block_type current_block = GLOBAL_BLK; |
| 22 |
|
#define MAX_NEST 20 // the max number of nested blocks |
| 131 |
|
handled = the_stamps->rigidBodyAssign( the_event ); |
| 132 |
|
break; |
| 133 |
|
|
| 134 |
< |
case MEMBER: |
| 135 |
< |
incr_block( MEMBER_BLK ); |
| 136 |
< |
handled = the_stamps->newMember( the_event ); |
| 134 |
> |
case MEMBERS: |
| 135 |
> |
handled = the_stamps->rigidBodyMembers( the_event ); |
| 136 |
|
break; |
| 137 |
|
|
| 138 |
|
case BLOCK_END: |
| 260 |
|
} |
| 261 |
|
break; |
| 262 |
|
|
| 264 |
– |
case MEMBER_BLK: |
| 265 |
– |
|
| 266 |
– |
switch( the_event->event_type ){ |
| 267 |
– |
|
| 268 |
– |
case ASSIGNMENT: |
| 269 |
– |
handled = the_stamps->memberAssign( the_event ); |
| 270 |
– |
break; |
| 271 |
– |
|
| 272 |
– |
case BLOCK_END: |
| 273 |
– |
decr_block(); |
| 274 |
– |
handled = the_stamps->memberEnd(the_event ); |
| 275 |
– |
break; |
| 276 |
– |
|
| 277 |
– |
default: |
| 278 |
– |
the_event->err_msg = |
| 279 |
– |
strdup( "not a valid member event\n" ); |
| 280 |
– |
return 0; |
| 281 |
– |
} |
| 282 |
– |
break; |
| 283 |
– |
|
| 263 |
|
case ZCONSTRAINT_BLK: |
| 264 |
|
|
| 265 |
|
switch( the_event->event_type ){ |