mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools
This commit is contained in:
parent
b58a0f4be7
commit
eda613c6db
1069 changed files with 5367 additions and 1845 deletions
|
|
@ -24,6 +24,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
BlowFish::BlowFish (const void* const keyData, const int keyBytes)
|
||||
{
|
||||
jassert (keyData != nullptr);
|
||||
|
|
@ -466,3 +469,5 @@ public:
|
|||
static BlowFishTests blowFishUnitTests;
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
|
|
@ -107,3 +107,5 @@ private:
|
|||
|
||||
JUCE_LEAK_DETECTOR (BlowFish)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
namespace PrimesHelpers
|
||||
{
|
||||
static void createSmallSieve (const int numBits, BigInteger& result)
|
||||
|
|
@ -238,3 +241,5 @@ bool Primes::isProbablyPrime (const BigInteger& number, const int certainty)
|
|||
return passesMillerRabin (number, certainty);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
|
|
@ -69,3 +69,5 @@ private:
|
|||
|
||||
JUCE_DECLARE_NON_COPYABLE (Primes)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
RSAKey::RSAKey()
|
||||
{
|
||||
}
|
||||
|
|
@ -135,3 +138,5 @@ void RSAKey::createKeyPair (RSAKey& publicKey, RSAKey& privateKey,
|
|||
privateKey.part1 = d;
|
||||
privateKey.part2 = n;
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
|
|
@ -170,3 +170,5 @@ private:
|
|||
|
||||
JUCE_LEAK_DETECTOR (RSAKey)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
class MD5Generator
|
||||
{
|
||||
public:
|
||||
|
|
@ -336,3 +339,5 @@ public:
|
|||
static MD5Tests MD5UnitTests;
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
|
|
@ -115,3 +115,5 @@ private:
|
|||
|
||||
JUCE_LEAK_DETECTOR (MD5)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
class SHA256Processor
|
||||
{
|
||||
public:
|
||||
|
|
@ -275,3 +278,5 @@ public:
|
|||
static SHA256Tests sha256UnitTests;
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
|
|
@ -103,3 +103,5 @@ private:
|
|||
|
||||
JUCE_LEAK_DETECTOR (SHA256)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
struct WhirlpoolProcessor
|
||||
{
|
||||
WhirlpoolProcessor() noexcept : bufferBits (0), bufferPos (0)
|
||||
|
|
@ -661,3 +664,5 @@ public:
|
|||
static WhirlpoolTests whirlpoolUnitTests;
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
|
|
@ -109,3 +109,5 @@ private:
|
|||
|
||||
JUCE_LEAK_DETECTOR (Whirlpool)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -35,14 +35,9 @@
|
|||
|
||||
#include "juce_cryptography.h"
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
#include "encryption/juce_BlowFish.cpp"
|
||||
#include "encryption/juce_Primes.cpp"
|
||||
#include "encryption/juce_RSAKey.cpp"
|
||||
#include "hashing/juce_MD5.cpp"
|
||||
#include "hashing/juce_SHA256.cpp"
|
||||
#include "hashing/juce_Whirlpool.cpp"
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,14 +54,9 @@
|
|||
//==============================================================================
|
||||
#include <juce_core/juce_core.h>
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
#include "encryption/juce_BlowFish.h"
|
||||
#include "encryption/juce_Primes.h"
|
||||
#include "encryption/juce_RSAKey.h"
|
||||
#include "hashing/juce_MD5.h"
|
||||
#include "hashing/juce_SHA256.h"
|
||||
#include "hashing/juce_Whirlpool.h"
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue