]> granicus.if.org Git - onig/log
onig
6 years agoremove default case for EnclosureType switch
K.Kosako [Fri, 2 Nov 2018 14:06:45 +0000 (23:06 +0900)]
remove default case for EnclosureType switch

6 years agofix argument type in onig_node_new_enclosure()
K.Kosako [Fri, 2 Nov 2018 13:46:11 +0000 (22:46 +0900)]
fix argument type in onig_node_new_enclosure()

6 years agomerge from develop
K.Kosako [Sat, 13 Oct 2018 11:44:53 +0000 (20:44 +0900)]
merge from develop

6 years agorefactoring
K.Kosako [Wed, 10 Oct 2018 03:12:29 +0000 (12:12 +0900)]
refactoring

6 years agoadd a test case into test_utf8.c
K.Kosako [Wed, 10 Oct 2018 01:22:50 +0000 (10:22 +0900)]
add a test case into test_utf8.c

6 years agocheck in-look-behind in expand_case_fold_string()
K.Kosako [Wed, 10 Oct 2018 01:19:44 +0000 (10:19 +0900)]
check in-look-behind in expand_case_fold_string()

6 years agorevert a null check (in PR #125)
K.Kosako [Tue, 9 Oct 2018 06:03:00 +0000 (15:03 +0900)]
revert a null check (in PR #125)

6 years agodon't execute CASE_OP(FAIL) for failed case (label-fail)
K.Kosako [Tue, 9 Oct 2018 05:33:19 +0000 (14:33 +0900)]
don't execute CASE_OP(FAIL) for failed case (label-fail)

6 years agofix s == NULL case in MATCH_DEBUG_OUT()
K.Kosako [Tue, 9 Oct 2018 04:57:13 +0000 (13:57 +0900)]
fix s == NULL case in MATCH_DEBUG_OUT()

6 years agofix compile error in ONIG_DEBUG_MATCH
K.Kosako [Tue, 9 Oct 2018 04:31:15 +0000 (13:31 +0900)]
fix compile error in ONIG_DEBUG_MATCH

6 years agoremove tabs
K.Kosako [Tue, 9 Oct 2018 04:27:55 +0000 (13:27 +0900)]
remove tabs

6 years agoadjust PR #125
K.Kosako [Tue, 9 Oct 2018 04:21:51 +0000 (13:21 +0900)]
adjust PR #125

6 years agoMerge pull request #125 from methyleneBlue/develop
K.Kosako [Tue, 9 Oct 2018 03:58:49 +0000 (12:58 +0900)]
Merge pull request #125 from methyleneBlue/develop

NULL pointer check

6 years agoNULL pointer check
Dongao Guo [Tue, 9 Oct 2018 03:14:11 +0000 (11:14 +0800)]
NULL pointer check

These check seems not necessary in logic,it is just to increase
security.

6 years agorefactoring
K.Kosako [Mon, 8 Oct 2018 08:08:52 +0000 (17:08 +0900)]
refactoring

6 years agoremove USE_SUNDAY_QUICK_SEARCH_ALGORITHM switch
K.Kosako [Mon, 8 Oct 2018 08:03:16 +0000 (17:03 +0900)]
remove USE_SUNDAY_QUICK_SEARCH_ALGORITHM switch

6 years agouse ENC_FLAG_SKIP_OFFSET_XXX values
K.Kosako [Mon, 8 Oct 2018 07:58:20 +0000 (16:58 +0900)]
use ENC_FLAG_SKIP_OFFSET_XXX values

6 years agoadd ENC_FLAG_SKIP_OFFSET_XXX flag values
K.Kosako [Mon, 8 Oct 2018 07:21:01 +0000 (16:21 +0900)]
add ENC_FLAG_SKIP_OFFSET_XXX flag values

6 years agoUTF-8 supports code range from 0x0000 to 0x10FFFF.
K.Kosako [Sat, 6 Oct 2018 09:42:51 +0000 (18:42 +0900)]
UTF-8 supports code range from 0x0000 to 0x10FFFF.

UTF-8, a transformation format of ISO 10646
(https://tools.ietf.org/html/rfc3630)

6 years agorefactoring
K.Kosako [Fri, 5 Oct 2018 08:36:42 +0000 (17:36 +0900)]
refactoring

6 years agorefactoring
K.Kosako [Fri, 5 Oct 2018 08:33:26 +0000 (17:33 +0900)]
refactoring

6 years agospeed improvement of sunday_quick_search_step_forward()
K.Kosako [Fri, 5 Oct 2018 08:17:52 +0000 (17:17 +0900)]
speed improvement of sunday_quick_search_step_forward()

6 years agofix to add pointer range check previous right_adjust_char_head()
K.Kosako [Fri, 5 Oct 2018 07:29:19 +0000 (16:29 +0900)]
fix to add pointer range check previous right_adjust_char_head()

6 years agospeed improvement of sunday_quick_search_case_fold()
K.Kosako [Fri, 5 Oct 2018 07:07:10 +0000 (16:07 +0900)]
speed improvement of sunday_quick_search_case_fold()

6 years agoexpand case fold if string is a single character case
K.Kosako [Thu, 4 Oct 2018 12:23:47 +0000 (21:23 +0900)]
expand case fold if string is a single character case

6 years agofix invalid reference in set_sunday_quick_search_skip_table()
K.Kosako [Wed, 3 Oct 2018 12:42:15 +0000 (21:42 +0900)]
fix invalid reference in set_sunday_quick_search_skip_table()

6 years agouse OPTIMIZE_STR_CASE_FOLD_FAST
K.Kosako [Wed, 3 Oct 2018 12:32:03 +0000 (21:32 +0900)]
use OPTIMIZE_STR_CASE_FOLD_FAST

6 years agorefactoring
K.Kosako [Wed, 3 Oct 2018 11:51:02 +0000 (20:51 +0900)]
refactoring

6 years agoadd good_case_fold member into OptExact
K.Kosako [Wed, 3 Oct 2018 05:03:16 +0000 (14:03 +0900)]
add good_case_fold member into OptExact

6 years agoadd some test cases
K.Kosako [Tue, 2 Oct 2018 06:23:34 +0000 (15:23 +0900)]
add some test cases

6 years agofix print_optimize_info() for OPTIMIZE_STR_CASE_FOLD_FAST
K.Kosako [Tue, 2 Oct 2018 05:46:44 +0000 (14:46 +0900)]
fix print_optimize_info() for OPTIMIZE_STR_CASE_FOLD_FAST

6 years agoadd OPTIMIZE_STR_CASE_FOLD_FAST
K.Kosako [Tue, 2 Oct 2018 05:38:08 +0000 (14:38 +0900)]
add OPTIMIZE_STR_CASE_FOLD_FAST

6 years agorefactoring
K.Kosako [Tue, 2 Oct 2018 04:22:47 +0000 (13:22 +0900)]
refactoring

6 years agofix confusion of ONIG_CHAR_TABLE_SIZE
K.Kosako [Tue, 2 Oct 2018 04:17:15 +0000 (13:17 +0900)]
fix confusion of ONIG_CHAR_TABLE_SIZE

6 years agoadd case_expand option into set_sunday_quick_search_skip_table()
K.Kosako [Tue, 2 Oct 2018 04:08:29 +0000 (13:08 +0900)]
add case_expand option into set_sunday_quick_search_skip_table()

6 years agoescape C compiler warning
K.Kosako [Tue, 2 Oct 2018 01:21:51 +0000 (10:21 +0900)]
escape C compiler warning

6 years agoadd output -good in print_indent_tree()
K.Kosako [Mon, 1 Oct 2018 13:53:10 +0000 (22:53 +0900)]
add output -good in print_indent_tree()

6 years agoset good-ambig flag in expand_case_fold_string()
K.Kosako [Mon, 1 Oct 2018 13:46:27 +0000 (22:46 +0900)]
set good-ambig flag in expand_case_fold_string()

6 years agoadd NODE_STRING_GOOD_AMBIG flag
K.Kosako [Mon, 1 Oct 2018 13:37:19 +0000 (22:37 +0900)]
add NODE_STRING_GOOD_AMBIG flag

6 years agoRemove whitespace at the beginning of the files
Peter Kokot [Mon, 1 Oct 2018 08:35:56 +0000 (10:35 +0200)]
Remove whitespace at the beginning of the files

6 years agoMerge pull request #124 from petk/patch-fix-beginning-ws
K.Kosako [Mon, 1 Oct 2018 08:51:46 +0000 (17:51 +0900)]
Merge pull request #124 from petk/patch-fix-beginning-ws

Remove whitespace at the beginning of the files

6 years agoRemove whitespace at the beginning of the files
Peter Kokot [Mon, 1 Oct 2018 08:35:56 +0000 (10:35 +0200)]
Remove whitespace at the beginning of the files

6 years agoConvert CRLF line endings to LF
Peter Kokot [Mon, 1 Oct 2018 00:46:26 +0000 (02:46 +0200)]
Convert CRLF line endings to LF

This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.

Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)

To see which line endings are in the index and in the working copy the
following command can be used:
git ls-files --eol

Git additionally provides .gitattributes file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).

Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF lineendings in all files in working tree.

Unless CRLF files are tracked specifically, Git by default tracks all
files in the index with LF end of lines.

6 years agoMerge pull request #123 from petk/patch-eol
K.Kosako [Mon, 1 Oct 2018 04:17:30 +0000 (13:17 +0900)]
Merge pull request #123 from petk/patch-eol

Convert CRLF line endings to LF

6 years agoConvert CRLF line endings to LF
Peter Kokot [Mon, 1 Oct 2018 00:46:26 +0000 (02:46 +0200)]
Convert CRLF line endings to LF

This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.

Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)

To see which line endings are in the index and in the working copy the
following command can be used:
git ls-files --eol

Git additionally provides .gitattributes file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).

Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF lineendings in all files in working tree.

Unless CRLF files are tracked specifically, Git by default tracks all
files in the index with LF end of lines.

6 years agorefactoring
K.Kosako [Sat, 29 Sep 2018 14:52:37 +0000 (23:52 +0900)]
refactoring

6 years agoadd some test cases
K.Kosako [Sat, 29 Sep 2018 14:40:38 +0000 (23:40 +0900)]
add some test cases

6 years agoMerge pull request #122 from methyleneBlue/develop
K.Kosako [Sat, 29 Sep 2018 08:01:06 +0000 (17:01 +0900)]
Merge pull request #122 from methyleneBlue/develop

NULL pointer check

6 years agoadd NULL pointer check
Dongao Guo [Sat, 29 Sep 2018 06:56:40 +0000 (14:56 +0800)]
add NULL pointer check

6 years agorefactoring
K.Kosako [Fri, 28 Sep 2018 08:36:53 +0000 (17:36 +0900)]
refactoring

6 years agooutput (dontopt) in print_indent_tree()
K.Kosako [Fri, 28 Sep 2018 06:29:28 +0000 (15:29 +0900)]
output (dontopt) in print_indent_tree()

