Kaydet (Commit) ce2147ec authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Code clean up.

üst b2ceee71
...@@ -364,7 +364,7 @@ class REGEXP_DLLPUBLIC Regexpr ...@@ -364,7 +364,7 @@ class REGEXP_DLLPUBLIC Regexpr
sal_Int32 arg2, sal_Unicode *end); sal_Int32 arg2, sal_Unicode *end);
sal_Bool at_begline_loc_p(const sal_Unicode *local_pattern, sal_Bool at_begline_loc_p(const sal_Unicode *local_pattern,
const sal_Unicode *p); const sal_Unicode *p);
sal_Bool at_endline_loc_p(const sal_Unicode *p, const sal_Unicode *pend); sal_Bool at_endline_loc_p(const sal_Unicode *p);
reg_errcode_t compile_range(sal_Unicode range_begin, sal_Unicode range_end, sal_Unicode *b); reg_errcode_t compile_range(sal_Unicode range_begin, sal_Unicode range_end, sal_Unicode *b);
sal_Bool group_in_compile_stack(compile_stack_type compile_stack, sal_Bool group_in_compile_stack(compile_stack_type compile_stack,
sal_uInt32 regnum); sal_uInt32 regnum);
......
...@@ -688,7 +688,7 @@ Regexpr::at_begline_loc_p(const sal_Unicode *local_pattern, const sal_Unicode *p ...@@ -688,7 +688,7 @@ Regexpr::at_begline_loc_p(const sal_Unicode *local_pattern, const sal_Unicode *p
at least one character after the $, i.e., `P < PEND'. */ at least one character after the $, i.e., `P < PEND'. */
sal_Bool sal_Bool
Regexpr::at_endline_loc_p(const sal_Unicode *p, const sal_Unicode * /* pend */ ) Regexpr::at_endline_loc_p(const sal_Unicode *p)
{ {
const sal_Unicode *next = p; const sal_Unicode *next = p;
//sal_Bool next_backslash = *next == (sal_Unicode)'\\'; //sal_Bool next_backslash = *next == (sal_Unicode)'\\';
...@@ -993,7 +993,7 @@ Regexpr::regex_compile() ...@@ -993,7 +993,7 @@ Regexpr::regex_compile()
if ( /* If at end of pattern, it's an operator. */ if ( /* If at end of pattern, it's an operator. */
p == pend p == pend
/* Otherwise, depends on what's next. */ /* Otherwise, depends on what's next. */
|| at_endline_loc_p(p, pend)) { || at_endline_loc_p(p)) {
BUF_PUSH(endline); BUF_PUSH(endline);
} else { } else {
goto normal_char; goto normal_char;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment