Skip to content

Commit 20c12fb

Browse files
committed
ci: run the test on Fedora42
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2 parents 1cce44d + c83bc89 commit 20c12fb

2 files changed

Lines changed: 20 additions & 11 deletions

File tree

.circleci/config.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
version: 2
22
jobs:
3-
fedora40_cmake:
3+
fedora42_cmake:
44
working_directory: ~/libreadtags
55
docker:
6-
- image: docker.io/fedora:40
6+
- image: docker.io/fedora:42
77
steps:
88
- run:
99
name: Install Git
@@ -34,10 +34,10 @@ jobs:
3434
cmake --build build --target install
3535
test -e /usr/local/include/readtags.h
3636
test -e /usr/local/lib/libreadtags.so
37-
fedora40_autotools:
37+
fedora42_autotools:
3838
working_directory: ~/libreadtags
3939
docker:
40-
- image: docker.io/fedora:40
40+
- image: docker.io/fedora:42
4141
steps:
4242
- run:
4343
name: Install Git
@@ -58,10 +58,10 @@ jobs:
5858
name: Test
5959
command: |
6060
make check VERBOSE=1
61-
fedora40_distcheck:
61+
fedora42_distcheck:
6262
working_directory: ~/libreadtags
6363
docker:
64-
- image: docker.io/fedora:40
64+
- image: docker.io/fedora:42
6565
steps:
6666
- run:
6767
name: Install Git
@@ -85,6 +85,6 @@ workflows:
8585
version: 2
8686
build_and_test:
8787
jobs:
88-
- fedora40_cmake
89-
- fedora40_autotools
90-
- fedora40_distcheck
88+
- fedora42_cmake
89+
- fedora42_autotools
90+
- fedora42_distcheck

readtags.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
/*
1010
* INCLUDE FILES
1111
*/
12+
#ifdef HAVE_CTAGS_INLINE_H
13+
/* the build script of ctags can insert thee macro
14+
definition for READTAGS_INLINE. */
15+
#include "inline.h"
16+
#else
17+
/* Makefile generated by configure defines inline. */
18+
#define READTAGS_INLINE static inline
19+
#endif
20+
1221
#include <stdlib.h>
1322
#include <string.h>
1423
#include <ctype.h>
@@ -151,8 +160,8 @@ static int xdigitValue (unsigned char digit)
151160
* Reads the first character from the string, possibly un-escaping it, and
152161
* advances *s to the start of the next character.
153162
*/
154-
inline
155-
static int readTagCharacter (const char **const s)
163+
READTAGS_INLINE
164+
int readTagCharacter (const char **const s)
156165
{
157166
const unsigned char *p = (const unsigned char *) *s;
158167
int c = *p;

0 commit comments

Comments
 (0)