aboutsummaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-07 08:26:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-07 08:26:56 +0000
commit8c1451d519d37afed3712f48938ae05374ba177f (patch)
tree52063eff54e859f4e36055aaee792009a91c8d17 /re.c
parenta59335846524bff7c240bbfba01cf77ef17ab946 (diff)
downloadruby-8c1451d519d37afed3712f48938ae05374ba177f.tar.gz
re.c: indent [ci skip]
* re.c (onig_new_with_source, rb_reg_search0): adjust indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/re.c b/re.c
index eb87d0ea88..b48b051527 100644
--- a/re.c
+++ b/re.c
@@ -835,24 +835,24 @@ rb_reg_named_captures(VALUE re)
static int
onig_new_with_source(regex_t** reg, const UChar* pattern, const UChar* pattern_end,
- OnigOptionType option, OnigEncoding enc, const OnigSyntaxType* syntax,
- OnigErrorInfo* einfo, const char *sourcefile, int sourceline)
+ OnigOptionType option, OnigEncoding enc, const OnigSyntaxType* syntax,
+ OnigErrorInfo* einfo, const char *sourcefile, int sourceline)
{
- int r;
+ int r;
- *reg = (regex_t* )malloc(sizeof(regex_t));
- if (IS_NULL(*reg)) return ONIGERR_MEMORY;
+ *reg = (regex_t* )malloc(sizeof(regex_t));
+ if (IS_NULL(*reg)) return ONIGERR_MEMORY;
- r = onig_reg_init(*reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);
- if (r) goto err;
+ r = onig_reg_init(*reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);
+ if (r) goto err;
- r = onig_compile(*reg, pattern, pattern_end, einfo, sourcefile, sourceline);
- if (r) {
- err:
- onig_free(*reg);
- *reg = NULL;
- }
- return r;
+ r = onig_compile(*reg, pattern, pattern_end, einfo, sourcefile, sourceline);
+ if (r) {
+ err:
+ onig_free(*reg);
+ *reg = NULL;
+ }
+ return r;
}
static Regexp*
@@ -1521,7 +1521,7 @@ rb_reg_search0(VALUE re, VALUE str, long pos, int reverse, int set_backref_str)
if (err) rb_memerror();
}
else {
- FL_UNSET(match, FL_TAINT);
+ FL_UNSET(match, FL_TAINT);
}
if (set_backref_str) {