6 years agoadd some test cases
K.Kosako [Fri, 28 Sep 2018 06:00:21 +0000 (15:00 +0900)]
add some test cases

6 years agooutput string-ambig in print_indent_tree()
K.Kosako [Fri, 28 Sep 2018 05:59:57 +0000 (14:59 +0900)]
output string-ambig in print_indent_tree()

6 years agoadd casting for escape warning in Windows
K.Kosako [Fri, 28 Sep 2018 02:36:38 +0000 (11:36 +0900)]
add casting for escape warning in Windows

6 years agoadd SIZEOF_SIZE_T into config.h.windows.in
K.Kosako [Fri, 28 Sep 2018 02:22:56 +0000 (11:22 +0900)]
add SIZEOF_SIZE_T into config.h.windows.in

6 years agoSet SIZEOF_SIZE_T for windows platforms
Peter Kokot [Wed, 26 Sep 2018 23:05:53 +0000 (01:05 +0200)]
Set SIZEOF_SIZE_T for windows platforms

The size of `size_t` is 4 bytes on 32bit Windows platforms and 8 bytes
on 64bit Windows platforms. This patch defines the SIZEOF_SIZE_T symbols
for both instead of using only 4 for both.

6 years agofix #121 (2nd): Miss null pointer check
K.Kosako [Thu, 27 Sep 2018 09:07:21 +0000 (18:07 +0900)]
fix #121 (2nd): Miss null pointer check

6 years agofix #121: Miss null pointer check
K.Kosako [Thu, 27 Sep 2018 04:39:08 +0000 (13:39 +0900)]
fix #121: Miss null pointer check

6 years agodon't expand string case folds to alternatives if code length == 1 and byte length...
K.Kosako [Thu, 27 Sep 2018 04:28:19 +0000 (13:28 +0900)]
don't expand string case folds to alternatives if code length == 1 and byte length is same

6 years agoMerge pull request #120 from petk/patch-sizeof-size-t
K.Kosako [Wed, 26 Sep 2018 23:59:50 +0000 (08:59 +0900)]
Merge pull request #120 from petk/patch-sizeof-size-t

Set SIZEOF_SIZE_T for windows platforms

6 years agoSet SIZEOF_SIZE_T for windows platforms
Peter Kokot [Wed, 26 Sep 2018 23:05:53 +0000 (01:05 +0200)]
Set SIZEOF_SIZE_T for windows platforms

