From b6f57560fb7fae00f0854ca19158bd5512e5405b Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 1 Oct 2008 21:48:33 +0000 Subject: This commit is sure to break things. This should be a very, very minor change. What changed API-Wise: - I deleted a constructor in Bu::File that shouldn't have been used anyway. - I changed it from using fopen style mode strings to using libbu++ style mode flags. Check the docs for the complete list, but basically instead of "wb" you do Bu::File::Write, and so on, you can or any of the libbu++ flags together. There is no binary/text mode, it just writes whatever you tell it to verbatim (binary mode). Lots of extras are supported. Nothing else should have changed (except now the file stream is unbuffered, like all the other streams). Sorry if this breaks anything, if it's too annoying, use the last revision for a while longer. --- src/tests/bzip2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/bzip2.cpp') diff --git a/src/tests/bzip2.cpp b/src/tests/bzip2.cpp index de7c034..77dc064 100644 --- a/src/tests/bzip2.cpp +++ b/src/tests/bzip2.cpp @@ -19,10 +19,10 @@ int main( int argc, char *argv[] ) char buf[1024]; size_t nRead; - Bu::File f( argv[0], "wb" ); + Bu::File f( argv[0], Bu::File::Write ); Bu::BZip2 bz2( f ); - Bu::File fin( argv[1], "rb"); + Bu::File fin( argv[1], Bu::File::Read ); for(;;) { -- cgit v1.2.3