ICU-8104 Move REGEXFINDPROGRESS_INTERRUPT macro out of regex.h into implementation

X-SVN-Rev: 28961
This commit is contained in:
Michael Grady 2010-10-30 21:49:29 +00:00
parent 0c21fdf068
commit cfe1b1d92f
2 changed files with 7 additions and 10 deletions

View file

@ -32,6 +32,13 @@
// #include <malloc.h> // Needed for heapcheck testing
// Find progress callback
// ----------------------
// Macro to inline test & call to ReportFindProgress(). Eliminates unnecessary function call.
//
#define REGEXFINDPROGRESS_INTERRUPT(pos, status) \
(fFindProgressCallbackFn != NULL) && (ReportFindProgress(pos, status) == FALSE)
// Smart Backtracking
// ------------------

View file

@ -1624,16 +1624,6 @@ public:
UErrorCode &status);
/**
* inline version of ReportFindProgress() to eliminate function calls where a check for
* the callback suffices.
*
* @draft ICU 4.6
*/
#define REGEXFINDPROGRESS_INTERRUPT(pos, status) \
(fFindProgressCallbackFn != NULL) && (ReportFindProgress(pos, status) == FALSE)
/**
* setTrace Debug function, enable/disable tracing of the matching engine.
* For internal ICU development use only. DO NO USE!!!!