Skip to content

Commit

Permalink
Fixed bugs, docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlacak committed Nov 24, 2023
1 parent 1929a5b commit cff4541
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ converted to UTC for easier comparison.
**Application** and **library versions** can be seen in an application, using `version` command. \
The latest versions are:

Application: 0.0.1.424:856+20231122.080917 <!--- readme-new-app-version-major-minor-feature-commit+meta~breaks-place-marker --> \
Library: 0.0.1.424:856+20231122.080917 <!--- readme-new-lib-version-major-minor-feature-commit+meta~breaks-place-marker -->
Application: 0.0.1.425:857+20231124.034927 <!--- readme-new-app-version-major-minor-feature-commit+meta~breaks-place-marker --> \
Library: 0.0.1.425:857+20231124.034927 <!--- readme-new-lib-version-major-minor-feature-commit+meta~breaks-place-marker -->

Versioning used is [Natural Versioning 1.2](https://croatian-chess.blogspot.com/p/natver.html),
with meta data containing the same format as the book version.
Expand Down
2 changes: 1 addition & 1 deletion ws/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "Croatian Chess"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = "0.0.1.421:853+20231122.053410" # docs-new-lib-version-major-minor-feature-commit+meta~breaks-place-marker
PROJECT_NUMBER = "0.0.1.425:857+20231124.034927" # docs-new-lib-version-major-minor-feature-commit+meta~breaks-place-marker

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
2 changes: 1 addition & 1 deletion ws/crochess/src/crochess.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "crochess.h"


char const CROCHESS_VERSION[] = "0.0.1.424:856+20231122.080917"; // source-new-crochess-version-major-minor-feature-commit+meta~breaks-place-marker
char const CROCHESS_VERSION[] = "0.0.1.425:857+20231124.034927"; // source-new-crochess-version-major-minor-feature-commit+meta~breaks-place-marker

#ifdef __WITH_LINE_NOISE__
char const CROCHESS_HISTORY_FILE_NAME[] = "history_crochess.txt";
Expand Down
2 changes: 1 addition & 1 deletion ws/libcrochess/inc/cc_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
Pointer to list `ptr_lst` must be valid variable, not expression.
@warning
List struct must have `next` member, which points to previous item in that list.
List struct must have `next` member, which points to next item in that list.
@return Nothing.
*/
Expand Down
14 changes: 9 additions & 5 deletions ws/libcrochess/src/cc_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ static CcPathWeak * cc_path_weak__new( CcPathNode * restrict node ) {
static CcPathWeak * cc_path_weak_append( CcPathWeak ** restrict path_weak__iod,
CcPathNode * restrict node ) {
if ( !path_weak__iod ) return NULL;
if ( !node ) return NULL;

CcPathWeak * pw__t = cc_path_weak__new( node );
if ( !pw__t ) return NULL;
Expand Down Expand Up @@ -298,21 +299,24 @@ static bool cc_path_weak_get_next_route( CcPathNode * restrict path_node,

if ( !*path_weak__iod )
return cc_path_weak_append_route( path_node, path_weak__iod );
else if ( !cc_path_weak_check_if_valid( *path_weak__iod ) ) {
cc_path_weak_free_all( path_weak__iod );
return false;
else {
if ( !cc_path_weak_check_if_valid( *path_weak__iod ) ) {
cc_path_weak_free_all( path_weak__iod );
return false;
}
}

CcPathWeak * pw = *path_weak__iod;
CC_FASTFORWARD( pw );

while ( pw ) {
// cc_path_weak_check_if_valid() ensured that ->node__w is valid for all nodes.
if ( pw->node__w->alt_path ) {
pw->node__w = pw->node__w->alt_path;

CcPathNode * d = pw->node__w->alt_path->divergence;
CcPathNode * d = pw->node__w->divergence;
if ( d )
return cc_path_weak_append_route( d, path_weak__iod );
return cc_path_weak_append_route( d, &pw );
else
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion ws/libcrochess/src/cc_version.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
*/


char const CC_LIB_VERSION[] = "0.0.1.424:856+20231122.080917"; // source-new-libcrochess-version-major-minor-feature-commit+meta~breaks-place-marker
char const CC_LIB_VERSION[] = "0.0.1.425:857+20231124.034927"; // source-new-libcrochess-version-major-minor-feature-commit+meta~breaks-place-marker
2 changes: 1 addition & 1 deletion ws/tests/src/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "tests.h"


char const CROCHESS_TESTS_VERSION[] = "0.0.1.424:856+20231122.080917"; // source-new-crochess-tests-version-major-minor-feature-commit+meta~breaks-place-marker
char const CROCHESS_TESTS_VERSION[] = "0.0.1.425:857+20231124.034927"; // source-new-crochess-tests-version-major-minor-feature-commit+meta~breaks-place-marker

#ifdef __WITH_LINE_NOISE__
char const CROCHESS_TESTS_HISTORY_FILE_NAME[] = "history_tests.txt";
Expand Down

0 comments on commit cff4541

Please sign in to comment.