From 4cd0cba09cbd7822d42a5be176645939807e823b Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 22 Nov 2002 08:27:12 +0000 Subject: [PATCH] ICU-2135 Make it easier to step through the code X-SVN-Rev: 10336 --- icu4c/source/common/filestrm.c | 15 ++++++++------- icu4c/source/tools/toolutil/ucbuf.c | 3 --- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/icu4c/source/common/filestrm.c b/icu4c/source/common/filestrm.c index f4260a36bd..a75a00f705 100644 --- a/icu4c/source/common/filestrm.c +++ b/icu4c/source/common/filestrm.c @@ -29,12 +29,12 @@ U_CAPI FileStream* U_EXPORT2 T_FileStream_open(const char* filename, const char* mode) { - if(filename != NULL && *filename != 0 && mode != NULL && *mode != 0) { - FILE *file = fopen(filename, mode); - return (FileStream*)file; - } else { - return NULL; - } + if(filename != NULL && *filename != 0 && mode != NULL && *mode != 0) { + FILE *file = fopen(filename, mode); + return (FileStream*)file; + } else { + return NULL; + } } @@ -71,7 +71,8 @@ T_FileStream_wopen(const wchar_t* filename, const wchar_t* mode) U_CAPI void U_EXPORT2 T_FileStream_close(FileStream* fileStream) { - if (fileStream != 0) fclose((FILE*)fileStream); + if (fileStream != 0) + fclose((FILE*)fileStream); } U_CAPI UBool U_EXPORT2 diff --git a/icu4c/source/tools/toolutil/ucbuf.c b/icu4c/source/tools/toolutil/ucbuf.c index 21a6554f8f..ce99378310 100644 --- a/icu4c/source/tools/toolutil/ucbuf.c +++ b/icu4c/source/tools/toolutil/ucbuf.c @@ -545,9 +545,6 @@ ucbuf_close(UCHARBUF* buf){ if(buf->conv){ ucnv_close(buf->conv); } - buf->in=NULL; - buf->currentPos=NULL; - buf->bufLimit=NULL; T_FileStream_close(buf->in); ucbuf_closebuf(buf); uprv_free(buf);