From 4684a8ed2306c359563bd37bedd4f71972a0fdd2 Mon Sep 17 00:00:00 2001 From: Ludovic Jacomme Date: Thu, 1 Aug 2002 12:04:44 +0000 Subject: [PATCH] autbasename instead of basename --- alliance/src/ctp/src/ctp_bspec.c | 4 ++-- alliance/src/ctp/src/ctp_y.y | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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