Skip to content

Commit

Permalink
fixup! api/c-timestamp: fix issues reported by SonarCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 committed Sep 9, 2022
1 parent 65a4eed commit 2078ae1
Show file tree
Hide file tree
Showing 14 changed files with 455 additions and 1,036 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ endif()

# ####### Gather source files ########
file(GLOB COMMON_SRC
${PROJECT_SOURCE_DIR}/api/c-timestamp/timestamp_compare.c
${PROJECT_SOURCE_DIR}/api/c-timestamp/timestamp_format.c
${PROJECT_SOURCE_DIR}/api/c-timestamp/timestamp_valid.c
${PROJECT_SOURCE_DIR}/api/c-timestamp/timestamp_parse.c
Expand Down Expand Up @@ -582,6 +583,9 @@ if(BUILD_TESTING AND(UNIX OR MINGW))
file(GLOB APITEST_SRC api/unittest/*.cpp)
package_add_test(apitest ${APITEST_SRC})

file(GLOB TIMESTAMPTEST_SRC api/c-timestamp/unittest/*.cpp)
package_add_test(timestamptest ${TIMESTAMPTEST_SRC})

file(GLOB PLATFORMTEST_SRC port/unittest/*.cpp)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/storage_test)
package_add_test(platformtest ${PLATFORMTEST_SRC})
Expand Down
85 changes: 0 additions & 85 deletions api/c-timestamp/Makefile

This file was deleted.

4 changes: 4 additions & 0 deletions api/c-timestamp/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Timestamp
=========

Fast RFC 3339 (ISO 8601) timestamp parser and formatter implemented in C, zero dependencies.

[Source](https://github.com/chansen/c-timestamp)

```C
typedef struct {
int64_t sec; /* Number of seconds since the epoch of 1970-01-01T00:00:00Z */
Expand Down
25 changes: 0 additions & 25 deletions api/c-timestamp/t/compare.c

This file was deleted.

178 changes: 0 additions & 178 deletions api/c-timestamp/t/format.c

This file was deleted.

62 changes: 0 additions & 62 deletions api/c-timestamp/t/parse_malformed.c

This file was deleted.

Loading

0 comments on commit 2078ae1

Please sign in to comment.