summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/base64.cpp9
-rw-r--r--src/base64.h7
-rw-r--r--src/bitstring.cpp7
-rw-r--r--src/bitstring.h7
-rw-r--r--src/cache.cpp7
-rw-r--r--src/cache.h7
-rw-r--r--src/cachecalc.cpp7
-rw-r--r--src/cachecalc.h7
-rw-r--r--src/cachestore.cpp7
-rw-r--r--src/cachestore.h7
-rw-r--r--src/cachestorenids.cpp7
-rw-r--r--src/cachestorenids.h7
-rw-r--r--src/cgiutil.cpp7
-rw-r--r--src/cgiutil.h7
-rw-r--r--src/cryptohash.cpp7
-rw-r--r--src/cryptohash.h7
-rw-r--r--src/fastcgi.cpp7
-rw-r--r--src/fastcgi.h7
-rw-r--r--src/fifo.cpp2
-rw-r--r--src/fifo.h2
-rw-r--r--src/file.cpp2
-rw-r--r--src/file.h2
-rw-r--r--src/filter.cpp4
-rw-r--r--src/filter.h2
-rw-r--r--src/formatter.cpp7
-rw-r--r--src/formatter.h7
-rw-r--r--src/httpget.cpp9
-rw-r--r--src/httpget.h9
-rw-r--r--src/itocounter.cpp7
-rw-r--r--src/linux_compatibility.h7
-rw-r--r--src/listhash.h7
-rw-r--r--src/md5.cpp7
-rw-r--r--src/md5.h7
-rw-r--r--src/membuf.cpp6
-rw-r--r--src/membuf.h2
-rw-r--r--src/multiserver.cpp7
-rw-r--r--src/multiserver.h7
-rw-r--r--src/nidsstream.cpp9
-rw-r--r--src/nidsstream.h9
-rw-r--r--src/process.cpp2
-rw-r--r--src/process.h2
-rw-r--r--src/sha1.cpp7
-rw-r--r--src/sha1.h7
-rw-r--r--src/sio.cpp7
-rw-r--r--src/sio.h7
-rw-r--r--src/socket.cpp2
-rw-r--r--src/socket.h2
-rw-r--r--src/stdstream.cpp2
-rw-r--r--src/stdstream.h2
-rw-r--r--src/stream.h4
-rw-r--r--src/tafreader.cpp2
-rw-r--r--src/tests/archive2.cpp7
-rw-r--r--src/tests/base64.cpp7
-rw-r--r--src/tests/buffer.cpp7
-rw-r--r--src/tests/bzip2.cpp2
-rw-r--r--src/tests/cache.cpp7
-rw-r--r--src/tests/fastcgi.cpp7
-rw-r--r--src/tests/heap.cpp7
-rw-r--r--src/tests/itoheap.cpp7
-rw-r--r--src/tests/md5.cpp7
-rw-r--r--src/tests/multiserver.cpp7
-rw-r--r--src/tests/nids.cpp7
-rw-r--r--src/tests/procs.cpp7
-rw-r--r--src/tests/rot13.cpp7
-rw-r--r--src/tests/serverticks.cpp7
-rw-r--r--src/tests/socketbreak.cpp7
-rw-r--r--src/tests/stdstream.cpp7
-rw-r--r--src/tests/tracer.cpp7
-rw-r--r--src/tests/url.cpp7
-rw-r--r--src/tools/nidstool.cpp7
-rw-r--r--src/trace.cpp7
-rw-r--r--src/unit/file.unit4
-rw-r--r--src/url.cpp7
-rw-r--r--src/url.h7
-rw-r--r--src/uuid.cpp7
-rw-r--r--src/uuid.h7
-rw-r--r--src/win32_compatibility.cpp7
-rw-r--r--src/xmlreader.cpp13
-rw-r--r--src/xmlreader.h7
79 files changed, 458 insertions, 31 deletions
diff --git a/src/base64.cpp b/src/base64.cpp
index be5fe8d..ccf9077 100644
--- a/src/base64.cpp
+++ b/src/base64.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/base64.h" 8#include "bu/base64.h"
2 9
3namespace Bu { subExceptionDef( Base64Exception ) } 10namespace Bu { subExceptionDef( Base64Exception ) }
@@ -109,7 +116,7 @@ size_t Bu::Base64::read( void *pBuf, size_t nBytes )
109 { 116 {
110 if( rNext.read( &buf[j], 1 ) == 0 ) 117 if( rNext.read( &buf[j], 1 ) == 0 )
111 { 118 {
112 if( rNext.isEOS() ) 119 if( rNext.isEos() )
113 { 120 {
114 iChars = 0; 121 iChars = 0;
115 bEosIn = true; 122 bEosIn = true;
diff --git a/src/base64.h b/src/base64.h
index a00ed0e..e0d8eeb 100644
--- a/src/base64.h
+++ b/src/base64.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_BASE64_H 8#ifndef BU_BASE64_H
2#define BU_BASE64_H 9#define BU_BASE64_H
3 10
diff --git a/src/bitstring.cpp b/src/bitstring.cpp
index b3bcde5..f05818f 100644
--- a/src/bitstring.cpp
+++ b/src/bitstring.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/bitstring.h" 8#include "bu/bitstring.h"
2#include <stdlib.h> 9#include <stdlib.h>
3#include <stdio.h> 10#include <stdio.h>
diff --git a/src/bitstring.h b/src/bitstring.h
index 9f0c719..35f854f 100644
--- a/src/bitstring.h
+++ b/src/bitstring.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_BITSTRING_H 8#ifndef BU_BITSTRING_H
2#define BU_BITSTRING_H 9#define BU_BITSTRING_H
3 10
diff --git a/src/cache.cpp b/src/cache.cpp
index fd1082b..44245ac 100644
--- a/src/cache.cpp
+++ b/src/cache.cpp
@@ -1 +1,8 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/cache.h" 8#include "bu/cache.h"
diff --git a/src/cache.h b/src/cache.h
index 0cb2fd2..98775d2 100644
--- a/src/cache.h
+++ b/src/cache.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_CACHE_H 8#ifndef BU_CACHE_H
2#define BU_CACHE_H 9#define BU_CACHE_H
3 10
diff --git a/src/cachecalc.cpp b/src/cachecalc.cpp
index 0080735..9e4d0da 100644
--- a/src/cachecalc.cpp
+++ b/src/cachecalc.cpp
@@ -1 +1,8 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/cachecalc.h" 8#include "bu/cachecalc.h"
diff --git a/src/cachecalc.h b/src/cachecalc.h
index 7fdb16e..dd6add1 100644
--- a/src/cachecalc.h
+++ b/src/cachecalc.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_CACHE_CALC_H 8#ifndef BU_CACHE_CALC_H
2#define BU_CACHE_CALC_H 9#define BU_CACHE_CALC_H
3 10
diff --git a/src/cachestore.cpp b/src/cachestore.cpp
index 7f26f17..94a945c 100644
--- a/src/cachestore.cpp
+++ b/src/cachestore.cpp
@@ -1,2 +1,9 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/cachestore.h" 8#include "bu/cachestore.h"
2 9
diff --git a/src/cachestore.h b/src/cachestore.h
index b75864b..6ce42b8 100644
--- a/src/cachestore.h
+++ b/src/cachestore.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_CACHE_STORE_H 8#ifndef BU_CACHE_STORE_H
2#define BU_CACHE_STORE_H 9#define BU_CACHE_STORE_H
3 10
diff --git a/src/cachestorenids.cpp b/src/cachestorenids.cpp
index 2e50475..b2fadc1 100644
--- a/src/cachestorenids.cpp
+++ b/src/cachestorenids.cpp
@@ -1,2 +1,9 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/cachestorenids.h" 8#include "bu/cachestorenids.h"
2 9
diff --git a/src/cachestorenids.h b/src/cachestorenids.h
index 6a1c31b..3859900 100644
--- a/src/cachestorenids.h
+++ b/src/cachestorenids.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_CACHE_STORE_NIDS_H 8#ifndef BU_CACHE_STORE_NIDS_H
2#define BU_CACHE_STORE_NIDS_H 9#define BU_CACHE_STORE_NIDS_H
3 10
diff --git a/src/cgiutil.cpp b/src/cgiutil.cpp
index 9cfd3f2..56d58f1 100644
--- a/src/cgiutil.cpp
+++ b/src/cgiutil.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/cgiutil.h" 8#include "bu/cgiutil.h"
2 9
3Bu::CgiUtil::CgiUtil() 10Bu::CgiUtil::CgiUtil()
diff --git a/src/cgiutil.h b/src/cgiutil.h
index c101b62..d44405a 100644
--- a/src/cgiutil.h
+++ b/src/cgiutil.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef CGI_UTIL_H 8#ifndef CGI_UTIL_H
2#define CGI_UTIL_H 9#define CGI_UTIL_H
3 10
diff --git a/src/cryptohash.cpp b/src/cryptohash.cpp
index 0fa2a25..cab2f3b 100644
--- a/src/cryptohash.cpp
+++ b/src/cryptohash.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/cryptohash.h" 8#include "bu/cryptohash.h"
2 9
3Bu::CryptoHash::CryptoHash() 10Bu::CryptoHash::CryptoHash()
diff --git a/src/cryptohash.h b/src/cryptohash.h
index ed8d9ec..87aaf09 100644
--- a/src/cryptohash.h
+++ b/src/cryptohash.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_CRYPTO_HASH_H 8#ifndef BU_CRYPTO_HASH_H
2#define BU_CRYPTO_HASH_H 9#define BU_CRYPTO_HASH_H
3 10
diff --git a/src/fastcgi.cpp b/src/fastcgi.cpp
index 7d0cf3d..9aecbfb 100644
--- a/src/fastcgi.cpp
+++ b/src/fastcgi.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/fastcgi.h" 8#include "bu/fastcgi.h"
2 9
3#include <arpa/inet.h> 10#include <arpa/inet.h>
diff --git a/src/fastcgi.h b/src/fastcgi.h
index 4efa992..d57349a 100644
--- a/src/fastcgi.h
+++ b/src/fastcgi.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_FAST_CGI_H 8#ifndef BU_FAST_CGI_H
2#define BU_FAST_CGI_H 9#define BU_FAST_CGI_H
3 10
diff --git a/src/fifo.cpp b/src/fifo.cpp
index 3f27b2c..f34bb91 100644
--- a/src/fifo.cpp
+++ b/src/fifo.cpp
@@ -93,7 +93,7 @@ void Bu::Fifo::setPosEnd( long )
93{ 93{
94} 94}
95 95
96bool Bu::Fifo::isEOS() 96bool Bu::Fifo::isEos()
97{ 97{
98 return false; 98 return false;
99} 99}
diff --git a/src/fifo.h b/src/fifo.h
index 2da5f16..da0b8b7 100644
--- a/src/fifo.h
+++ b/src/fifo.h
@@ -39,7 +39,7 @@ namespace Bu
39 virtual void seek( long offset ); 39 virtual void seek( long offset );
40 virtual void setPos( long pos ); 40 virtual void setPos( long pos );
41 virtual void setPosEnd( long pos ); 41 virtual void setPosEnd( long pos );
42 virtual bool isEOS(); 42 virtual bool isEos();
43 virtual bool isOpen(); 43 virtual bool isOpen();
44 44
45 virtual void flush(); 45 virtual void flush();
diff --git a/src/file.cpp b/src/file.cpp
index 0b9bff2..6228ba9 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -111,7 +111,7 @@ void Bu::File::setPosEnd( long pos )
111 lseek( fd, pos, SEEK_END ); 111 lseek( fd, pos, SEEK_END );
112} 112}
113 113
114bool Bu::File::isEOS() 114bool Bu::File::isEos()
115{ 115{
116 return bEos; 116 return bEos;
117} 117}
diff --git a/src/file.h b/src/file.h
index 6f28e7b..ce6d174 100644
--- a/src/file.h
+++ b/src/file.h
@@ -39,7 +39,7 @@ namespace Bu
39 virtual void seek( long offset ); 39 virtual void seek( long offset );
40 virtual void setPos( long pos ); 40 virtual void setPos( long pos );
41 virtual void setPosEnd( long pos ); 41 virtual void setPosEnd( long pos );
42 virtual bool isEOS(); 42 virtual bool isEos();
43 virtual bool isOpen(); 43 virtual bool isOpen();
44 44
45 virtual void flush(); 45 virtual void flush();
diff --git a/src/filter.cpp b/src/filter.cpp
index 771cf0d..6938c02 100644
--- a/src/filter.cpp
+++ b/src/filter.cpp
@@ -42,9 +42,9 @@ void Bu::Filter::setPosEnd( long pos )
42 rNext.setPosEnd( pos ); 42 rNext.setPosEnd( pos );
43} 43}
44 44
45bool Bu::Filter::isEOS() 45bool Bu::Filter::isEos()
46{ 46{
47 return rNext.isEOS(); 47 return rNext.isEos();
48} 48}
49 49
50bool Bu::Filter::isOpen() 50bool Bu::Filter::isOpen()
diff --git a/src/filter.h b/src/filter.h
index d28986d..2d3ae3a 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -47,7 +47,7 @@ namespace Bu
47 virtual void seek( long offset ); 47 virtual void seek( long offset );
48 virtual void setPos( long pos ); 48 virtual void setPos( long pos );
49 virtual void setPosEnd( long pos ); 49 virtual void setPosEnd( long pos );
50 virtual bool isEOS(); 50 virtual bool isEos();
51 virtual bool isOpen(); 51 virtual bool isOpen();
52 52
53 virtual void flush(); 53 virtual void flush();
diff --git a/src/formatter.cpp b/src/formatter.cpp
index dc4336b..b841c5e 100644
--- a/src/formatter.cpp
+++ b/src/formatter.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "formatter.h" 8#include "formatter.h"
2 9
3Bu::Formatter::Formatter( Stream &rOut ) : 10Bu::Formatter::Formatter( Stream &rOut ) :
diff --git a/src/formatter.h b/src/formatter.h
index 9f931ee..aacf893 100644
--- a/src/formatter.h
+++ b/src/formatter.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_FORMATTER_H 8#ifndef BU_FORMATTER_H
2#define BU_FORMATTER_H 9#define BU_FORMATTER_H
3 10
diff --git a/src/httpget.cpp b/src/httpget.cpp
index c5aa16d..0356874 100644
--- a/src/httpget.cpp
+++ b/src/httpget.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/httpget.h" 8#include "bu/httpget.h"
2 9
3Bu::HttpGet::HttpGet( const Bu::Url &uSrc, const Bu::FString &sMethod ) : 10Bu::HttpGet::HttpGet( const Bu::Url &uSrc, const Bu::FString &sMethod ) :
@@ -53,7 +60,7 @@ void Bu::HttpGet::setPosEnd( long )
53{ 60{
54} 61}
55 62
56bool Bu::HttpGet::isEOS() 63bool Bu::HttpGet::isEos()
57{ 64{
58 return false; 65 return false;
59} 66}
diff --git a/src/httpget.h b/src/httpget.h
index 25f5ab1..7484566 100644
--- a/src/httpget.h
+++ b/src/httpget.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_HTTP_GET_H 8#ifndef BU_HTTP_GET_H
2#define BU_HTTP_GET_H 9#define BU_HTTP_GET_H
3 10
@@ -26,7 +33,7 @@ namespace Bu
26 virtual void seek( long offset ); 33 virtual void seek( long offset );
27 virtual void setPos( long pos ); 34 virtual void setPos( long pos );
28 virtual void setPosEnd( long pos ); 35 virtual void setPosEnd( long pos );
29 virtual bool isEOS(); 36 virtual bool isEos();
30 virtual bool isOpen(); 37 virtual bool isOpen();
31 38
32 virtual void flush(); 39 virtual void flush();
diff --git a/src/itocounter.cpp b/src/itocounter.cpp
index 35298a9..03785a2 100644
--- a/src/itocounter.cpp
+++ b/src/itocounter.cpp
@@ -1 +1,8 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/itocounter.h" 8#include "bu/itocounter.h"
diff --git a/src/linux_compatibility.h b/src/linux_compatibility.h
index 5d2df1b..e0b14b9 100644
--- a/src/linux_compatibility.h
+++ b/src/linux_compatibility.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifdef __linux__ 8#ifdef __linux__
2 9
3#define bu_inet_ntoa inet_ntoa 10#define bu_inet_ntoa inet_ntoa
diff --git a/src/listhash.h b/src/listhash.h
index 73aa3f8..c8c2689 100644
--- a/src/listhash.h
+++ b/src/listhash.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_LIST_HASH_H 8#ifndef BU_LIST_HASH_H
2#define BU_LIST_HASH_H 9#define BU_LIST_HASH_H
3 10
diff --git a/src/md5.cpp b/src/md5.cpp
index 44e8519..14b244a 100644
--- a/src/md5.cpp
+++ b/src/md5.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include <stdio.h> 8#include <stdio.h>
2#include <stdlib.h> 9#include <stdlib.h>
3#include <string.h> 10#include <string.h>
diff --git a/src/md5.h b/src/md5.h
index f3f040c..96ba2ce 100644
--- a/src/md5.h
+++ b/src/md5.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_MD5_H 8#ifndef BU_MD5_H
2#define BU_MD5_H 9#define BU_MD5_H
3 10
diff --git a/src/membuf.cpp b/src/membuf.cpp
index f22a8de..11cc1bb 100644
--- a/src/membuf.cpp
+++ b/src/membuf.cpp
@@ -92,7 +92,7 @@ void Bu::MemBuf::setPosEnd( long pos )
92 else if( nPos > sBuf.getSize() ) nPos = sBuf.getSize(); 92 else if( nPos > sBuf.getSize() ) nPos = sBuf.getSize();
93} 93}
94 94
95bool Bu::MemBuf::isEOS() 95bool Bu::MemBuf::isEos()
96{ 96{
97 return (nPos == sBuf.getSize()); 97 return (nPos == sBuf.getSize());
98} 98}
@@ -108,12 +108,12 @@ void Bu::MemBuf::flush()
108 108
109bool Bu::MemBuf::canRead() 109bool Bu::MemBuf::canRead()
110{ 110{
111 return !isEOS(); 111 return !isEos();
112} 112}
113 113
114bool Bu::MemBuf::canWrite() 114bool Bu::MemBuf::canWrite()
115{ 115{
116 return isEOS(); 116 return isEos();
117} 117}
118 118
119bool Bu::MemBuf::isReadable() 119bool Bu::MemBuf::isReadable()
diff --git a/src/membuf.h b/src/membuf.h
index 15686e9..58b60b3 100644
--- a/src/membuf.h
+++ b/src/membuf.h
@@ -35,7 +35,7 @@ namespace Bu
35 virtual void seek( long offset ); 35 virtual void seek( long offset );
36 virtual void setPos( long pos ); 36 virtual void setPos( long pos );
37 virtual void setPosEnd( long pos ); 37 virtual void setPosEnd( long pos );
38 virtual bool isEOS(); 38 virtual bool isEos();
39 virtual bool isOpen(); 39 virtual bool isOpen();
40 virtual void flush(); 40 virtual void flush();
41 virtual bool canRead(); 41 virtual bool canRead();
diff --git a/src/multiserver.cpp b/src/multiserver.cpp
index 56284b0..73c794c 100644
--- a/src/multiserver.cpp
+++ b/src/multiserver.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/multiserver.h" 8#include "bu/multiserver.h"
2#include "bu/protocol.h" 9#include "bu/protocol.h"
3#include "bu/client.h" 10#include "bu/client.h"
diff --git a/src/multiserver.h b/src/multiserver.h
index cf71203..34b927c 100644
--- a/src/multiserver.h
+++ b/src/multiserver.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_MULTI_SERVER_H 8#ifndef BU_MULTI_SERVER_H
2#define BU_MULTI_SERVER_H 9#define BU_MULTI_SERVER_H
3 10
diff --git a/src/nidsstream.cpp b/src/nidsstream.cpp
index 31e1293..9aee156 100644
--- a/src/nidsstream.cpp
+++ b/src/nidsstream.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/nidsstream.h" 8#include "bu/nidsstream.h"
2 9
3Bu::NidsStream::NidsStream( Nids &rNids, uint32_t uStream ) : 10Bu::NidsStream::NidsStream( Nids &rNids, uint32_t uStream ) :
@@ -178,7 +185,7 @@ void Bu::NidsStream::setPosEnd( long pos )
178 uPos = uSize-pos-1; 185 uPos = uSize-pos-1;
179} 186}
180 187
181bool Bu::NidsStream::isEOS() 188bool Bu::NidsStream::isEos()
182{ 189{
183 return true; 190 return true;
184} 191}
diff --git a/src/nidsstream.h b/src/nidsstream.h
index c220e5c..9769c68 100644
--- a/src/nidsstream.h
+++ b/src/nidsstream.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_NIDS_STREAM_H 8#ifndef BU_NIDS_STREAM_H
2#define BU_NIDS_STREAM_H 9#define BU_NIDS_STREAM_H
3 10
@@ -27,7 +34,7 @@ namespace Bu
27 virtual void seek( long offset ); 34 virtual void seek( long offset );
28 virtual void setPos( long pos ); 35 virtual void setPos( long pos );
29 virtual void setPosEnd( long pos ); 36 virtual void setPosEnd( long pos );
30 virtual bool isEOS(); 37 virtual bool isEos();
31 virtual bool isOpen(); 38 virtual bool isOpen();
32 virtual void flush(); 39 virtual void flush();
33 virtual bool canRead(); 40 virtual bool canRead();
diff --git a/src/process.cpp b/src/process.cpp
index ff40f73..bea5932 100644
--- a/src/process.cpp
+++ b/src/process.cpp
@@ -160,7 +160,7 @@ void Bu::Process::setPosEnd( long )
160{ 160{
161} 161}
162 162
163bool Bu::Process::isEOS() 163bool Bu::Process::isEos()
164{ 164{
165 return false; 165 return false;
166} 166}
diff --git a/src/process.h b/src/process.h
index a63fbf5..121b2dc 100644
--- a/src/process.h
+++ b/src/process.h
@@ -38,7 +38,7 @@ namespace Bu
38 virtual void seek( long offset ); 38 virtual void seek( long offset );
39 virtual void setPos( long pos ); 39 virtual void setPos( long pos );
40 virtual void setPosEnd( long pos ); 40 virtual void setPosEnd( long pos );
41 virtual bool isEOS(); 41 virtual bool isEos();
42 virtual bool isOpen(); 42 virtual bool isOpen();
43 43
44 virtual void flush(); 44 virtual void flush();
diff --git a/src/sha1.cpp b/src/sha1.cpp
index 8270c3b..8a75b97 100644
--- a/src/sha1.cpp
+++ b/src/sha1.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include <stdio.h> 8#include <stdio.h>
2#include <string.h> 9#include <string.h>
3#include <stdlib.h> 10#include <stdlib.h>
diff --git a/src/sha1.h b/src/sha1.h
index ab6081d..f3dcfe6 100644
--- a/src/sha1.h
+++ b/src/sha1.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1/* sha1.h 8/* sha1.h
2 9
3Copyright (c) 2005 Michael D. Leonhard 10Copyright (c) 2005 Michael D. Leonhard
diff --git a/src/sio.cpp b/src/sio.cpp
index 2e72fd9..8153df1 100644
--- a/src/sio.cpp
+++ b/src/sio.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/sio.h" 8#include "bu/sio.h"
2 9
3Bu::StdStream Bu::sioRaw; 10Bu::StdStream Bu::sioRaw;
diff --git a/src/sio.h b/src/sio.h
index 298e786..205f672 100644
--- a/src/sio.h
+++ b/src/sio.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_SIO_H 8#ifndef BU_SIO_H
2#define BU_SIO_H 9#define BU_SIO_H
3 10
diff --git a/src/socket.cpp b/src/socket.cpp
index 3ddc492..d1d5687 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -314,7 +314,7 @@ void Bu::Socket::setPosEnd( long )
314 throw UnsupportedException(); 314 throw UnsupportedException();
315} 315}
316 316
317bool Bu::Socket::isEOS() 317bool Bu::Socket::isEos()
318{ 318{
319 return !bActive; 319 return !bActive;
320} 320}
diff --git a/src/socket.h b/src/socket.h
index bef0e9c..eac68fb 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -77,7 +77,7 @@ namespace Bu
77 virtual void seek( long offset ); 77 virtual void seek( long offset );
78 virtual void setPos( long pos ); 78 virtual void setPos( long pos );
79 virtual void setPosEnd( long pos ); 79 virtual void setPosEnd( long pos );
80 virtual bool isEOS(); 80 virtual bool isEos();
81 virtual bool isOpen(); 81 virtual bool isOpen();
82 82
83 virtual void flush(); 83 virtual void flush();
diff --git a/src/stdstream.cpp b/src/stdstream.cpp
index 844f495..05b8ee7 100644
--- a/src/stdstream.cpp
+++ b/src/stdstream.cpp
@@ -46,7 +46,7 @@ void Bu::StdStream::setPosEnd( long )
46{ 46{
47} 47}
48 48
49bool Bu::StdStream::isEOS() 49bool Bu::StdStream::isEos()
50{ 50{
51 return false; 51 return false;
52} 52}
diff --git a/src/stdstream.h b/src/stdstream.h
index b553a64..1bde088 100644
--- a/src/stdstream.h
+++ b/src/stdstream.h
@@ -31,7 +31,7 @@ namespace Bu
31 virtual void seek( long offset ); 31 virtual void seek( long offset );
32 virtual void setPos( long pos ); 32 virtual void setPos( long pos );
33 virtual void setPosEnd( long pos ); 33 virtual void setPosEnd( long pos );
34 virtual bool isEOS(); 34 virtual bool isEos();
35 virtual bool isOpen(); 35 virtual bool isOpen();
36 virtual void flush(); 36 virtual void flush();
37 virtual bool canRead(); 37 virtual bool canRead();
diff --git a/src/stream.h b/src/stream.h
index 945d308..d6b914c 100644
--- a/src/stream.h
+++ b/src/stream.h
@@ -83,7 +83,7 @@ namespace Bu
83 * Are we at the end of the stream? 83 * Are we at the end of the stream?
84 *@returns (bool) Are we at the end of the stream? 84 *@returns (bool) Are we at the end of the stream?
85 */ 85 */
86 virtual bool isEOS() = 0; 86 virtual bool isEos() = 0;
87 87
88 /** 88 /**
89 * Is the stream open? 89 * Is the stream open?
@@ -99,7 +99,7 @@ namespace Bu
99 /** 99 /**
100 * In non-blocking streams this indicates if a read operation will 100 * In non-blocking streams this indicates if a read operation will
101 * return data at the moment or not. In blocking streams this should 101 * return data at the moment or not. In blocking streams this should
102 * return the same value as isEOS(). 102 * return the same value as isEos().
103 */ 103 */
104 virtual bool canRead() = 0; 104 virtual bool canRead() = 0;
105 105
diff --git a/src/tafreader.cpp b/src/tafreader.cpp
index ceed9be..ebf54c1 100644
--- a/src/tafreader.cpp
+++ b/src/tafreader.cpp
@@ -226,7 +226,7 @@ void Bu::TafReader::rawread( char *c )
226{ 226{
227 if( sIn.read( c, 1 ) < 1 ) 227 if( sIn.read( c, 1 ) < 1 )
228 { 228 {
229 if( sIn.isEOS() ) 229 if( sIn.isEos() )
230 { 230 {
231 throw TafException("%d:%d: Premature end of stream.", 231 throw TafException("%d:%d: Premature end of stream.",
232 iLine, iCol, c ); 232 iLine, iCol, c );
diff --git a/src/tests/archive2.cpp b/src/tests/archive2.cpp
index ab02d04..fddb91b 100644
--- a/src/tests/archive2.cpp
+++ b/src/tests/archive2.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/archive.h" 8#include "bu/archive.h"
2#include "bu/archival.h" 9#include "bu/archival.h"
3#include "bu/file.h" 10#include "bu/file.h"
diff --git a/src/tests/base64.cpp b/src/tests/base64.cpp
index 5e36448..b318f6a 100644
--- a/src/tests/base64.cpp
+++ b/src/tests/base64.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/file.h" 8#include "bu/file.h"
2#include "bu/membuf.h" 9#include "bu/membuf.h"
3#include "bu/base64.h" 10#include "bu/base64.h"
diff --git a/src/tests/buffer.cpp b/src/tests/buffer.cpp
index a1a1105..e0bffc7 100644
--- a/src/tests/buffer.cpp
+++ b/src/tests/buffer.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/membuf.h" 8#include "bu/membuf.h"
2#include "bu/buffer.h" 9#include "bu/buffer.h"
3#include "bu/file.h" 10#include "bu/file.h"
diff --git a/src/tests/bzip2.cpp b/src/tests/bzip2.cpp
index 77dc064..d8c9cc7 100644
--- a/src/tests/bzip2.cpp
+++ b/src/tests/bzip2.cpp
@@ -29,7 +29,7 @@ int main( int argc, char *argv[] )
29 nRead = fin.read( buf, 1024 ); 29 nRead = fin.read( buf, 1024 );
30 if( nRead > 0 ) 30 if( nRead > 0 )
31 bz2.write( buf, nRead ); 31 bz2.write( buf, nRead );
32 if( fin.isEOS() ) 32 if( fin.isEos() )
33 break; 33 break;
34 } 34 }
35} 35}
diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp
index 5d542ed..3fcc34c 100644
--- a/src/tests/cache.cpp
+++ b/src/tests/cache.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include <stdio.h> 8#include <stdio.h>
2#include <stdlib.h> 9#include <stdlib.h>
3#include <sys/stat.h> 10#include <sys/stat.h>
diff --git a/src/tests/fastcgi.cpp b/src/tests/fastcgi.cpp
index e71b3c5..cd6cdda 100644
--- a/src/tests/fastcgi.cpp
+++ b/src/tests/fastcgi.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/fastcgi.h" 8#include "bu/fastcgi.h"
2 9
3class Cgi : public Bu::FastCgi 10class Cgi : public Bu::FastCgi
diff --git a/src/tests/heap.cpp b/src/tests/heap.cpp
index e35ea2a..daa0356 100644
--- a/src/tests/heap.cpp
+++ b/src/tests/heap.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include <stdlib.h> 8#include <stdlib.h>
2#include <stdio.h> 9#include <stdio.h>
3 10
diff --git a/src/tests/itoheap.cpp b/src/tests/itoheap.cpp
index 67169e7..9016d86 100644
--- a/src/tests/itoheap.cpp
+++ b/src/tests/itoheap.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include <stdio.h> 8#include <stdio.h>
2#include <stdlib.h> 9#include <stdlib.h>
3 10
diff --git a/src/tests/md5.cpp b/src/tests/md5.cpp
index 2e9c318..3b3d5e7 100644
--- a/src/tests/md5.cpp
+++ b/src/tests/md5.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/sio.h" 8#include "bu/sio.h"
2#include "bu/file.h" 9#include "bu/file.h"
3#include "bu/md5.h" 10#include "bu/md5.h"
diff --git a/src/tests/multiserver.cpp b/src/tests/multiserver.cpp
index f22147d..c4a00ab 100644
--- a/src/tests/multiserver.cpp
+++ b/src/tests/multiserver.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/multiserver.h" 8#include "bu/multiserver.h"
2#include "bu/protocol.h" 9#include "bu/protocol.h"
3#include "bu/client.h" 10#include "bu/client.h"
diff --git a/src/tests/nids.cpp b/src/tests/nids.cpp
index d531280..bb5993b 100644
--- a/src/tests/nids.cpp
+++ b/src/tests/nids.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/file.h" 8#include "bu/file.h"
2#include "bu/nids.h" 9#include "bu/nids.h"
3#include "bu/nidsstream.h" 10#include "bu/nidsstream.h"
diff --git a/src/tests/procs.cpp b/src/tests/procs.cpp
index c4b3ebc..c456823 100644
--- a/src/tests/procs.cpp
+++ b/src/tests/procs.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/process.h" 8#include "bu/process.h"
2 9
3#include <stdio.h> 10#include <stdio.h>
diff --git a/src/tests/rot13.cpp b/src/tests/rot13.cpp
index e677440..309707e 100644
--- a/src/tests/rot13.cpp
+++ b/src/tests/rot13.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/protocol.h" 8#include "bu/protocol.h"
2#include "bu/multiserver.h" 9#include "bu/multiserver.h"
3#include "bu/client.h" 10#include "bu/client.h"
diff --git a/src/tests/serverticks.cpp b/src/tests/serverticks.cpp
index 80c4dfa..e599444 100644
--- a/src/tests/serverticks.cpp
+++ b/src/tests/serverticks.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/server.h" 8#include "bu/server.h"
2#include "bu/client.h" 9#include "bu/client.h"
3#include "bu/protocol.h" 10#include "bu/protocol.h"
diff --git a/src/tests/socketbreak.cpp b/src/tests/socketbreak.cpp
index 82069de..e77ae4f 100644
--- a/src/tests/socketbreak.cpp
+++ b/src/tests/socketbreak.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/serversocket.h" 8#include "bu/serversocket.h"
2#include "bu/socket.h" 9#include "bu/socket.h"
3 10
diff --git a/src/tests/stdstream.cpp b/src/tests/stdstream.cpp
index 0949a8c..3aa9005 100644
--- a/src/tests/stdstream.cpp
+++ b/src/tests/stdstream.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/sio.h" 8#include "bu/sio.h"
2 9
3using Bu::sio; 10using Bu::sio;
diff --git a/src/tests/tracer.cpp b/src/tests/tracer.cpp
index a57edf6..797d165 100644
--- a/src/tests/tracer.cpp
+++ b/src/tests/tracer.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1 8
2#define BU_TRACE 9#define BU_TRACE
3#include "bu/trace.h" 10#include "bu/trace.h"
diff --git a/src/tests/url.cpp b/src/tests/url.cpp
index 4dc8c46..610a411 100644
--- a/src/tests/url.cpp
+++ b/src/tests/url.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/url.h" 8#include "bu/url.h"
2 9
3#include <stdio.h> 10#include <stdio.h>
diff --git a/src/tools/nidstool.cpp b/src/tools/nidstool.cpp
index d1465ce..5eda877 100644
--- a/src/tools/nidstool.cpp
+++ b/src/tools/nidstool.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/file.h" 8#include "bu/file.h"
2#include "bu/nids.h" 9#include "bu/nids.h"
3#include "bu/nidsstream.h" 10#include "bu/nidsstream.h"
diff --git a/src/trace.cpp b/src/trace.cpp
index b5f11f1..1c03004 100644
--- a/src/trace.cpp
+++ b/src/trace.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/trace.h" 8#include "bu/trace.h"
2 9
3void Bu::__tracer( const char *pf ) 10void Bu::__tracer( const char *pf )
diff --git a/src/unit/file.unit b/src/unit/file.unit
index e6320ad..911d8f6 100644
--- a/src/unit/file.unit
+++ b/src/unit/file.unit
@@ -48,7 +48,7 @@
48 if( s < 50 ) 48 if( s < 50 )
49 { 49 {
50 unitTest( total == 256 ); 50 unitTest( total == 256 );
51 unitTest( sf.isEOS() == true ); 51 unitTest( sf.isEos() == true );
52 break; 52 break;
53 } 53 }
54 } 54 }
@@ -75,7 +75,7 @@
75 int r = sf.read( buf, 256 ); 75 int r = sf.read( buf, 256 );
76 unitTest( r == 256 ); 76 unitTest( r == 256 );
77 // You have to read past the end to set the EOS flag. 77 // You have to read past the end to set the EOS flag.
78 unitTest( sf.isEOS() == false ); 78 unitTest( sf.isEos() == false );
79 try 79 try
80 { 80 {
81 if( sf.read( buf, 5 ) > 0 ) 81 if( sf.read( buf, 5 ) > 0 )
diff --git a/src/url.cpp b/src/url.cpp
index 7f03043..a091e52 100644
--- a/src/url.cpp
+++ b/src/url.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/url.h" 8#include "bu/url.h"
2#ifndef WIN32 9#ifndef WIN32
3# include <netdb.h> 10# include <netdb.h>
diff --git a/src/url.h b/src/url.h
index 88d128b..465665b 100644
--- a/src/url.h
+++ b/src/url.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_URL_H 8#ifndef BU_URL_H
2#define BU_URL_H 9#define BU_URL_H
3 10
diff --git a/src/uuid.cpp b/src/uuid.cpp
index 8a30e2a..b8de9e1 100644
--- a/src/uuid.cpp
+++ b/src/uuid.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/uuid.h" 8#include "bu/uuid.h"
2 9
3Bu::Uuid::Uuid() 10Bu::Uuid::Uuid()
diff --git a/src/uuid.h b/src/uuid.h
index 2bb1404..ef4f768 100644
--- a/src/uuid.h
+++ b/src/uuid.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_UUID_H 8#ifndef BU_UUID_H
2#define BU_UUID_H 9#define BU_UUID_H
3 10
diff --git a/src/win32_compatibility.cpp b/src/win32_compatibility.cpp
index c052e0b..c30f4a2 100644
--- a/src/win32_compatibility.cpp
+++ b/src/win32_compatibility.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "win32_compatibility.h" 8#include "win32_compatibility.h"
2 9
3#ifdef WIN32 10#ifdef WIN32
diff --git a/src/xmlreader.cpp b/src/xmlreader.cpp
index 12d8dba..c6bc3c9 100644
--- a/src/xmlreader.cpp
+++ b/src/xmlreader.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/xmlreader.h" 8#include "bu/xmlreader.h"
2#include "bu/stream.h" 9#include "bu/stream.h"
3 10
@@ -19,7 +26,7 @@ Bu::XmlReader::~XmlReader()
19 26
20void Bu::XmlReader::fillBuffer() 27void Bu::XmlReader::fillBuffer()
21{ 28{
22 if( rInput.isEOS() ) 29 if( rInput.isEos() )
23 return; 30 return;
24 char buf[1024]; 31 char buf[1024];
25 int iSize = rInput.read( buf, 1024 ); 32 int iSize = rInput.read( buf, 1024 );
@@ -88,7 +95,7 @@ int Bu::XmlReader::nextToken()
88 { 95 {
89 if( j == sBuf.getSize() ) 96 if( j == sBuf.getSize() )
90 { 97 {
91 if( rInput.isEOS() ) 98 if( rInput.isEos() )
92 error("Reached end of input while waiting for whitespace to end."); 99 error("Reached end of input while waiting for whitespace to end.");
93 100
94 fillBuffer(); 101 fillBuffer();
@@ -116,7 +123,7 @@ int Bu::XmlReader::nextToken()
116 { 123 {
117 if( j == sBuf.getSize() ) 124 if( j == sBuf.getSize() )
118 { 125 {
119 if( rInput.isEOS() ) 126 if( rInput.isEos() )
120 error("Reached end of input while waiting for a string to end."); 127 error("Reached end of input while waiting for a string to end.");
121 128
122 fillBuffer(); 129 fillBuffer();
diff --git a/src/xmlreader.h b/src/xmlreader.h
index f2d975b..3b011de 100644
--- a/src/xmlreader.h
+++ b/src/xmlreader.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef BU_XML_READER_H 8#ifndef BU_XML_READER_H
2#define BU_XML_READER_H 9#define BU_XML_READER_H
3 10