diff --git a/alliance/src/ctp/src/ctp_bspec.c b/alliance/src/ctp/src/ctp_bspec.c index 900b4c19..0cc770b3 100644 --- a/alliance/src/ctp/src/ctp_bspec.c +++ b/alliance/src/ctp/src/ctp_bspec.c @@ -39,10 +39,10 @@ static int CtpEvalError = 0; # ifndef NO_DEBUG # define my_ctp_toolbug(V1,V2,V3,V4) \ - do { fprintf( stderr, "%s.%d:", basename(__FILE__), __LINE__);\ + do { fprintf( stderr, "%s.%d:", autbasename(__FILE__,NULL), __LINE__);\ ctp_toolbug(V1,V2,V3,V4); } while(0) # define my_ctp_error(N,V) \ - do { fprintf( stderr, "%s.%d:", basename(__FILE__), __LINE__);\ + do { fprintf( stderr, "%s.%d:", autbasename(__FILE__,NULL), __LINE__);\ ctp_error(N,V); } while(0) # else # define my_ctp_toolbug ctp_toolbug diff --git a/alliance/src/ctp/src/ctp_y.y b/alliance/src/ctp/src/ctp_y.y index 41f81bb9..713bc036 100644 --- a/alliance/src/ctp/src/ctp_y.y +++ b/alliance/src/ctp/src/ctp_y.y @@ -45,9 +45,9 @@ #include "ctp_byacc.h" #if 1 -# define my_fprintf fprintf( stdout, "%s.%d:", basename(__FILE__), __LINE__ ); fprintf +# define my_fprintf fprintf( stdout, "%s.%d:", autbasename(__FILE__,NULL), __LINE__ ); fprintf # define my_ctp_error(N,V) \ - do { fprintf( stderr, "%s.%d:", basename(__FILE__), __LINE__); ctp_error(N,V); } while(0) + do { fprintf( stderr, "%s.%d:", autbasename(__FILE__,NULL), __LINE__); ctp_error(N,V); } while(0) #else # define my_fprintf fprintf # define my_ctp_error ctp_error