1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-19 04:10:03 +02:00

rename namespace and header guards from eosio to antelope

This commit is contained in:
Henrik Hautakoski 2023-04-10 14:53:26 +02:00
parent 2679dc6ef4
commit 2b4ab78176
35 changed files with 126 additions and 127 deletions

View file

@ -21,14 +21,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef EOSIOKEYGEN_COMMON_CORE_DICTIONARY_H
#define EOSIOKEYGEN_COMMON_CORE_DICTIONARY_H
#ifndef ANTELOPEKEYGEN_COMMON_CORE_DICTIONARY_H
#define ANTELOPEKEYGEN_COMMON_CORE_DICTIONARY_H
#include <string>
#include <map>
#include <set>
namespace eoskeygen {
namespace antelopekeygen {
class Dictionary
{
@ -70,6 +70,6 @@ protected :
std::set<std::string> m_words;
};
} // namespace eoskeygen
} // namespace antelopekeygen
#endif /* EOSIOKEYGEN_COMMON_CORE_DICTIONARY_H */
#endif /* ANTELOPEKEYGEN_COMMON_CORE_DICTIONARY_H */

View file

@ -21,15 +21,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef EOSIOKEYGEN_COMMON_CORE_FILE_H
#define EOSIOKEYGEN_COMMON_CORE_FILE_H
#ifndef ANTELOPEKEYGEN_COMMON_CORE_FILE_H
#define ANTELOPEKEYGEN_COMMON_CORE_FILE_H
#include <eoskeygen/core/strlist.hpp>
namespace eoskeygen {
namespace antelopekeygen {
bool readLines(const std::string& filename, strlist_t& lines);
} // namespace
#endif /* EOSIOKEYGEN_COMMON_CORE_FILE_H */
#endif /* ANTELOPEKEYGEN_COMMON_CORE_FILE_H */

View file

@ -21,16 +21,16 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef EOSIOKEYGEN_COMMON_CORE_LEET_H
#define EOSIOKEYGEN_COMMON_CORE_LEET_H
#ifndef ANTELOPEKEYGEN_COMMON_CORE_LEET_H
#define ANTELOPEKEYGEN_COMMON_CORE_LEET_H
#include <string>
#include <eoskeygen/core/strlist.hpp>
namespace eoskeygen {
namespace antelopekeygen {
strlist_t l33twords(std::string str);
} // namespace eoskeygen
} // namespace antelopekeygen
#endif /* EOSIOKEYGEN_COMMON_CORE_LEET_H */
#endif /* ANTELOPEKEYGEN_COMMON_CORE_LEET_H */

View file

@ -21,13 +21,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef EOSIOKEYGEN_COMMON_CORE_STRING_H
#define EOSIOKEYGEN_COMMON_CORE_STRING_H
#ifndef ANTELOPEKEYGEN_COMMON_CORE_STRING_H
#define ANTELOPEKEYGEN_COMMON_CORE_STRING_H
#include <vector>
#include <string>
namespace eoskeygen {
namespace antelopekeygen {
std::string& strtolower(std::string& str);
@ -35,6 +35,6 @@ std::string& rtrim(std::string& str);
std::string& ltrim(std::string& str);
std::string& trim(std::string& str);
} // namespace eoskeygen
} // namespace antelopekeygen
#endif /* EOSIOKEYGEN_COMMON_CORE_STRING_H */
#endif /* ANTELOPEKEYGEN_COMMON_CORE_STRING_H */

View file

@ -21,13 +21,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef EOSIOKEYGEN_COMMON_CORE_STRLIST_H
#define EOSIOKEYGEN_COMMON_CORE_STRLIST_H
#ifndef ANTELOPEKEYGEN_COMMON_CORE_STRLIST_H
#define ANTELOPEKEYGEN_COMMON_CORE_STRLIST_H
#include <vector>
#include <string>
namespace eoskeygen {
namespace antelopekeygen {
typedef std::vector<std::string> strlist_t;
@ -45,6 +45,6 @@ strlist_t& strip(strlist_t& list, strlist_stripfunc_t fn);
} // namespace strlist
} // namespace eoskeygen
} // namespace antelopekeygen
#endif /* EOSIOKEYGEN_COMMON_CORE_STRLIST_H */
#endif /* ANTELOPEKEYGEN_COMMON_CORE_STRLIST_H */

View file

@ -21,8 +21,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef EOSIOKEYGEN_COMMON_KEY_SEARCH_H
#define EOSIOKEYGEN_COMMON_KEY_SEARCH_H
#ifndef ANTELOPEKEYGEN_COMMON_KEY_SEARCH_H
#define ANTELOPEKEYGEN_COMMON_KEY_SEARCH_H
#include <stdint.h>
#include <string>
@ -31,7 +31,7 @@
#include <eoskeygen/core/dictionary.hpp>
#include <eoskeygen/core/strlist.hpp>
namespace eoskeygen {
namespace antelopekeygen {
class IKeySearchResult;
@ -64,7 +64,7 @@ public :
// Set callback for search result.
void setCallback(IKeySearchResult* callback);
#ifdef EOSIOKEYGEN_HAVE_THREADS
#ifdef ANTELOPEKEYGEN_HAVE_THREADS
// Returns the maximum number of threads
// reported by the operating system.
static size_t max_threads();
@ -73,7 +73,7 @@ public :
void setThreadCount(size_t num);
size_t getThreadCount() const;
#endif /* EOSIOKEYGEN_HAVE_THREADS */
#endif /* ANTELOPEKEYGEN_HAVE_THREADS */
// Aborts find() operation if started.
// This is useful for multithreaded code (like GUI application)
@ -90,11 +90,11 @@ protected :
// returns true if a word was found (stored in <result>), false otherwise.
bool _contains_word(const struct libantelope::ec_keypair* key, struct result& result);
#ifdef EOSIOKEYGEN_HAVE_THREADS
#ifdef ANTELOPEKEYGEN_HAVE_THREADS
void _thr_proc();
void _search_mt();
#endif /* EOSIOKEYGEN_HAVE_THREADS */
#endif /* ANTELOPEKEYGEN_HAVE_THREADS */
void _search_linear();
@ -112,14 +112,14 @@ protected :
// Current number of keys found.
std::size_t m_count;
#ifdef EOSIOKEYGEN_HAVE_THREADS
#ifdef ANTELOPEKEYGEN_HAVE_THREADS
// Number of threads to use.
size_t m_threads;
#endif /* EOSIOKEYGEN_HAVE_THREADS */
#endif /* ANTELOPEKEYGEN_HAVE_THREADS */
IKeySearchResult* m_callback;
};
} // namespace eoskeygen
} // namespace antelopekeygen
#endif /* EOSIOKEYGEN_COMMON_KEY_SEARCH_H */
#endif /* ANTELOPEKEYGEN_COMMON_KEY_SEARCH_H */

View file

@ -21,12 +21,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef EOSIOKEYGEN_COMMON_KEY_SEARCH_RESULT_H
#define EOSIOKEYGEN_COMMON_KEY_SEARCH_RESULT_H
#ifndef ANTELOPEKEYGEN_COMMON_KEY_SEARCH_RESULT_H
#define ANTELOPEKEYGEN_COMMON_KEY_SEARCH_RESULT_H
#include <eoskeygen/key_search.hpp>
namespace eoskeygen {
namespace antelopekeygen {
class IKeySearchResult
{
@ -35,6 +35,6 @@ public :
virtual void onResult(const struct libantelope::ec_keypair* key, const struct KeySearch::result& result) = 0;
};
} // namespace eoskeygen
} // namespace antelopekeygen
#endif /* EOSIOKEYGEN_COMMON_KEY_SEARCH_RESULT_H */
#endif /* ANTELOPEKEYGEN_COMMON_KEY_SEARCH_RESULT_H */