The size of `size_t` is 4 bytes on 32bit Windows platforms and 8 bytes
on 64bit Windows platforms. This patch defines the SIZEOF_SIZE_T symbols
for both instead of using only 4 for both.

6 years agorefactoring
K.Kosako [Tue, 25 Sep 2018 06:15:03 +0000 (15:15 +0900)]
refactoring

6 years agoremove num_comb_exp_check member from re_pattern_buffer
K.Kosako [Tue, 25 Sep 2018 06:07:57 +0000 (15:07 +0900)]
remove num_comb_exp_check member from re_pattern_buffer

6 years agoadd map_offset member into re_pattern_buffer
K.Kosako [Tue, 25 Sep 2018 06:05:25 +0000 (15:05 +0900)]
add map_offset member into re_pattern_buffer

6 years agouse enc_min_len for Sunday quick search
K.Kosako [Tue, 25 Sep 2018 01:34:35 +0000 (10:34 +0900)]
use enc_min_len for Sunday quick search

6 years agorefactoring
K.Kosako [Mon, 24 Sep 2018 02:00:50 +0000 (11:00 +0900)]
refactoring

6 years agorefactoring
K.Kosako [Sun, 23 Sep 2018 14:04:38 +0000 (23:04 +0900)]
refactoring

6 years agorefactoring
K.Kosako [Sun, 23 Sep 2018 05:41:24 +0000 (14:41 +0900)]
refactoring

6 years agorefactoring
K.Kosako [Sat, 22 Sep 2018 13:59:20 +0000 (22:59 +0900)]
refactoring

6 years agorefactoring
K.Kosako [Sat, 22 Sep 2018 13:56:37 +0000 (22:56 +0900)]
refactoring

6 years agorefactoring
K.Kosako [Sat, 22 Sep 2018 12:25:04 +0000 (21:25 +0900)]
refactoring

6 years agouse Sunday quick search algorithm instead of Boyer-Moor-Horspool
K.Kosako [Sat, 22 Sep 2018 10:52:57 +0000 (19:52 +0900)]
use Sunday quick search algorithm instead of Boyer-Moor-Horspool

6 years agorefactoring
K.Kosako [Sat, 22 Sep 2018 08:03:03 +0000 (17:03 +0900)]
refactoring

6 years agoremove unused symbol
K.Kosako [Sat, 22 Sep 2018 07:10:01 +0000 (16:10 +0900)]
remove unused symbol

6 years agorefactoring
K.Kosako [Sat, 22 Sep 2018 07:07:48 +0000 (16:07 +0900)]
refactoring

6 years agorefactoring
K.Kosako [Fri, 21 Sep 2018 08:30:10 +0000 (17:30 +0900)]
refactoring

6 years agoremove int_map_backward member from re_pattern_buffer
K.Kosako [Fri, 21 Sep 2018 07:00:01 +0000 (16:00 +0900)]
remove int_map_backward member from re_pattern_buffer

6 years agoadd OPT_EXACT_MAXLEN value check
K.Kosako [Fri, 21 Sep 2018 06:56:00 +0000 (15:56 +0900)]
add OPT_EXACT_MAXLEN value check

6 years agoremove int_map member from re_pattern_buffer
K.Kosako [Fri, 21 Sep 2018 06:50:41 +0000 (15:50 +0900)]
remove int_map member from re_pattern_buffer

6 years agoadd some test cases
K.Kosako [Fri, 21 Sep 2018 06:49:32 +0000 (15:49 +0900)]
add some test cases

6 years agointroduce direct threaded code into match_at()
K.Kosako [Thu, 20 Sep 2018 01:58:49 +0000 (10:58 +0900)]
introduce direct threaded code into match_at()

6 years agoremove assignments of unused return values
K.Kosako [Tue, 18 Sep 2018 01:36:18 +0000 (10:36 +0900)]
remove assignments of unused return values

6 years agoMerge pull request #119 from petk/patch-strings-h
K.Kosako [Sun, 16 Sep 2018 22:56:14 +0000 (07:56 +0900)]
Merge pull request #119 from petk/patch-strings-h

Remove HAVE_STRINGS_H

6 years agoRemove HAVE_STRINGS_H
Peter Kokot [Sun, 16 Sep 2018 17:16:47 +0000 (19:16 +0200)]
Remove HAVE_STRINGS_H

This patch removes not needed `HAVE_STRINGS_H` symbol as was defined by
Autoconf in configure.ac and by CMake.

The windows/testc.c file also doesn't need the POSIX `<strings.h>` [1]
header file included as none of the functions defined by it are used:
* ffs
* strcasecmp
* strcasecmp_l
* strncasecmp
* strncasecmp_l

and the `<string.h>` file (part of C89 standard and above) [2] is
sufficient for it.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/strings.h.html
[2] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2

6 years agoMerge pull request #118 from petk/patch-stdarg-h
K.Kosako [Sun, 16 Sep 2018 01:09:05 +0000 (10:09 +0900)]
Merge pull request #118 from petk/patch-stdarg-h

Remove HAVE_PROTOTYPES and HAVE_STDARG_PROTOTYPES

6 years agoRemove HAVE_PROTOTYPES and HAVE_STDARG_PROTOTYPES
Peter Kokot [Sun, 16 Sep 2018 00:49:27 +0000 (02:49 +0200)]
Remove HAVE_PROTOTYPES and HAVE_STDARG_PROTOTYPES

The C89 standard and later defines the `<stdarg.h>` header as part of
the standard headers [1] and on current systems it is always present.

Checking for presence and functionality of the `<stdarg.h>` header and
variadic functions is not relevant anymore on current systems since this
is always available.

Also Autoconf suggests doing this and relying on C89 or above [2] and [3].

As an alternative, outdated versions of POSIX defined the legacy header
`<varargs.h>` [4].

This patch modernize the `<stdarg.h>` usage a bit.

Unused internal macro `va_init_list()` has been replaced with
`va_start()`.

Checking if functions support prototypes is also not relevant anymore
so the `HAVE_PROTOTYPES` symbol has been removed likewise.

Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
[3] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
[4] https://en.wikipedia.org/wiki/Stdarg.h#varargs.h

6 years agoadd a command line option '-gc' for make_unicode_property_data.py
K.Kosako [Fri, 14 Sep 2018 05:38:08 +0000 (14:38 +0900)]
add a command line option '-gc' for make_unicode_property_data.py

6 years agoMerge pull request #117 from carusogabriel/simplify-returns
K.Kosako [Thu, 13 Sep 2018 01:09:16 +0000 (10:09 +0900)]
Merge pull request #117 from carusogabriel/simplify-returns

Simplify returns and ternary expressions

6 years agoSimplify returns and ternary expressions
Gabriel Caruso [Thu, 13 Sep 2018 00:45:46 +0000 (21:45 -0300)]
Simplify returns and ternary expressions

6 years agouse onig_positive_int_multiply() for overflow check
K.Kosako [Wed, 12 Sep 2018 02:05:22 +0000 (11:05 +0900)]
use onig_positive_int_multiply() for overflow check

6 years agorename positive_int_multiply() to onig_positive_int_multiply()
K.Kosako [Wed, 12 Sep 2018 01:54:24 +0000 (10:54 +0900)]
rename positive_int_multiply() to onig_positive_int_multiply()

6 years agorefactoring
K.Kosako [Wed, 12 Sep 2018 01:45:32 +0000 (10:45 +0900)]
refactoring

6 years agoMerge pull request #116 from 0xflotus/patch-1
K.Kosako [Mon, 10 Sep 2018 23:31:47 +0000 (08:31 +0900)]
Merge pull request #116 from 0xflotus/patch-1

fixed windows

6 years agoUpdate README.md
0xflotus [Mon, 10 Sep 2018 22:39:16 +0000 (00:39 +0200)]
Update README.md

6 years agoremove unused import statement
K.Kosako [Mon, 10 Sep 2018 02:04:49 +0000 (11:04 +0900)]
remove unused import statement

6 years agoremove redundant EOLs before EOF (follow PR #115)
K.Kosako [Mon, 10 Sep 2018 02:02:47 +0000 (11:02 +0900)]
remove redundant EOLs before EOF (follow PR #115)

6 years agorefactoring
K.Kosako [Mon, 10 Sep 2018 01:11:38 +0000 (10:11 +0900)]
refactoring

6 years agoMerge pull request #115 from petk/patch-trim-final-eol
K.Kosako [Sun, 9 Sep 2018 05:19:21 +0000 (14:19 +0900)]
Merge pull request #115 from petk/patch-trim-final-eol

Trim trailing final new lines

6 years agoTrim trailing final new lines
Peter Kokot [Sun, 9 Sep 2018 05:03:14 +0000 (07:03 +0200)]
Trim trailing final new lines

6 years agoMerge pull request #114 from petk/patch-trailing-whitespaces-2
K.Kosako [Sat, 8 Sep 2018 01:26:55 +0000 (10:26 +0900)]
Merge pull request #114 from petk/patch-trailing-whitespaces-2

Trim trailing whitespaces