Skip to content

Commit 6925e6f

Browse files
authored
Merge pull request #28 from masatake/propagate-errors
Propagate errors and release version 0.1.0
2 parents 80863ea + c97d20d commit 6925e6f

30 files changed

+1375
-206
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ test-driver
3232
tests/*.log
3333
tests/*.trs
3434
tests/test-api-tagsFind
35+
tests/test-api-tagsFirst
3536
tests/test-api-tagsFirstPseudoTag
3637
tests/test-api-tagsOpen
3738
tests/test-fix-null-deref

Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ ACLOCAL_AMFLAGS = -I m4
33

44
AM_CFLAGS=-Wall
55

6+
EXTRA_DIST = README.md NEWS.md
7+
68
lib_LTLIBRARIES = libreadtags.la
79
libreadtags_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION)
810
libreadtags_la_CFLAGS = $(GCOV_CFLAGS)
911

1012
libreadtags_la_SOURCES = readtags.c readtags.h
1113
nobase_include_HEADERS = readtags.h
1214

13-
EXTRA_DIST = libreadtags.pc.in
15+
EXTRA_DIST += libreadtags.pc.in
1416
pkgconfigdir = $(libdir)/pkgconfig
1517
pkgconfig_DATA = libreadtags.pc
1618

NEWS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Version 0.1.0
2+
3+
- propagate internal errors to caller
4+
5+
- LT_VERSION 1:0:0
6+
7+
- extend the API for the error propagation
8+
9+
- add tagsGetErrno function
10+
- add tagErrno eum type
11+
12+
- break the API
13+
14+
- rename sortType to tagSortType for avoiding name conflictions
15+
However, sortType is still defined as a macro.
16+
See readtags.h

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
# libreadtags
1+
libreadtags is a library for reading tags files generated by ctags.
2+
libreadtags assumes the tags file format explained in [tags(5)](https://docs.ctags.io/en/latest/man/tags.5.html)
3+
of Universal-ctags.
24

3-
THIS REPOSITORY IS FOR TESTING.
4-
DON'T FORK ME. THIS REPOSITORY WILL BE
5-
DELETED AFTER TESTING.
5+
See the comments at the top of readtags.h about the license and copyright.
6+
libreadtags was derived from readtags.c of Exuberant-ctags.
7+
8+
NEWS.md describes note worty changes.
9+
10+
If you are looking for command line interface for tags files,
11+
you will like [readtags command](https://docs.ctags.io/en/latest/man/readtags.1.html)
12+
shipped as part of Universal-ctags. It uses libreadtags extensively.

configure.ac

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
11
# -*- Autoconf -*-
2-
AC_INIT(libreadtags, 0.0.0)
2+
AC_INIT(libreadtags, 0.1.0)
33
AC_CONFIG_MACRO_DIR([m4])
44
AC_CONFIG_SRCDIR([readtags.c])
55

66
AM_INIT_AUTOMAKE
77
AC_PROG_LIBTOOL
88

9-
# libtool -version-info
10-
AC_SUBST(LT_VERSION, [0:0:0])
9+
# LT_VERSION => CURRENT[:REVISION[:AGE]]
10+
#
11+
# (the following instructions are taken from configure.ac in libskk)
12+
#
13+
# If library source has changed since last release, increment revision
14+
# If public symbols have been added, removed or changed since last release,
15+
# increment current and set revision to 0
16+
# If public symbols have been added since last release, increment age
17+
# If public symbols have been removed since last release, set age to 0
18+
#
19+
# Revision history
20+
#
21+
# 0:0:0
22+
# initial version; API is the same as readtags.h in Exuberant-ctags.
23+
#
24+
# 1:0:0
25+
# introduced tagsGetErrno() and tagErrno.
26+
# rename sortType to tagSortType.
27+
28+
AC_SUBST(LT_VERSION, [1:0:0])
1129

1230
AC_ARG_ENABLE([gcov],
1331
[AS_HELP_STRING([--enable-gcov],

0 commit comments

Comments
 (0)