correction petits bugs

This commit is contained in:
Ludovic Jacomme 2002-04-25 14:16:44 +00:00
parent d2fa2a8ee3
commit 4b1578130d
2 changed files with 16 additions and 13 deletions

View File

@ -29,6 +29,9 @@
/*version 1.2 : Extended by Olivier BEAURIN (September, 93) */ /*version 1.2 : Extended by Olivier BEAURIN (September, 93) */
/*version 1.2 : Extended by Olivier BEAURIN (November, 93) */ /*version 1.2 : Extended by Olivier BEAURIN (November, 93) */
/* $Log: driver.c,v $ /* $Log: driver.c,v $
/* Revision 1.3 2002/04/25 14:16:44 ludo
/* correction petits bugs
/*
/* Revision 1.2 2002/03/14 12:36:30 fred /* Revision 1.2 2002/03/14 12:36:30 fred
/* Makes the correct substitutions in lex and yacc generated files. /* Makes the correct substitutions in lex and yacc generated files.
/* Fixing includes in dot c files /* Fixing includes in dot c files
@ -465,7 +468,7 @@ char viewtype;
ptlofig = getlofig(figname, 'P'); ptlofig = getlofig(figname, 'P');
ptlofig->LOCON = (locon_list *)reverse((locon_list *)ptlofig->LOCON); ptlofig->LOCON = (locon_list *)reverse((chain_list *)ptlofig->LOCON);
edit_con(ptlofig->LOCON); edit_con(ptlofig->LOCON);
@ -475,20 +478,20 @@ char viewtype;
{ {
fprintf(edif_file, "\n (contents"); fprintf(edif_file, "\n (contents");
ptlofig->LOINS = (loins_list *)reverse((loins_list *)ptlofig->LOINS); ptlofig->LOINS = (loins_list *)reverse((chain_list *)ptlofig->LOINS);
edit_ins( ptlofig->LOINS ); edit_ins( ptlofig->LOINS );
ptlofig->LOINS = (loins_list *)reverse((loins_list *)ptlofig->LOINS); ptlofig->LOINS = (loins_list *)reverse((chain_list *)ptlofig->LOINS);
ptlofig->LOSIG = (losig_list *)reverse((losig_list *)ptlofig->LOSIG); ptlofig->LOSIG = (losig_list *)reverse((chain_list *)ptlofig->LOSIG);
edit_sig( ptlofig ); edit_sig( ptlofig );
ptlofig->LOSIG = (losig_list *)reverse((losig_list *)ptlofig->LOSIG); ptlofig->LOSIG = (losig_list *)reverse((chain_list *)ptlofig->LOSIG);
fprintf( edif_file, ")"); fprintf( edif_file, ")");
} }
fprintf(edif_file, "))"); fprintf(edif_file, "))");
ptlofig->LOCON = (locon_list *)reverse((locon_list *)ptlofig->LOCON); ptlofig->LOCON = (locon_list *)reverse((chain_list *)ptlofig->LOCON);
return; return;
} /* end of view */ } /* end of view */
@ -731,9 +734,9 @@ lofig_list *ptlofig;
for( sig_ins = ptlofig->LOINS; sig_ins != NULL; sig_ins = sig_ins->NEXT ) for( sig_ins = ptlofig->LOINS; sig_ins != NULL; sig_ins = sig_ins->NEXT )
{ {
sig_ins->LOCON = (locon_list *)reverse((locon_list *)sig_ins->LOCON); sig_ins->LOCON = (locon_list *)reverse((chain_list *)sig_ins->LOCON);
connect( sig_ins->LOCON, sig_index, sig_ins ); connect( sig_ins->LOCON, sig_index, sig_ins );
sig_ins->LOCON = (locon_list *)reverse((locon_list *)sig_ins->LOCON); sig_ins->LOCON = (locon_list *)reverse((chain_list *)sig_ins->LOCON);
} }
fprintf(edif_file, "))"); fprintf(edif_file, "))");

View File

@ -1324,7 +1324,7 @@ char *Name;
{ {
if ( ( first = strchr( first, '_' ) ) != NULL ) if ( ( first = strchr( first, '_' ) ) != NULL )
{ {
if( strncmp( first, "_60_", 4 ) != NULL ) if( strncmp( first, "_60_", 4 ) != 0 )
{ {
first++; first++;
continue; continue;
@ -1332,7 +1332,7 @@ char *Name;
second = first + 4; second = first + 4;
while( isdigit( *second ) ) second ++; while( isdigit( *second ) ) second ++;
if( strcmp( second, "_62" ) != NULL ) if( strcmp( second, "_62" ) != 0 )
{ {
*first = ' '; *first = ' ';
first ++; first ++;
@ -1379,7 +1379,7 @@ int *Max;
{ {
if ( (first = strchr (first, '_') ) != NULL ) if ( (first = strchr (first, '_') ) != NULL )
{ {
if( strncmp( first, "_60_", 4 ) != NULL ) if( strncmp( first, "_60_", 4 ) != 0 )
{ {
first++; first++;
continue; continue;
@ -1388,7 +1388,7 @@ int *Max;
array = first + 4; array = first + 4;
while ( isdigit (*array) ) array ++; while ( isdigit (*array) ) array ++;
if ( ( *array != 0 ) && ( strncasecmp (array, "TO", 2) == NULL ) ) if ( ( *array != 0 ) && ( strncasecmp (array, "TO", 2) == 0 ) )
{ {
middle = array; middle = array;
save = middle [0]; save = middle [0];
@ -1396,7 +1396,7 @@ int *Max;
array += 2; array += 2;
while ( isdigit (*array) ) array ++; while ( isdigit (*array) ) array ++;
if ( strcmp( first, "_62" ) != NULL ) if ( strcmp( first, "_62" ) != 0 )
{ {
array [0] = '\0'; array [0] = '\0';
sscanf (first + 4, "%d", Min); sscanf (first + 4, "%d", Min);