rename variable class --> ctype_class
This commit is contained in:
parent
66289067ba
commit
23ba264cd3
|
|
@ -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 :
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue