diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..c75e875a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: weekly diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..6638bad2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +name: ci + +on: + push: + branches: [master, main] + pull_request: + +jobs: + test: + name: ${{ matrix.compiler }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + compiler: [gcc, clang] + env: + CC: ${{ matrix.compiler }} + steps: + - uses: actions/checkout@v7 + - name: Install build prerequisites + run: | + sudo apt-get update + sudo apt-get install -y autoconf automake libtool + - name: Build + run: | + ./autogen.sh + ./configure + make + - name: Test + run: make test + + sanitizers: + name: ASan + UBSan + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - name: Install build prerequisites + run: | + sudo apt-get update + sudo apt-get install -y autoconf automake libtool + - name: Build with sanitizers + run: | + ./autogen.sh + ./configure CFLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer" \ + LDFLAGS="-fsanitize=address,undefined" + make + - name: Test + run: make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7942770b..00000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: c - -branches: - except: - - ruby-2.x - -compiler: - - gcc - - clang - -env: - - CFLAGS=--coverage CONFOPT= - -sudo: false - -addons: - apt: - packages: - - lcov - #- python3 - -before_install: - - gem install lcoveralls - -before_script: - - ./autogen.sh - - ./configure $CONFOPT && make - -script: - - make test - -after_success: - - lcov -c -d .libs -d enc/.libs -o coverage.info - - lcoveralls --retry-count 5 coverage.info - - bash <(curl -s https://codecov.io/bash) diff --git a/HISTORY b/HISTORY index 9858cc63..be9b5c62 100644 --- a/HISTORY +++ b/HISTORY @@ -968,7 +968,7 @@ History of Oniguruma Any, Assigned, C, Cc, L, Lm, Arabic, Greek etc... 2006/09/21: [impl] add USE_UNICODE_PROPERTIES into regenc.h. 2006/09/21: [impl] remove USE_UNICODE_FULL_RANGE_CTYPE. -2006/09/20: [impl] change ONIGENC_CTYPE_XXXX to sequencial values. +2006/09/20: [impl] change ONIGENC_CTYPE_XXXX to sequential values. add BIT_CTYPE_XXXX bit flags to regenc.h. update XXXX_CtypeTable[] for BIT_CTYPE_ALNUM. 2006/09/19: [memo] move from CVS to Subversion (1.3.2). @@ -1430,7 +1430,7 @@ History of Oniguruma 2004/12/16: [test] success in ruby 1.9.0 (2004-12-16) [i686-linux]. 2004/12/16: [dist] update hash.c.patch. 2004/12/15: [bug] (thanks matz) - char > 127 should be casted to unsigned char. (utf8.c) + char > 127 should be cast to unsigned char. (utf8.c) 2004/12/13: [impl] add HAVE_PROTOTYPES and HAVE_STDARG_PROTOTYPES definition to oniguruma.h in the case __cplusplus. 2004/12/06: [dist] update doc/RE and doc/RE.ja. @@ -2337,7 +2337,7 @@ History of Oniguruma 2003/03/08: [impl] remove check_backref_number(). 2003/03/08: [bug] called group in 0-repeat should not be eliminated from compile code. ex. /(?*n)(?){0}/ (thanks akr) - add is_refered member to QualifierNode. + add is_referred member to QualifierNode. 2003/03/07: [impl] use hash table(st.[ch]) for implementation of name table. (enable on Ruby in default) 2003/03/07: [new] add regex_foreach_names(). @@ -2390,7 +2390,7 @@ History of Oniguruma if it is set, then error /(\1)/, /\1(..)/ etc... 2003/02/26: [spec] if backref number is greater than max group number, then return compile error. (REGERR_INVALID_BACKREF_NUMBER) -2003/02/26: [tune] bad implemented N_ALT case in get_min_match_length(). +2003/02/26: [tune] badly implemented N_ALT case in get_min_match_length(). 2003/02/26: [dist] auto update testc.c and win32/testc.c in dist target. 2003/02/26: [impl] add -win option to testconv.rb. 2003/02/25: [spec] allow to assign same name to different group. @@ -2485,7 +2485,7 @@ History of Oniguruma 2003/01/31: [impl] rename TTRANS() to TOLOWER(). 2003/01/30: [bug] .c.o --> .c.obj in win32\Makefile. 2003/01/30: [impl] add -DNOT_RUBY to Makefile.in. - NOT_RUBY is refered in regint.h for escape double + NOT_RUBY is referred in regint.h for escape double including config.h. 2003/01/30: [impl] when string hasn't case ambiguity, don't compile to ignore case opcode. @@ -2510,7 +2510,7 @@ History of Oniguruma 2003/01/18: [impl] change REGION_NOTPOS to REG_REGION_NOTPOS in regex.h. 2003/01/17: [dist] add sample/simple.c. 2003/01/17: [inst] add configure option --with-rubydir. -2003/01/17: [bug] bad implemeted POSIX API options. +2003/01/17: [bug] badly implemented POSIX API options. default: /./ not match "\n", anchor not match "\n" REG_NEWLINE: /./ not match "\n", anchor match "\n" 2003/01/16: [impl] rewrite POSIX API regexec() for speed up. diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 1984573b..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,42 +0,0 @@ -version: 1.0.{build} - -branches: - except: - - ruby-2.x - - onig-5.9.x-mod - - onig-5.9.x-mod_for_bregonig-v2 - -environment: - matrix: - - ARCH: x64 - PYOPT: -3 - - ARCH: x86 - PYOPT: -3.4-32 - -install: -- cmd: |- - rem Check environments. - rem path - rem dir C:\ - rem dir "C:\Program Files" - rem dir "C:\Program Files\Microsoft SDKs\Windows" - rem dir "C:\Program Files (x86)" - rem dir "C:\Program Files (x86)\Windows Kits" - rem Using Windows SDK 7.1 (VC10) - rem "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /%ARCH% /release - rem Using VC12 - "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %ARCH% - path - -build_script: -- cmd: |- - nmake -f win32\Makefile - dir build_%ARCH%\onigmo.dll - \msys64\usr\bin\file build_%ARCH%\onigmo.dll - -test_script: -- cmd: |- - py %PYOPT% -c "import locale; print(locale.getpreferredencoding())" - nmake -f win32\Makefile test - -# vim: ts=2 sw=2 sts=2 et diff --git a/doc/API b/doc/API index 1dcb93ce..255c17f2 100644 --- a/doc/API +++ b/doc/API @@ -468,7 +468,7 @@ Onigmo (Oniguruma-mod) API Version 6.1.2 2017/05/10 Return the root node of capture history data tree. - This value is undefined if matching has faild. + This value is undefined if matching has failed. arguments 1 region: matching result. diff --git a/st.c b/st.c index 02879868..139dde68 100644 --- a/st.c +++ b/st.c @@ -721,7 +721,7 @@ st_free_table(st_table *tab) } #ifdef RUBY -/* Return byte size of memory allocted for table TAB. */ +/* Return byte size of memory allocated for table TAB. */ size_t st_memsize(const st_table *tab) { diff --git a/st.h b/st.h index 7c109b04..0135fa44 100644 --- a/st.h +++ b/st.h @@ -1,7 +1,7 @@ /* This is a public domain general purpose hash table package originally written by Peter Moore @ UCB. - The hash table data strutures were redesigned and the package was + The hash table data structures were redesigned and the package was rewritten by Vladimir Makarov . */ #ifndef RUBY_ST_H