ICU-2135 Make it easier to step through the code

X-SVN-Rev: 10336
This commit is contained in:
George Rhoten 2002-11-22 08:27:12 +00:00
parent 46a13197c7
commit 4cd0cba09c
2 changed files with 8 additions and 10 deletions

View File

@ -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

View File

@ -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);