Skip to content

Commit

Permalink
2023-11-07 03:40 UTC+0100 Phil Krylov (phil a t krylov.eu)
Browse files Browse the repository at this point in the history
  * src/3rd/pcre
    ! Updated pcre to 8.45.
  • Loading branch information
tuffnatty committed Nov 7, 2023
1 parent 853b66a commit ef30629
Show file tree
Hide file tree
Showing 41 changed files with 25,507 additions and 14,099 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */

2023-11-07 03:40 UTC+0100 Phil Krylov (phil a t krylov.eu)
* src/3rd/pcre
! Updated pcre to 8.45.

2023-11-07 03:30 UTC+0100 Phil Krylov (phil a t krylov.eu)
* src/3rd/tiff
! Updated tiff to 4.6.0. Removed C99-isms.
Expand Down
17 changes: 9 additions & 8 deletions src/3rd/pcre/LICENCE
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ and semantics are as close as possible to those of the Perl 5 language.

Release 8 of PCRE is distributed under the terms of the "BSD" licence, as
specified below. The documentation for PCRE, supplied in the "doc"
directory, is distributed under the same terms as the software itself.
directory, is distributed under the same terms as the software itself. The data
in the testdata directory is not copyrighted and is in the public domain.

The basic library functions are written in C and are freestanding. Also
included in the distribution is a set of C++ wrapper functions, and a
Expand All @@ -18,13 +19,13 @@ THE BASIC LIBRARY FUNCTIONS
---------------------------

Written by: Philip Hazel
Email local part: ph10
Email domain: cam.ac.uk
Email local part: Philip.Hazel
Email domain: gmail.com

University of Cambridge Computing Service,
Cambridge, England.

Copyright (c) 1997-2013 University of Cambridge
Copyright (c) 1997-2021 University of Cambridge
All rights reserved.


Expand All @@ -33,9 +34,9 @@ PCRE JUST-IN-TIME COMPILATION SUPPORT

Written by: Zoltan Herczeg
Email local part: hzmester
Emain domain: freemail.hu
Email domain: freemail.hu

Copyright(c) 2010-2013 Zoltan Herczeg
Copyright(c) 2010-2021 Zoltan Herczeg
All rights reserved.


Expand All @@ -44,9 +45,9 @@ STACK-LESS JUST-IN-TIME COMPILER

Written by: Zoltan Herczeg
Email local part: hzmester
Emain domain: freemail.hu
Email domain: freemail.hu

Copyright(c) 2009-2013 Zoltan Herczeg
Copyright(c) 2009-2021 Zoltan Herczeg
All rights reserved.


Expand Down
14 changes: 9 additions & 5 deletions src/3rd/pcre/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ else
include $(TOP)$(ROOT)config/none.mk
endif

# ORIGIN http://www.pcre.org/
# VER 8.34
# URL ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.34.tar.gz
# ORIGIN https://www.pcre.org/
# VER 8.45
# URL https://sourceforge.net/projects/pcre/files/pcre/8.45/pcre-8.45.tar.gz/download
# DIFF pcre.diff
#
# MAP LICENCE
Expand Down Expand Up @@ -113,14 +113,18 @@ endif
# MAP sljit/sljitExecAllocator.c sjexeca.c
# MAP sljit/sljitLir.c sjlir.c
# MAP sljit/sljitLir.h sjlir.h
# MAP sljit/sljitNativeARM_Thumb2.c sjarmth2.c
# MAP sljit/sljitNativeARM_v5.c sjarmv5.c
# MAP sljit/sljitNativeARM_32.c sjarm32.c
# MAP sljit/sljitNativeARM_64.c sjarm64.c
# MAP sljit/sljitNativeARM_T2_32.c sjarmth2.c
# MAP sljit/sljitNativeMIPS_32.c sjmips32.c
# MAP sljit/sljitNativeMIPS_64.c sjmips64.c
# MAP sljit/sljitNativeMIPS_common.c sjmipsc.c
# MAP sljit/sljitNativePPC_32.c sjppc32.c
# MAP sljit/sljitNativePPC_64.c sjppc64.c
# MAP sljit/sljitNativePPC_common.c sjppcc.c
# MAP sljit/sljitNativeX86_32.c sjx8632.c
# MAP sljit/sljitNativeX86_64.c sjx8664.c
# MAP sljit/sljitNativeX86_common.c sjx86c.c
# MAP sljit/sljitNativeSPARC_32.c sjsprc32.c
# MAP sljit/sljitNativeSPARC_common.c sjsparcc.c
# MAP sljit/sljitUtils.c sjutils.c
19 changes: 10 additions & 9 deletions src/3rd/pcre/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ sure both macros are undefined; an emulation function will then be used. */
/* Define to 1 if you have the `memmove' function. */
/* #undef HAVE_MEMMOVE */

