summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7, resolve conflictsjan.nijtmans2021-01-111-2/+2
|\
* \ Merge 8.7jan.nijtmans2020-12-081-3/+3
|\ \ | |/
| * Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-3/+3
| | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* | New macro TclNewIndexObj() which does the same as TclNewWideIntObjFromSize() ↵jan.nijtmans2020-09-181-1/+1
| | | | | | | | but optimized the same way as TclNewIntObj().
* | Merge 8.7jan.nijtmans2020-09-171-3/+3
|\ \ | |/
| * Eliminate many usages of Tcl_NewObj (-> TclNewObj) and Tcl_NewIntObj (-> ↵jan.nijtmans2020-09-171-3/+3
| | | | | | | | TclNewIntObj or Tcl_NewWideIntObj)
* | Merge 8.7jan.nijtmans2020-03-091-2/+1
|\ \ | |/
| * More TCL_UNUSED.dgp2020-03-081-2/+1
| |
* | Merge 8.7jan.nijtmans2020-02-281-5/+6
|\ \ | |/
| * Mark more function paramaters as unused. Now Tcl compiles fully (on UNIX and ↵jan.nijtmans2019-09-051-1/+2
| |\ | | | | | | | | | Windows) without -Wunused-parameters warnings
| * \ Merge tip-548jan.nijtmans2019-08-291-2/+2
| |\ \ | | |/
| * | Experiment: compile Tcl with C++ compiler. WIPjan.nijtmans2019-07-041-4/+4
| | |
* | | Merge 8.7jan.nijtmans2019-08-281-2/+2
|\ \ \ | | |/ | |/|
| * | Merge 8.6jan.nijtmans2019-08-281-2/+2
| |\ \ | | |/ | |/|
| | * Add /* FALLTHRU */ markers in various places (silencing possible GCC ↵jan.nijtmans2019-08-281-2/+2
| | | | | | | | | | | | warnings). Eliminate some more "register" keywords. Eliminate (or silence) some unused function parameters.
| | * Backport [array names -regexp] should support backrefsdgp2017-08-101-4/+11
| | |
| * | More usage of TCL_INDEX_NONE in stead of -1. More internal use of size_t, ↵jan.nijtmans2019-06-071-5/+5
| | | | | | | | | | | | mainly in memory statistics (debug-mode only), and TCL_Z_MODIFIER. This gives broader memory statistics on win64.
* | | Merge 8.7, and add some more usage of TCL_INDEX_NONE/TCL_AUTO_LENGTHjan.nijtmans2019-06-061-1/+1
|\ \ \ | |/ /
| * | More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-1/+1
| | | | | | | | | | | | and (unsigned) type-casts, which don't make sense any more.
* | | More internal use of size_tjan.nijtmans2019-03-291-3/+3
| | |
* | | Change regexp C API to handle indexes > 2G. New TIP upcoming.jan.nijtmans2019-03-291-6/+6
| | |
* | | Make "struct regmatch_t" match "Tcl_RegExpIndices" (again). Win64 build was ↵jan.nijtmans2019-03-131-1/+1
| | | | | | | | | | | | broken because of this. Other platforms were OK.
* | | More size_t-related consolidations. Now regexp can handle strings >2GB and ↵jan.nijtmans2019-02-051-1/+1
| | | | | | | | | | | | more. Remove many type-casts which are not necessary any more.
* | | Merge 8.7jan.nijtmans2019-01-281-1/+1
|\ \ \ | |/ /
| * | New internal macro TclFetchIntRep, which is faster than Tcl_FetchIntRep. jan.nijtmans2019-01-281-1/+1
| | | | | | | | | But ... don't use this function when the result is only compared to NULL: that's just overkill.
* | | Many internal int -> size_t increases, so string lengths > 2Gb can be ↵jan.nijtmans2018-12-261-1/+1
| | | | | | | | | | | | handled correctly in many more places.
* | | Merge 8.7jan.nijtmans2018-12-111-1/+1
|\ \ \ | |/ / | | | | | | In test-cases, don't load Tcltest package if it isn't actually used. Another round of size_t related improvements. Nothing functional. Also improve some comments.
* | | Now that we have TCL_AUTO_LENGTH/TCL_IO_FAILURE macro's, use them to make ↵jan.nijtmans2018-11-181-5/+5
| | | | | | | | | | | | | | | | | | code and documentation more readable. Shifted to feature branch as a temporary measure since it doesn't build.
* | | Implement TIP 445dgp2018-11-131-28/+32
|\ \ \ | |/ /
| * | merge trunkdgp2017-04-121-2/+2
| |\ \
| * \ \ merge trunkdgp2016-11-281-3/+10
| |\ \ \
| * | | | Revise "regexp" Tcl_ObjType to use proposed routines.dgp2016-04-041-28/+32
| | |_|/ | |/| |
* | | | Change ckalloc and friends to Tcl_Alloc and friends. Add two defines, ↵jan.nijtmans2018-09-011-8/+8
|\ \ \ \ | | |_|/ | |/| | | | | | TCL_IO_FAILURE and TCL_NO_LENGTH (experimental, still open to be renamed following discussion)
* | | | Use size_t in more API's, e.g. *RegExp* typesjan.nijtmans2018-07-021-26/+25
|/ / /
* | | Remove some unnecessary "struct" definitions and some type casts no longer ↵jan.nijtmans2017-04-111-2/+2
| |/ |/| | | | | necessary. No functional changes.
* | Allow [array names -regexp] to use backreferences. This capability was ↵andy2016-11-251-3/+10
|/ | | | broken by [71270e9141]. See also bug [1366683].
* Another round of refCount consistancy improvements.jan.nijtmans2015-07-021-3/+3
|
* [84af1192f5]: [regsub] compiler no longer confused by quantification handling.dkf2014-09-091-1/+2
|
* merge core-8-5-branchjan.nijtmans2013-01-311-5/+5
|\
| * Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-5/+5
| | | | | | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
| * Backport fix for [Bug 2857044].dgp2011-04-271-0/+1
| |
* | more result generation conversiondkf2012-08-031-2/+2
| |
* | * generic/tclUtil.c (TclDStringToObj): Added internal function to makedkf2012-04-251-3/+1
| | | | | | | | the fairly-common operation of converting a DString into an Obj a more efficient one.
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-6/+6
| | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * generic/tclRegexp.c (FinalizeRegexp): full reset data tohobbs2006-04-071-1/+7
| | | | | | | | | | | | indicate that readiness for reinitialization.
| | * * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),das2005-11-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to configure (flag can't be present twice, so can't be in both CFLAGS and LDFLAGS during configure), don't use -prebind when deploying on 10.4, define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542). (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete autoconf macros. Sync with tk/unix/tcl.m4, sync whitespace with HEAD. * unix/configure.in: fix obsolete autoconf macros, sync gratuitous formatting/ordering differences with tk/unix/configure.in. * unix/Makefile.in: add CFLAGS to tclsh/tcltest link to make executable linking the same as during configure (needed to avoid loosing any linker relevant flags in CFLAGS, in particular flags that can't be in LDFLAGS). Avoid concurrent linking of tclsh and compiling of tclTestInit.o or xtTestInit.o during parallel make. (checkstubs, checkdoc, checkexports): dependency and Darwin fixes * unix/tclLoadDyld.c (TclpDlopen): use NSADDIMAGE_OPTION_WITH_SEARCHING on second NSAddImage only. [Bug 1204237] (TclGuessPackageName): should not be MODULE_SCOPE. (TclpLoadMemory): ppc64 and endian (i386) fixes, add support for loading universal (fat) bundles from memory. * unix/tclUnixPort.h: * unix/tclUnixFCmd.c: add support for new Tiger copyfile() API to enable copying of xattrs & ACLs by [file copy]. * generic/tcl.h: add Darwin specifc configure overrides for TCL_WIDE defines to support fat compiles of ppc and ppc64 at the same time, (replaces Darwin CVS fix by emoy, rdar://3693001). add/correct location of version numbers in macosx files. * generic/tclInt.h: clarify fat compile comment. * unix/tclUnixPort.h: add Darwin specifc configure overrides to support fat compiles, where configure runs only once for multiple architectures (replaces Darwin CVS fix by emoy, rdar://3693001). * macosx/tclMacOSXBundle.c: * macosx/tclMacOSXNotify.c: * unix/tclUnixNotfy.c: * unix/tclUnixPort.h: fix #include order to support compile time override of HAVE_COREFOUNDATION in tclUnixPort.h when building for ppc64 * macosx/Tcl.pbproj/default.pbxuser (new file): * macosx/Tcl.pbproj/jingham.pbxuser: * macosx/Tcl.pbproj/project.pbxproj: sync with HEAD. * macosx/README: clarification/cleanup, sync with HEAD, document universal (fat) builds via CFLAGS (i.e. all of ppc ppc64 i386 at once). * macosx/Makefile: add support for reusing configure cache, build target fixes, remove GENERIC_FLAGS override now handled by tcl.m4. * generic/tclIOUtil.c: * generic/tclRegexp.c: * generic/tclVar.c: declare globals used only in own file as static (sync with HEAD). * generic/rege_dfa.c (getvacant): * generic/regexec.c (cfind): * generic/tclCompExpr.c (CompileSubExpr): * unix/tclUnixChan.c (TclUnixWaitForFile): initialise variables to silence gcc 4 warnings. * generic/regguts.h: only #define NDEBUG if not already #defined. * macosx/tclMacOSXNotify.c: sync whitespace & comments with HEAD * unix/configure: regen.
* | | * generic/tclBasic.c, generic/tclClock.c, generic/tclEncoding.c,dkf2010-10-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEnv.c, generic/tclLoad.c, generic/tclNamesp.c, * generic/tclObj.c, generic/tclRegexp.c, generic/tclResolve.c, * generic/tclResult.c, generic/tclUtil.c, macosx/tclMacOSXFCmd.c: More purging of strcpy() from locations where we already know the length of the data being copied.