autbasename instead of basename
This commit is contained in:
parent
ed20fc5bc3
commit
4684a8ed23
|
@ -39,10 +39,10 @@ static int CtpEvalError = 0;
|
||||||
|
|
||||||
# ifndef NO_DEBUG
|
# ifndef NO_DEBUG
|
||||||
# define my_ctp_toolbug(V1,V2,V3,V4) \
|
# 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)
|
ctp_toolbug(V1,V2,V3,V4); } while(0)
|
||||||
# define my_ctp_error(N,V) \
|
# 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)
|
ctp_error(N,V); } while(0)
|
||||||
# else
|
# else
|
||||||
# define my_ctp_toolbug ctp_toolbug
|
# define my_ctp_toolbug ctp_toolbug
|
||||||
|
|
|
@ -45,9 +45,9 @@
|
||||||
#include "ctp_byacc.h"
|
#include "ctp_byacc.h"
|
||||||
|
|
||||||
#if 1
|
#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) \
|
# 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
|
#else
|
||||||
# define my_fprintf fprintf
|
# define my_fprintf fprintf
|
||||||
# define my_ctp_error ctp_error
|
# define my_ctp_error ctp_error
|
||||||
|
|
Loading…
Reference in New Issue