| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkCommandLineFlags.h" | 8 #include "SkCommandLineFlags.h" |
| 9 #include "SkTDArray.h" |
| 9 | 10 |
| 10 static bool string_is_in(const char* target, const char* set[], size_t len) { | 11 static bool string_is_in(const char* target, const char* set[], size_t len) { |
| 11 for (size_t i = 0; i < len; i++) { | 12 for (size_t i = 0; i < len; i++) { |
| 12 if (0 == strcmp(target, set[i])) { | 13 if (0 == strcmp(target, set[i])) { |
| 13 return true; | 14 return true; |
| 14 } | 15 } |
| 15 } | 16 } |
| 16 return false; | 17 return false; |
| 17 } | 18 } |
| 18 | 19 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 gHead = NULL; | 255 gHead = NULL; |
| 255 while (flag != NULL) { | 256 while (flag != NULL) { |
| 256 SkFlagInfo* next = flag->next(); | 257 SkFlagInfo* next = flag->next(); |
| 257 SkDELETE(flag); | 258 SkDELETE(flag); |
| 258 flag = next; | 259 flag = next; |
| 259 } | 260 } |
| 260 if (helpPrinted) { | 261 if (helpPrinted) { |
| 261 exit(0); | 262 exit(0); |
| 262 } | 263 } |
| 263 } | 264 } |
| OLD | NEW |