diff options
author | Simon Warta <[email protected]> | 2015-07-01 19:20:41 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-07-03 10:21:26 +0200 |
commit | 7751efb30bd8ae145fed3367957e366df5af9f88 (patch) | |
tree | 1f9123b3af3300e194acc39c8146fa4ffdccaf69 /src/lib | |
parent | 121262b5ac1d9b11098ad85d02232ca7dc5a111e (diff) |
Use <cstdint>; Remove unused namespace Botan_types
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/utils/types.h | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/src/lib/utils/types.h b/src/lib/utils/types.h index d1de9e2a6..f5754983d 100644 --- a/src/lib/utils/types.h +++ b/src/lib/utils/types.h @@ -1,6 +1,7 @@ /* * Low Level Types * (C) 1999-2007 Jack Lloyd +* (C) 2015 Simon Warta (Kullo GmbH) * * Botan is released under the Simplified BSD License (see license.txt) */ @@ -11,7 +12,7 @@ #include <botan/build.h> #include <botan/assert.h> #include <cstddef> -#include <stdint.h> +#include <cstdint> #include <memory> /** @@ -19,21 +20,19 @@ */ namespace Botan { -using ::uint8_t; -using ::uint16_t; -using ::uint32_t; -using ::uint64_t; -using ::int32_t; -using ::int64_t; +using std::uint8_t; +using std::uint16_t; +using std::uint32_t; +using std::uint64_t; +using std::int32_t; +using std::int64_t; +using std::size_t; -using ::size_t; - -typedef uint8_t byte; -typedef uint16_t u16bit; -typedef uint32_t u32bit; -typedef uint64_t u64bit; - -typedef int32_t s32bit; +using byte = std::uint8_t; +using u16bit = std::uint16_t; +using u32bit = std::uint32_t; +using u64bit = std::uint64_t; +using s32bit = std::int32_t; /** * A default buffer size; typically a memory page @@ -42,11 +41,4 @@ static const size_t DEFAULT_BUFFERSIZE = BOTAN_DEFAULT_BUFFER_SIZE; } -namespace Botan_types { - -using Botan::byte; -using Botan::u32bit; - -} - #endif |