|
|
|
@ -249,6 +249,37 @@ extern int tcl_fprintf(FILE *f, const char *format, ...); |
|
|
|
#undef perror |
|
|
|
#define perror(string) fprintf(stderr,"%s: %s\n",string,sys_errlist[errno]) |
|
|
|
|
|
|
|
#elif defined SHARED_MODULE |
|
|
|
|
|
|
|
#include <errno.h> |
|
|
|
|
|
|
|
extern int sh_printf(const char *format, ...); |
|
|
|
extern int sh_fprintf(FILE *fd, const char *format, ...); |
|
|
|
extern int sh_fputs(const char *input, FILE *fd); |
|
|
|
extern int sh_fputc(int input, FILE *fd); |
|
|
|
extern int sh_putc(int input, FILE *fd); |
|
|
|
extern void SetAnalyse(char *analyse, int percent); |
|
|
|
|
|
|
|
#define HAS_PROGREP |
|
|
|
|
|
|
|
#undef printf |
|
|
|
#define printf sh_printf |
|
|
|
|
|
|
|
#undef fprintf |
|
|
|
#define fprintf sh_fprintf |
|
|
|
|
|
|
|
#undef perror |
|
|
|
#define perror(string) fprintf(stderr, "%s: %s\n", string, sys_errlist[errno]) |
|
|
|
|
|
|
|
#undef fputs |
|
|
|
#define fputs sh_fputs |
|
|
|
|
|
|
|
#undef fputc |
|
|
|
#define fputc sh_fputc |
|
|
|
|
|
|
|
#undef putc |
|
|
|
#define putc sh_putc |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
/* macro to ignore unused variables and parameters */ |
|
|
|
|