Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs upgrade & renaming functionality #73

Closed
wants to merge 73 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
422ba75
* Added some renaming macros.
Jun 30, 2020
7a72d1b
Merge remote-tracking branch 'base/master'
Jun 30, 2020
261df4a
* Modernized and improved the formatting.
Jun 30, 2020
a0c3445
* Naming functionality extended and implemented.
Jun 30, 2020
91e7dcf
* Naming documentation.
Jun 30, 2020
00b3573
* More renaming performed.
Jul 1, 2020
8408988
* More naming refactors.
Jul 1, 2020
df7b446
* More renaming functionality.
Jul 1, 2020
d8f2e12
* More refactors and rename functionality.
Jul 2, 2020
05270d4
* Some final naming refactors.
Jul 3, 2020
c9714f5
* Renaming is now complete with all the tests passed.
Jul 3, 2020
66b6a4e
* Merged the base master.
Jul 3, 2020
17f8099
* Resolved conflicts merging the base repo.
Jul 4, 2020
835b8b3
* More renamings docs.
Jul 4, 2020
f95eebe
* More renames fixes.
Jul 4, 2020
d74f238
* Updates.
Jul 5, 2020
fb5f909
* Corrected concatenation for naming.
Jul 6, 2020
dc1d222
* Various formatting corrections and new renames.
Jul 6, 2020
1f8ff9b
* Fixed a small typo of concatenation.
Jul 6, 2020
135635f
* Copyright restored.
Jul 6, 2020
abb1faa
* Typo fixed.
Jul 6, 2020
979ba70
* Precaution test.
Jul 6, 2020
7acd264
* Codacy complience.
Jul 6, 2020
ed51051
* Codacy improved.
Jul 6, 2020
60a9be9
* More Codacy fixes.
Jul 6, 2020
51a4c97
* Codacy fixes.
Jul 6, 2020
870db03
* Final Codacy fixes.
Jul 6, 2020
c069d24
* More renaming corrections.
Jul 6, 2020
97c97cf
* New function name concatenation macro.
Jul 7, 2020
79f449d
* More renaming refactors using the new function maker.
Jul 8, 2020
3d33f74
* deque and list corrected
Nov 27, 2020
ffd08b8
* More fixes.
Nov 27, 2020
f52a059
* Static method for i shared p
Nov 27, 2020
335cfb4
* Added a djb2 hashing function for C-string.
Nov 29, 2020
d8e14ed
* Fixed a conversion warning.
Nov 29, 2020
213d3f1
* Const fixes for C-string hashing.
Nov 29, 2020
c4f0c3d
* Count naming.
Nov 29, 2020
33db0a3
* New (re)naming macros.
Dec 1, 2020
f0d0f16
* Refactored array to a new coding standard.
Dec 3, 2020
64feb7f
Updated readme to accomodate new array naming.
Dec 3, 2020
a1c690f
* Updated tests for new naming of arrays.
Dec 3, 2020
aadac0b
* Minor documentation change.
Dec 3, 2020
1456a6c
* Typo fixed.
Dec 3, 2020
3cb6ea4
* Fixed reference counting for module.
Dec 18, 2020
afc678b
* Before module fix.
Dec 19, 2020
250e5d7
* Before upstream merge.
Dec 19, 2020
80ca40d
Merge branch 'master' of https://github.com/P-p-H-d/mlib into master
Dec 25, 2020
14cfa56
* Fixes after merging.
Dec 26, 2020
3107b79
Refactored parse_str to parse_cstr
Dec 26, 2020
7fe8bd7
* Small refactors.
Dec 26, 2020
2feef3d
* Naming refactors.
Dec 26, 2020
27070d0
* More refactors.
Dec 26, 2020
34e7c1f
* string works.
Dec 28, 2020
bf120f5
* dict, deque and list fixes.
Dec 29, 2020
b63a70d
* Wokring dict and algo tests.
Dec 30, 2020
d789f36
* Wokring core tests.
Dec 30, 2020
3b2107a
* Generic concatenation and stitching macros.
Dec 30, 2020
8ddb991
* Mutex unit tests fixed.
Dec 31, 2020
2584ee7
* Removed left-over files.
Dec 31, 2020
e68d4e0
* Snapshot works.
Dec 31, 2020
27302a4
* Working tuple and variant.
Jan 1, 2021
3e53c39
* i-list works.
Jan 1, 2021
a23be9a
* All tests now pass.
Jan 1, 2021
6ac0467
* Compiling examples.
Jan 1, 2021
a7a540c
* Updated the module.
Jan 3, 2021
5a0ac82
* Refactor renames.
Jan 12, 2021
498a69f
* Module ref count bug fix.
Jan 14, 2021
d4309f3
* Added front and back methods to buffer.
Jan 14, 2021
c94c0df
* Merged pphd's branch
Jan 14, 2021
e67fe0c
* Naming refactors.
Jan 14, 2021
888b216
* m_core_getenv_s implemented.
Jan 14, 2021
d1f91f9
* Fixed a typo.
Jan 15, 2021
72fce8f
* Minor formatting change.
Feb 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: update package list
run: sudo apt-get update
- name: install multilib
run: sudo apt-get install gcc-multilib
- name: make check C99 (32bits)
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ depend
*.su

# Others
build/
cmake-build-debug/
other/
a*.dat
config
fail*.log
*.log
.vscode
.vs
.cache
.idea
tmp-serial.*
48 changes: 48 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
cmake_minimum_required(VERSION 3.10)

project(GTEngine)

set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 11)

include(CTest)

include_directories(".")

file(GLOB_RECURSE includes CONFIGURE_DEPENDS "./*.h")

include(CheckCSourceCompiles)

set(CMAKE_REQUIRED_LINK_OPTIONS "-pthread")
check_c_source_compiles(
"
#include <threads.h>
mtx_t lock;
int main () {
int err = mtx_init(&lock, mtx_plain);
mtx_destroy(&lock);
return 0;
}
" HAS_C11_THREADS)

check_c_source_compiles(
"
#include <malloc.h>
int main () {
void* data = reallocarray(NULL, 8, sizeof(int));
free(data);
return 0;
}
" HAS_REALLOCARRAY)

# TODO: Implement
# add_subdirectory("bench")

# if(BUILD_TESTING)

# endif()

add_subdirectory("tests")
add_subdirectory("example")

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 2-Clause License

Copyright (c) 2017-2020, Patrick Pelissier
Copyright (c) 2017-2021, Patrick Pelissier
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2017-2020, Patrick Pelissier
# Copyright (c) 2017-2021, Patrick Pelissier
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -34,7 +34,7 @@ DESTDIR=

# Package name & version.
PACKAGE=m_lib-$(VERSION)
VERSION=0.4.1
VERSION=0.5.0

# Define the contain of the distribution tarball
HEADER=m-algo.h m-array.h m-atomic.h m-bitset.h m-bptree.h m-buffer.h m-c-mempool.h m-concurrent.h m-core.h m-deque.h m-dict.h m-funcobj.h m-genint.h m-i-list.h m-i-shared.h m-list.h m-mempool.h m-mutex.h m-prioqueue.h m-rbtree.h m-serial-bin.h m-serial-json.h m-shared.h m-snapshot.h m-string.h m-tuple.h m-variant.h m-worker.h
Expand Down
Loading