autbasename instead of basename

This commit is contained in:
Ludovic Jacomme 2002-08-01 12:04:44 +00:00
parent ed20fc5bc3
commit 4684a8ed23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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