-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uploaded a version that has some bugs. Not complete.
- Loading branch information
Showing
16 changed files
with
133 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright 2024 AQ author, All Rights Reserved. | ||
# This program is licensed under the AQ License. You can find the AQ license in | ||
# the root directory. | ||
|
||
cmake_minimum_required(VERSION 3.10) | ||
|
||
include_directories(${PROJECT_SOURCE_DIR}) | ||
|
||
set(SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/map.c) | ||
|
||
add_library(AqvmBaseHashMap STATIC ${SOURCES}) | ||
|
||
target_link_libraries(AqvmBaseHashMap PRIVATE AqvmBaseHash) | ||
target_link_libraries(AqvmBaseHashMap PRIVATE AqvmBaseHashTable) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright 2024 AQ author, All Rights Reserved. | ||
// This program is licensed under the AQ License. You can find the AQ license in | ||
// the root directory. | ||
|
||
#include "aqvm/base/hash/map/map.h" | ||
|
||
#include <stddef.h> | ||
#include <stdlib.h> | ||
|
||
#include "aqvm/base/hash/table/table.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2024 AQ author, All Rights Reserved. | ||
// This program is licensed under the AQ License. You can find the AQ license in | ||
// the root directory. | ||
|
||
#ifndef AQ_AQVM_BASE_HASH_TABLE_TABLE_H_ | ||
#define AQ_AQVM_BASE_HASH_TABLE_TABLE_H_ | ||
|
||
#include <stddef.h> | ||
|
||
#include "aqvm/base/hash/table/table.h" | ||
|
||
struct AqvmBaseHashMap_HashMap { | ||
size_t capacity; | ||
size_t size; | ||
struct AqvmBaseHashTable_HashTable* data; | ||
}; | ||
|
||
struct AqvmBaseHashMap_HashMap* AqvmBaseHashMap_CreateHashMap(size_t capacity); | ||
|
||
int AqvmBaseHashMap_DestroyHashMap(struct AqvmBaseHashMap_HashMap* hash_map); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.