Skip to content

Commit c8f4efc

Browse files
chore(deps): update dependency gradle to v9.1.0 (main) (#101)
* chore(deps): update dependency gradle to v9.1.0 * update dependencies and fix linter warnings --------- Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com> Co-authored-by: nicolaasuni-vonage <[email protected]>
1 parent 8aa7344 commit c8f4efc

31 files changed

+218
-163
lines changed

.github/workflows/autopr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
pull-requests: write
1515
steps:
1616
- name: Create PR
17-
uses: actions/github-script@v7
17+
uses: actions/github-script@v8
1818
with:
1919
script: |
2020
const { repo, owner } = context.repo;

.github/workflows/check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010

1111
env:
1212
NODE_VERSION: 22
13-
PYTHON_VERSION: 3.x
14-
JAVA_VERSION: 17
13+
PYTHON_VERSION: 3.13
14+
JAVA_VERSION: 21
1515

1616
permissions:
1717
contents: read

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.57
1+
1.6.58

c/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ option(BUILD_SHARED_LIB "Build a shared library" ON)
2626
if(CMAKE_COMPILER_IS_GNUCC)
2727
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
2828
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
29-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D VERSION='\"${PROJECT_VERSION}\"' -s -pedantic -std=c17 -Wall -Wextra -Wno-strict-prototypes -Wcast-align -Wundef -Wformat -Wformat-security")
29+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D VERSION='\"${PROJECT_VERSION}\"' -s -pedantic -std=c2x -Wall -Wextra -Wno-strict-prototypes -Wcast-align -Wundef -Wformat -Wformat-security")
3030

3131
if (GCC_VERSION VERSION_GREATER 4.8 OR GCC_VERSION VERSION_EQUAL 4.8)
3232
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow")

c/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ endif
195195
# Test C code compatibility with C++
196196
.PHONY: testcpp
197197
testcpp:
198-
find ./src/numkey -type f -name '*.h' -exec gcc -c -pedantic -Werror -Wall -Wextra -Wcast-align -Wundef -Wformat -Wformat-security -std=c++17 -x c++ -o /dev/null {} \;
198+
find ./src/numkey -type f -name '*.h' -exec gcc -c -pedantic -Werror -Wall -Wextra -Wcast-align -Wundef -Wformat -Wformat-security -std=c++23 -x c++ -o /dev/null {} \;
199199

200200
# use clang-tidy
201201
.PHONY: tidy

c/doc/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PROJECT_NAME = "NumKey"
3232
# This could be handy for archiving the generated documentation or
3333
# if some version control system is used.
3434

35-
PROJECT_NUMBER = 1.6.57
35+
PROJECT_NUMBER = 1.6.58
3636

3737
# Using the PROJECT_BRIEF tag one can provide an optional one line description
3838
# for a project that appears at the top of each page and should give viewer

c/nk/nk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111

1212
#include <inttypes.h>
13+
#include <stdint.h>
1314
#include <stdio.h>
14-
#include <stdlib.h>
1515
#include <string.h>
1616
#include "../src/numkey/numkey.h"
1717

c/src/numkey/binsearch.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// @author Nicola Asuni <[email protected]>
77
// @link https://github.com/tecnickcom/binsearch
88
// @license MIT (see LICENSE file)
9-
// @copyright (c) 2017-2024 Nicola Asuni - Tecnick.com
9+
// @copyright (c) 2017-2025 Nicola Asuni - Tecnick.com
1010

1111
/**
1212
* @file binsearch.h
@@ -44,6 +44,7 @@
4444
#include <inttypes.h>
4545
#include <fcntl.h>
4646
#include <stdbool.h>
47+
#include <stdint.h>
4748
#include <unistd.h>
4849
#include <sys/mman.h>
4950
#include <sys/stat.h>
@@ -989,7 +990,8 @@ static inline void mmap_binfile(const char *file, mmfile_t *mf)
989990
mf->dlength = 0;
990991
mf->nrows = 0;
991992
struct stat statbuf;
992-
if (((mf->fd = open(file, O_RDONLY)) < 0) || (fstat(mf->fd, &statbuf) < 0))
993+
mf->fd = open(file, O_RDONLY);
994+
if ((mf->fd < 0) || (fstat(mf->fd, &statbuf) < 0))
993995
{
994996
return;
995997
}

c/src/numkey/countrykey.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define NUMKEY_COUNTRYKEY_H
1919

2020
#include <inttypes.h>
21+
#include <stdint.h>
2122
#include <stddef.h>
2223

2324
/**

c/src/numkey/hex.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// NumKey
2-
//
31
// hex.h
42
//
53
// @category Libraries
@@ -18,9 +16,12 @@
1816
#define NUMKEY_HEX_H
1917

2018
#include <inttypes.h>
19+
#include <stdint.h>
2120
#include <stdio.h>
2221

2322
/** @brief Returns uint64_t hexadecimal string (16 characters).
23+
*
24+
*
2425
*
2526
* @param n Number to parse
2627
* @param str String buffer to be returned (it must be sized 17 bytes at least).
@@ -36,6 +37,9 @@ static inline size_t hex_uint64_t(uint64_t n, char *str)
3637
}
3738

3839
/** @brief Parses a 16 chars hexadecimal string and returns the code.
40+
*
41+
* This function parses a hexadecimal string and returns the corresponding
42+
* unsigned integer number.
3943
*
4044
* @param s Hexadecimal string to parse (it must contain 16 hexadecimal characters).
4145
*
@@ -69,4 +73,4 @@ static inline uint64_t parse_hex_uint64_t(const char *s)
6973
return v;
7074
}
7175

72-
#endif // NUMKEY_HEX_H
76+
#endif // NUMKEY_HEX_H

0 commit comments

Comments
 (0)