Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: tools/flags/SkCommandLineFlags.cpp

Issue 14414008: Fix an SkCommandLineFlags bug. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/flags/SkCommandLineFlags.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tools/flags/SkCommandLineFlags.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698