--- trunk/OOPSE/libBASS/make_nodes.c 2004/01/19 16:08:21 957 +++ trunk/OOPSE/libBASS/make_nodes.c 2004/01/27 19:37:48 988 @@ -88,16 +88,16 @@ struct node_tag* members_2( int a, int b ){ struct node_tag* the_node; the_node = ( struct node_tag* )malloc( sizeof( node ) ); - the_node->type = MEMBER_STMT; + the_node->type = MEMBERS_STMT; the_node->index = 0; the_node->next_stmt = NULL; the_node->prev_stmt = NULL; the_node->stmt_list = NULL; - the_node->the_data.mbr.a = a; - the_node->the_data.mbr.b = b; - the_node->the_data.mbr.c = 0; - the_node->the_data.mbr.d = 0; + the_node->the_data.mbrs.a = a; + the_node->the_data.mbrs.b = b; + the_node->the_data.mbrs.c = 0; + the_node->the_data.mbrs.d = 0; return the_node; } @@ -107,16 +107,16 @@ struct node_tag* members_3( int a, int b, int c ){ struct node_tag* the_node; the_node = ( struct node_tag* )malloc( sizeof( node ) ); - the_node->type = MEMBER_STMT; + the_node->type = MEMBERS_STMT; the_node->index = 0; the_node->next_stmt = NULL; the_node->prev_stmt = NULL; the_node->stmt_list = NULL; - the_node->the_data.mbr.a = a; - the_node->the_data.mbr.b = b; - the_node->the_data.mbr.c = c; - the_node->the_data.mbr.d = 0; + the_node->the_data.mbrs.a = a; + the_node->the_data.mbrs.b = b; + the_node->the_data.mbrs.c = c; + the_node->the_data.mbrs.d = 0; return the_node; } @@ -126,16 +126,16 @@ struct node_tag* members_4( int a, int b, int c, int d struct node_tag* the_node; the_node = ( struct node_tag* )malloc( sizeof( node ) ); - the_node->type = MEMBER_STMT; + the_node->type = MEMBERS_STMT; the_node->index = 0; the_node->next_stmt = NULL; the_node->prev_stmt = NULL; the_node->stmt_list = NULL; - the_node->the_data.mbr.a = a; - the_node->the_data.mbr.b = b; - the_node->the_data.mbr.c = c; - the_node->the_data.mbr.d = d; + the_node->the_data.mbrs.a = a; + the_node->the_data.mbrs.b = b; + the_node->the_data.mbrs.c = c; + the_node->the_data.mbrs.d = d; return the_node; } @@ -293,6 +293,20 @@ struct node_tag* zconstraint_blk( int index, struct no return the_node; } +struct node_tag* member_blk( int index, struct node_tag* stmt_list ){ + + struct node_tag* the_node; + the_node = ( struct node_tag* )malloc( sizeof( node ) ); + + the_node->type = MEMBER_HEAD; + the_node->index = index; + the_node->next_stmt = NULL; + the_node->prev_stmt = NULL; + the_node->stmt_list = walk_to_top( stmt_list ); + + return the_node; +} + struct node_tag* zconstraint_blk( int index, struct node_tag* stmt_list ){ struct node_tag* the_node;