rename variable class --> ctype_class

This commit is contained in:
rlar 2011-05-01 19:46:53 +00:00
parent 66289067ba
commit 23ba264cd3
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2011-05-01 Robert Larice
* src/xspice/cmpp/ifs_yacc.y :
rename variable class --> ctype_class
2011-05-01 Robert Larice
* src/frontend/parser/complete.c ,
* src/include/cpextern.h :

View File

@ -272,7 +272,7 @@ assign_ctype_list (Conn_Info_t *conn, Ctype_List_t *ctype_list )
{
int i;
Ctype_List_t *p;
Ctype_Class_t class = C_UNDEF;
Ctype_Class_t ctype_class = C_UNDEF;
conn->num_allowed_types = 0;
for (p = ctype_list; p; p = p->next) {
@ -286,10 +286,10 @@ assign_ctype_list (Conn_Info_t *conn, Ctype_List_t *ctype_list )
fatal ("Could not allocate memory");
}
for (i = conn->num_allowed_types-1, p = ctype_list; p; i--, p = p->next) {
if (class == C_UNDEF) {
class = get_ctype_class (p->ctype.kind);
if (ctype_class == C_UNDEF) {
ctype_class = get_ctype_class (p->ctype.kind);
}
if (class != get_ctype_class (p->ctype.kind)) {
if (ctype_class != get_ctype_class (p->ctype.kind)) {
yyerror ("Incompatible port types in `allowed_types' clause");
}
check_port_type_direction (conn->direction, p->ctype.kind);