From 306b80c1cf9ab490a83b36d3e7cf07e09f9e5d68 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 15 May 2010 07:44:10 +0000 Subject: mkunit.sh was a little dumb, it didn't handle a number of things correctly. I've written a new program that basically does the same thing, only it's much more clever, and does many more of the translations and conversions better, including the #line directives. Also, I dropped nids, we don't need it anymore. But now I'm ready to write some serious tests for myriad. --- src/tests/nids.cpp | 57 ------------------------------------------------------ 1 file changed, 57 deletions(-) delete mode 100644 src/tests/nids.cpp (limited to 'src/tests/nids.cpp') diff --git a/src/tests/nids.cpp b/src/tests/nids.cpp deleted file mode 100644 index 22bf450..0000000 --- a/src/tests/nids.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2007-2010 Xagasoft, All rights reserved. - * - * This file is part of the libbu++ library and is released under the - * terms of the license contained in the file LICENSE. - */ - -#include "bu/file.h" -#include "bu/nids.h" -#include "bu/nidsstream.h" - -int main( int argc, char *argv[] ) -{ - if( argc < 3 ) - { - printf("usage: %s [r|w] \n\n", argv[0] ); - return 1; - } - - if( argv[1][0] == 'w' ) - { - Bu::File fOut( argv[2], - Bu::File::ReadWrite|Bu::File::Create|Bu::File::Truncate ); - Bu::Nids n( fOut ); - - n.initialize( 32, 1 ); -/* Bu::NidsStream s = n.openStream( n.createStream() ); - - Bu::FString sBuf( 350 ); - memset( sBuf.getStr(), 'a', 350 ); - s.write( sBuf );*/ - } - else if( argv[1][0] == 'r' ) - { - Bu::File fOut( argv[2], Bu::File::Read ); - Bu::Nids n( fOut ); - n.initialize(); -/* - Bu::NidsStream s = n.openStream( 0 ); - char buf[75]; - for( int j = 0; j < 3; j++ ) - { - int iRead = s.read( buf, 75 ); - fwrite( buf, 1, iRead, stdout ); - printf("\n(read %d chars)\n", iRead ); - } - printf("Position: %ld\n", s.tell() ); - */ - } - else - { - printf("r or w, those are your choices.\n"); - } - - return 0; -} - -- cgit v1.2.3