autbasename instead of basename
This commit is contained in:
parent
ed20fc5bc3
commit
4684a8ed23
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue