Skip to content

Commit

Permalink
Merge branch 'release-2.0.0' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
herzbube committed Jan 3, 2024
2 parents cc4a186 + 392f643 commit 7ccfaad
Show file tree
Hide file tree
Showing 42 changed files with 77 additions and 42 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ project (
# The project version.
# Sets PROJECT_VERSION, PROJECT_VERSION_MAJOR, PROJECT_VERSION_MINOR,
# PROJECT_VERSION_PATCH and PROJECT_VERSION_TWEAK.
VERSION 1.0
VERSION 2.0.0

# Some informational package metadata. Not necessary for the build.
# Sets PROJECT_HOMEPAGE_URL and PROJECT_DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
libsgfc++
Copyright 2020-2021 Patrick Näf ([email protected])
Copyright 2020-2024 Patrick Näf ([email protected])

This product uses the source code provided by the SGFC command line utility to
read, parse and write SGF data. SGFC was developed by Arno Hollosi
Expand Down
35 changes: 35 additions & 0 deletions doc/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# ChangeLog

## Version 2.0.0 (January 3 2024)

### Features

- None

### Bugfixes

- Fixed numeric value of `SgfcMessageID::IllegalVariationStartCorrected` (#39). The enum value had the same numeric value as `SgfcMessageID::IllegalVariationStartIgnored`.
- Changed the value type for referencing line and column numbers in messages to `unsigned long`, to match the error reporting interface of SGFC (#40). The old type `int` was insufficient to hold all possible `unsigned long` values, also the there was a signed/unsigned mismatch. The change affects the `ISgfcMessage` getters `GetLineNumber()` and `GetColumnNumber()`, as well as the constants `SgfcConstants::InvalidLineNumber` and `SgfcConstants::InvalidColumnNumber`. The constants also changed their value (previously -1, now 0).

### Regressions

- None

### Technical changes

- Replaced internal custom code to determine the path to a temporary folder with `std::filesystem::temp_directory_path()` (#18).
- Updated unit test library Catch2 from v2.13.4 to v3.5.0.
- Updated the [Cross-compiling for iOS](Build.md#cross-compiling-for-ios) documentation for modern CMake/Xcode versions.
- Updated the GitHub build pipelines.

### GitHub issue list

A list of all issues closed for this release is available [on GitHub](https://github.com/herzbube/libsgfcplusplus/milestone/4?closed=1)


## Version 1.0 (February 23 2021)

Initial 1.0 release that includes SGFC v2.0.

## Version 0.2 (beta) (January 12 2021)

Release of version 0.2 (beta).

## Version 0.1 (alpha) (October 11 2020)

Release of version 0.1 (alpha).
Expand Down
2 changes: 1 addition & 1 deletion include/ISgfcMessage.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion include/SgfcConstants.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion include/SgfcMessageID.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/SgfcConstants.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -24,7 +24,7 @@
namespace LibSgfcPlusPlus
{
const std::string SgfcConstants::LibraryName = "libsgfc++";
const std::string SgfcConstants::LibraryVersion = "1.0";
const std::string SgfcConstants::LibraryVersion = "2.0.0";
const std::string SgfcConstants::SgfcVersion = "2.0";

// SgfcMessage line and column numbers are 1-based, so value 0 (zero) can be
Expand Down
2 changes: 1 addition & 1 deletion src/SgfcUtility.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/SgfcUtility.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/sgfc/frontend/SgfcDocumentReadResult.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/sgfc/frontend/SgfcDocumentWriteResult.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/sgfc/message/SgfcMessage.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/sgfc/message/SgfcMessage.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/sgfc/message/SgfcMessageStream.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/AssertHelperFunctions.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/document/SgfcDocumentTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/document/SgfcGameTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/document/SgfcNodeTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/document/SgfcNodeTraitsTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/document/SgfcTreeBuilderTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/game/SgfcDateTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/game/SgfcGameResultTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/game/SgfcRoundInformationTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/game/go/SgfcGoMoveTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/game/go/SgfcGoPlayerRankTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/game/go/SgfcGoPointTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/game/go/SgfcGoRulesetTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/game/go/SgfcGoStoneTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/parsing/SgfcPropertyDecoderTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/parsing/SgfcValueConverterTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/argument/SgfcArgumentTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/argument/SgfcArgumentsTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/backend/SgfcBackendControllerTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/backend/SgfcBackendDataWrapperTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/frontend/EncodingTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/frontend/SgfcCommandLineTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/frontend/SgfcDocumentReaderTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/frontend/SgfcDocumentWriterTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/message/SgfcMessageStreamTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/message/SgfcMessageTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/save/SgfcSaveStreamTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/sgfc/save/SgfcSgfContentTest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// -----------------------------------------------------------------------------
// Copyright 2020 Patrick Näf ([email protected])
// Copyright 2024 Patrick Näf ([email protected])
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 7ccfaad

Please sign in to comment.