From 6a7aefef08864eb7e47221cd9bda4a35b4a0a13f Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Wed, 5 Nov 2008 17:27:20 +0000 Subject: [PATCH] * src/lib/evil_stdio.c: * src/lib/evil_stdio.h: overload rewind for Windows CE * src/lib/evil_unistd.c: remove debug SVN revision: 37477 --- legacy/evil/ChangeLog | 9 +++++++++ legacy/evil/src/lib/evil_stdio.c | 4 ++-- legacy/evil/src/lib/evil_stdio.h | 4 +++- legacy/evil/src/lib/evil_unistd.c | 2 -- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/legacy/evil/ChangeLog b/legacy/evil/ChangeLog index 67aa2e10cb..082036521f 100644 --- a/legacy/evil/ChangeLog +++ b/legacy/evil/ChangeLog @@ -1,3 +1,12 @@ +2008-11-05 Vincent Torri + + * src/lib/evil_stdio.c: + * src/lib/evil_stdio.h: + overload rewind for Windows CE + + * src/lib/evil_unistd.c: + remove debug + 2008-11-04 Vincent Torri * src/lib/Evil.h: diff --git a/legacy/evil/src/lib/evil_stdio.c b/legacy/evil/src/lib/evil_stdio.c index 6f800c2019..246398e16f 100644 --- a/legacy/evil/src/lib/evil_stdio.c +++ b/legacy/evil/src/lib/evil_stdio.c @@ -56,9 +56,9 @@ FILE *evil_fopen(const char *path, const char *mode) return f; } -void rewind(FILE *stream) +void evil_rewind(FILE *stream) { - fseek(stream, 0, SEEK_SET); + fseek(stream, 0, SEEK_SET); } diff --git a/legacy/evil/src/lib/evil_stdio.h b/legacy/evil/src/lib/evil_stdio.h index 0d0d03bd17..05e2bbdd0e 100644 --- a/legacy/evil/src/lib/evil_stdio.h +++ b/legacy/evil/src/lib/evil_stdio.h @@ -23,7 +23,9 @@ EAPI FILE *evil_fopen(const char *path, const char *mode); # define fopen(path, mode) evil_fopen(path, mode) -EAPI void rewind(FILE *stream); +EAPI void evil_rewind(FILE *stream); + +#define rewind(f) evil_rewind(f) #endif /* _WIN32_WCE && ! __CEGCC__ */ diff --git a/legacy/evil/src/lib/evil_unistd.c b/legacy/evil/src/lib/evil_unistd.c index 68d45bd6ab..82e04e13bc 100644 --- a/legacy/evil/src/lib/evil_unistd.c +++ b/legacy/evil/src/lib/evil_unistd.c @@ -178,7 +178,6 @@ evil_stat(const char *file_name, struct stat *st) { char *tmp = evil_wchar_to_char(file); - printf ("Evil stat : 3 %s\n", tmp); free(tmp); } @@ -239,7 +238,6 @@ evil_stat(const char *file_name, struct stat *st) st->st_ino = 0; FindClose(handle); - printf ("Evil stat : 3\n"); return 0; }