equal
deleted
inserted
replaced
147 // If tail_allowed is true, then the tail must begin with a colon; otherwise, |
147 // If tail_allowed is true, then the tail must begin with a colon; otherwise, |
148 // the option must match exactly. |
148 // the option must match exactly. |
149 static bool match_option(const JavaVMOption* option, const char** names, const char** tail, |
149 static bool match_option(const JavaVMOption* option, const char** names, const char** tail, |
150 bool tail_allowed) { |
150 bool tail_allowed) { |
151 for (/* empty */; *names != NULL; ++names) { |
151 for (/* empty */; *names != NULL; ++names) { |
152 if (match_option(option, *names, tail)) { |
152 if (match_option(option, *names, tail)) { |
153 if (**tail == '\0' || tail_allowed && **tail == ':') { |
153 if (**tail == '\0' || (tail_allowed && **tail == ':')) { |
154 return true; |
154 return true; |
155 } |
155 } |
156 } |
156 } |
157 } |
157 } |
158 return false; |
158 return false; |