Skip to content

Commit

Permalink
released 5.1.4
Browse files Browse the repository at this point in the history
fix #383
  • Loading branch information
genivia-inc committed Apr 10, 2024
1 parent 591a07a commit 839db1e
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5401,7 +5401,7 @@ in markdown:



ugrep 5.1.3 April 4, 2024 UGREP(1)
ugrep 5.1.4 April 9, 2024 UGREP(1)

🔝 [Back to table of contents](#toc)

Expand Down
Binary file modified bin/win32/ug.exe
Binary file not shown.
Binary file modified bin/win32/ugrep.exe
Binary file not shown.
Binary file modified bin/win64/ug.exe
Binary file not shown.
Binary file modified bin/win64/ugrep.exe
Binary file not shown.
22 changes: 11 additions & 11 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for ugrep 5.1.3.
# Generated by GNU Autoconf 2.71 for ugrep 5.1.4.
#
# Report bugs to <https://github.com/Genivia/ugrep/issues>.
#
Expand Down Expand Up @@ -613,8 +613,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='ugrep'
PACKAGE_TARNAME='ugrep'
PACKAGE_VERSION='5.1.3'
PACKAGE_STRING='ugrep 5.1.3'
PACKAGE_VERSION='5.1.4'
PACKAGE_STRING='ugrep 5.1.4'
PACKAGE_BUGREPORT='https://github.com/Genivia/ugrep/issues'
PACKAGE_URL='https://ugrep.com'

Expand Down Expand Up @@ -1390,7 +1390,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures ugrep 5.1.3 to adapt to many kinds of systems.
\`configure' configures ugrep 5.1.4 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
Expand Down Expand Up @@ -1461,7 +1461,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of ugrep 5.1.3:";;
short | recursive ) echo "Configuration of ugrep 5.1.4:";;
esac
cat <<\_ACEOF
Expand Down Expand Up @@ -1637,7 +1637,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
ugrep configure 5.1.3
ugrep configure 5.1.4
generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
Expand Down Expand Up @@ -2174,7 +2174,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by ugrep $as_me 5.1.3, which was
It was created by ugrep $as_me 5.1.4, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw
Expand Down Expand Up @@ -3661,7 +3661,7 @@ fi

# Define the identity of the package.
PACKAGE='ugrep'
VERSION='5.1.3'
VERSION='5.1.4'


printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
Expand Down Expand Up @@ -10931,7 +10931,7 @@ fi



# Allow the manpage be accessed as either ug or ugrep
# Allow the manpage to be accessed as either ug or ugrep
ac_config_links="$ac_config_links man/ug.1:man/ugrep.1"


Expand Down Expand Up @@ -11485,7 +11485,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by ugrep $as_me 5.1.3, which was
This file was extended by ugrep $as_me 5.1.4, which was
generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -11558,7 +11558,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
ugrep config.status 5.1.3
ugrep config.status 5.1.4
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([ugrep],[5.1.3],[https://github.com/Genivia/ugrep/issues],[ugrep],[https://ugrep.com])
AC_INIT([ugrep],[5.1.4],[https://github.com/Genivia/ugrep/issues],[ugrep],[https://ugrep.com])
AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip])
AC_CONFIG_HEADERS([config.h])
AC_COPYRIGHT([Copyright (C) 2019-2024 Robert van Engelen, Genivia Inc.])
Expand Down Expand Up @@ -500,7 +500,7 @@ fi

AC_SUBST(EXTRA_CFLAGS)

# Allow the manpage be accessed as either ug or ugrep
# Allow the manpage to be accessed as either ug or ugrep
AC_CONFIG_LINKS([man/ug.1:man/ugrep.1])

AC_CONFIG_FILES([Makefile lib/Makefile src/Makefile lzma/C/Makefile])
Expand Down
5 changes: 4 additions & 1 deletion lib/matcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,12 @@ size_t Matcher::match(Method method)
if (cap_ == 0 && pos_ > cur_ && method == Const::FIND)
{
// use bit_[] to check each char in buf_[cur_+1..pos_-1] if it is a starting char, if not then increase cur_
while (++cur_ < pos_ && !pat_->fst_.test(static_cast<uint8_t>(buf_[cur_])))
while (cur_ + 1 < pos_ && !pat_->fst_.test(static_cast<uint8_t>(buf_[cur_ + 1])))
{
++cur_;
if (retry > 0)
--retry;
}
}
}
else if (jump >= Pattern::Const::LONG)
Expand Down
2 changes: 1 addition & 1 deletion man/ug.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH UGREP "1" "April 04, 2024" "ugrep 5.1.3" "User Commands"
.TH UGREP "1" "April 09, 2024" "ugrep 5.1.4" "User Commands"
.SH NAME
\fBugrep\fR, \fBug\fR -- file pattern searcher
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion man/ugrep.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH UGREP "1" "April 04, 2024" "ugrep 5.1.3" "User Commands"
.TH UGREP "1" "April 09, 2024" "ugrep 5.1.4" "User Commands"
.SH NAME
\fBugrep\fR, \fBug\fR -- file pattern searcher
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion src/ugrep.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#define UGREP_HPP

// DO NOT ALTER THIS LINE: updated by makemake.sh and we need it physically here for MSVC++ build from source
#define UGREP_VERSION "5.1.3"
#define UGREP_VERSION "5.1.4"

// disable mmap because mmap is almost always slower than the file reading speed improvements since 3.0.0
#define WITH_NO_MMAP
Expand Down

0 comments on commit 839db1e

Please sign in to comment.