/* Define to 1 if you have the <memory.h> header file. */
/* #undef HAVE_MEMORY_H */

/* Define if you have POSIX threads libraries and header files. */
/* #undef HAVE_PTHREAD */

Expand All @@ -102,6 +99,9 @@ sure both macros are undefined; an emulation function will then be used. */
/* Define to 1 if you have the <stdint.h> header file. */
/* #undef HAVE_STDINT_H */

/* Define to 1 if you have the <stdio.h> header file. */
/* #undef HAVE_STDIO_H */

/* Define to 1 if you have the <stdlib.h> header file. */
/* #undef HAVE_STDLIB_H */

Expand Down Expand Up @@ -162,8 +162,7 @@ sure both macros are undefined; an emulation function will then be used. */
#define LINK_SIZE 2
#endif

/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
/* Define to the sub-directory where libtool stores uninstalled libraries. */
/* This is ignored unless you are using libtool. */
#ifndef LT_OBJDIR
#define LT_OBJDIR ".libs/"
Expand Down Expand Up @@ -236,7 +235,7 @@ sure both macros are undefined; an emulation function will then be used. */
#define PACKAGE_NAME "PCRE"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "PCRE 8.34"
#define PACKAGE_STRING "PCRE 8.45"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "pcre"
Expand All @@ -245,7 +244,7 @@ sure both macros are undefined; an emulation function will then be used. */
#define PACKAGE_URL ""

/* Define to the version of this package. */
#define PACKAGE_VERSION "8.34"
#define PACKAGE_VERSION "8.45"

/* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
parentheses (of any kind) in a pattern. This limits the amount of system
Expand Down Expand Up @@ -292,7 +291,9 @@ sure both macros are undefined; an emulation function will then be used. */
your system. */
/* #undef PTHREAD_CREATE_JOINABLE */

/* Define to 1 if you have the ANSI C header files. */
/* Define to 1 if all of the C90 standard headers exist (not just the ones
required in a freestanding environment). This macro is provided for
backward compatibility; new code need not use it. */
/* #undef STDC_HEADERS */

/* Define to any value to enable support for Just-In-Time compiling. */
Expand Down Expand Up @@ -337,7 +338,7 @@ sure both macros are undefined; an emulation function will then be used. */
/* #undef SUPPORT_VALGRIND */

/* Version number of package */
#define VERSION "8.34"
#define VERSION "8.45"

/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
Expand Down
19 changes: 10 additions & 9 deletions src/3rd/pcre/pcre.diff
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
diff -urN pcre.orig/pcrejitc.c pcre/pcrejitc.c
--- pcre.orig/pcrejitc.c 2014-02-03 09:05:44.496039042 +0100
+++ pcre/pcrejitc.c 2014-02-03 09:05:44.496039042 +0100
diff --strip-trailing-cr -urN pcre.orig/pcrejitc.c pcre/pcrejitc.c
--- pcre.orig/pcrejitc.c 2020-02-11 17:36:46.000000000 +0000
+++ pcre/pcrejitc.c 2023-11-07 01:09:40.000000000 +0000
@@ -59,7 +59,7 @@
#define SLJIT_VERBOSE 0
#define SLJIT_DEBUG 0
Expand All @@ -10,19 +10,20 @@ diff -urN pcre.orig/pcrejitc.c pcre/pcrejitc.c

#if defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED
#error Unsupported architecture
diff -urN pcre.orig/sjconfi.h pcre/sjconfi.h
--- pcre.orig/sjconfi.h 2014-02-03 09:05:44.536039042 +0100
+++ pcre/sjconfi.h 2014-02-03 09:05:44.536039042 +0100
@@ -323,8 +323,12 @@
diff --strip-trailing-cr -urN pcre.orig/sjconfi.h pcre/sjconfi.h
--- pcre.orig/sjconfi.h 2019-11-19 16:21:54.000000000 +0000
+++ pcre/sjconfi.h 2023-11-07 01:15:20.000000000 +0000
@@ -505,8 +505,13 @@

#if defined(__GNUC__) && !defined(__APPLE__)

+#if ( __GNUC__ > 3 ) || ( ( __GNUC__ == 3 ) && ( __GNUC_MINOR__ >= 4 ) )
#define SLJIT_CALL __attribute__ ((fastcall))
#define SLJIT_FUNC __attribute__ ((fastcall))
#define SLJIT_X86_32_FASTCALL 1
+#else
+#define SLJIT_CALL
+#define SLJIT_FUNC
+#endif
+

#elif defined(_MSC_VER)

20 changes: 13 additions & 7 deletions src/3rd/pcre/pcre.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* This is the public header file for the PCRE library, to be #included by
applications that call the PCRE functions.
Copyright (c) 1997-2013 University of Cambridge
Copyright (c) 1997-2014 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -42,9 +42,9 @@ POSSIBILITY OF SUCH DAMAGE.
/* The current PCRE version information. */

#define PCRE_MAJOR 8
#define PCRE_MINOR 34
#define PCRE_MINOR 45
#define PCRE_PRERELEASE
#define PCRE_DATE 2013-12-15
#define PCRE_DATE 2021-06-15

/* When an application links to a PCRE DLL in Windows, the symbols that are
imported have to be identified as such. When building PCRE, the appropriate
Expand Down Expand Up @@ -321,11 +321,11 @@ these bits, just add new ones on the end, in order to remain compatible. */

/* Types */

struct real_pcre; /* declaration; the definition is private */
typedef struct real_pcre pcre;
struct real_pcre8_or_16; /* declaration; the definition is private */
typedef struct real_pcre8_or_16 pcre;

struct real_pcre16; /* declaration; the definition is private */
typedef struct real_pcre16 pcre16;
struct real_pcre8_or_16; /* declaration; the definition is private */
typedef struct real_pcre8_or_16 pcre16;

struct real_pcre32; /* declaration; the definition is private */
typedef struct real_pcre32 pcre32;
Expand Down Expand Up @@ -491,36 +491,42 @@ PCRE_EXP_DECL void (*pcre_free)(void *);
PCRE_EXP_DECL void *(*pcre_stack_malloc)(size_t);
PCRE_EXP_DECL void (*pcre_stack_free)(void *);
PCRE_EXP_DECL int (*pcre_callout)(pcre_callout_block *);
PCRE_EXP_DECL int (*pcre_stack_guard)(void);

PCRE_EXP_DECL void *(*pcre16_malloc)(size_t);
PCRE_EXP_DECL void (*pcre16_free)(void *);
PCRE_EXP_DECL void *(*pcre16_stack_malloc)(size_t);
PCRE_EXP_DECL void (*pcre16_stack_free)(void *);
PCRE_EXP_DECL int (*pcre16_callout)(pcre16_callout_block *);
PCRE_EXP_DECL int (*pcre16_stack_guard)(void);

PCRE_EXP_DECL void *(*pcre32_malloc)(size_t);
PCRE_EXP_DECL void (*pcre32_free)(void *);
PCRE_EXP_DECL void *(*pcre32_stack_malloc)(size_t);
PCRE_EXP_DECL void (*pcre32_stack_free)(void *);
PCRE_EXP_DECL int (*pcre32_callout)(pcre32_callout_block *);
PCRE_EXP_DECL int (*pcre32_stack_guard)(void);
#else /* VPCOMPAT */
PCRE_EXP_DECL void *pcre_malloc(size_t);
PCRE_EXP_DECL void pcre_free(void *);
PCRE_EXP_DECL void *pcre_stack_malloc(size_t);
PCRE_EXP_DECL void pcre_stack_free(void *);
PCRE_EXP_DECL int pcre_callout(pcre_callout_block *);
PCRE_EXP_DECL int pcre_stack_guard(void);

PCRE_EXP_DECL void *pcre16_malloc(size_t);
PCRE_EXP_DECL void pcre16_free(void *);
PCRE_EXP_DECL void *pcre16_stack_malloc(size_t);
PCRE_EXP_DECL void pcre16_stack_free(void *);
PCRE_EXP_DECL int pcre16_callout(pcre16_callout_block *);
PCRE_EXP_DECL int pcre16_stack_guard(void);

PCRE_EXP_DECL void *pcre32_malloc(size_t);
PCRE_EXP_DECL void pcre32_free(void *);
PCRE_EXP_DECL void *pcre32_stack_malloc(size_t);
PCRE_EXP_DECL void pcre32_stack_free(void *);
PCRE_EXP_DECL int pcre32_callout(pcre32_callout_block *);
PCRE_EXP_DECL int pcre32_stack_guard(void);
#endif /* VPCOMPAT */

/* User defined callback which provides a stack just before the match starts. */
Expand Down
6 changes: 3 additions & 3 deletions src/3rd/pcre/pcrebyte.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
and semantics are as close as possible to those of the Perl 5 language.
Written by Philip Hazel
Copyright (c) 1997-2013 University of Cambridge
Copyright (c) 1997-2014 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -311,9 +311,9 @@ while(TRUE)
ptr++;
}
/* Control should never reach here in 16/32 bit mode. */
#endif /* !COMPILE_PCRE8 */

#else /* In 8-bit mode, the pattern does not need to be processed. */
return 0;
#endif /* !COMPILE_PCRE8 */
}

/* End of pcre_byte_order.c */
Loading

0 comments on commit ef30629

Please sign in to comment.