Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README/ReleaseNotes/v642/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ The `TMVA_SOFIE_GNN` tutorials have been migrated to this workflow and produce i
* Including `RConfig.h` and `RVersion.h` is now deprecated and will be removed after ROOT 6.44, use instead `ROOT/RConfig.hxx` and `ROOT/RVersion.hxx`.
* The header `Rpair.h` is deprecated and will be removed after ROOT 6.44, use `<utility>` instead.
* The headers `Htypes.h` and `Gtypes.h` that were deprecated in ROOT 6.20 will now emit warnings and will be fully removed in ROOT 6.44. Use instead `Rtypes.h`.
* The header `Match.h` is deprecated and will be removed in ROOT 6.44, use instead public interface of `TRegExp.h`
* The header `GLConstants.h` is no longer part of ROOT installed headers.
* The header `PosixThreadInc.h` is deprecated and will be removed after ROOT 6.44. Use instead `<ctime>` and `<cstdlib>`.
* The header `RStringView.h` deprecated in ROOT 6.14 will now emit warnings and will be fully removed after ROOT 6.44. Use `ROOT/RStringView.hxx` instead.
Expand Down
3 changes: 3 additions & 0 deletions core/base/inc/Match.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
//////////////////////////////////////////////////////////////////////////

#include <sys/types.h>
#if !defined(ROOT_Match_cxx) && !defined(G__DICTIONARY)
#warning "This header is deprecated and will be removed in ROOT 6.44, use instead public interface of `TRegExp.h`"
#endif

typedef unsigned short Pattern_t;

Expand Down
4 changes: 1 addition & 3 deletions core/base/inc/TRegexp.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

#include "Rtypes.h"

#include "Match.h"

class TString;


Expand All @@ -34,7 +32,7 @@ class TRegexp {
enum EStatVal { kOK = 0, kIllegal, kNomem, kToolong };

private:
Pattern_t *fPattern; // Compiled pattern
unsigned short *fPattern; // Compiled pattern
EStatVal fStat; // Status
static const unsigned fgMaxpat; // Max length of compiled pattern

Expand Down
2 changes: 1 addition & 1 deletion core/base/src/Match.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <cctype>
#include <cstring>


#define ROOT_Match_cxx
#include "Match.h"


Expand Down
5 changes: 4 additions & 1 deletion core/base/src/TRegexp.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@ Warning: The preferred way to use regular expressions is via std::regex.
E.g., Index() functions may return incorrect result.
*/

#define ROOT_Match_cxx
#include "Match.h"
#include "TRegexp.h"
#include "TString.h"
#include "TError.h"
#include "ThreadLocalStorage.h"

const unsigned TRegexp::fgMaxpat = 2048;


#include <type_traits>

////////////////////////////////////////////////////////////////////////////////
/// Create a regular expression from the input string. If wildcard is
Expand All @@ -52,6 +54,7 @@ const unsigned TRegexp::fgMaxpat = 2048;

TRegexp::TRegexp(const char *re, Bool_t wildcard)
{
static_assert(std::is_same_v<std::remove_reference_t<decltype(*fPattern)>, Pattern_t>, "Type mismatch in fPattern!");
if (wildcard)
GenPattern(MakeWildcard(re));
else
Expand Down
2 changes: 1 addition & 1 deletion core/rint/inc/TTabCom.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class TTabCom {
char* fBuf; // initialized by Hook()
int* fpLoc; // initialized by Hook()

Pattern_t fPat[ kNUM_PAT ][ MAX_LEN_PAT ]; // array of patterns
unsigned short fPat[ kNUM_PAT ][ MAX_LEN_PAT ]; // array of patterns
const char* fRegExp[ kNUM_PAT ]; // corresponding regular expression plain text
Bool_t fVarIsPointer; // frodo: pointer or not flag
Int_t fLastIter; // frodo: iteration counter for recursive MakeClassFromVarName
Expand Down
3 changes: 3 additions & 0 deletions core/rint/src/TTabCom.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@
////////////////////////////////////////////////////////////////////////////

#include "RConfigure.h"
#define ROOT_Match_cxx
#include "Match.h"
#include "TRegexp.h"
#include "TTabCom.h"
#include "TClass.h"
#include "TClassTable.h"
Expand Down
Loading