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

Side by Side Diff: src/utils/SkParse.cpp

Issue 1313203003: Remove include of stdlib.h from SkTypes.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up qsort conversion. Created 5 years, 3 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
« no previous file with comments | « src/utils/SkEventTracer.cpp ('k') | src/utils/SkRTConf.cpp » ('j') | 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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkParse.h" 10 #include "SkParse.h"
11 11
12 #include <stdlib.h>
13
12 static inline bool is_between(int c, int min, int max) 14 static inline bool is_between(int c, int min, int max)
13 { 15 {
14 return (unsigned)(c - min) <= (unsigned)(max - min); 16 return (unsigned)(c - min) <= (unsigned)(max - min);
15 } 17 }
16 18
17 static inline bool is_ws(int c) 19 static inline bool is_ws(int c)
18 { 20 {
19 return is_between(c, 1, 32); 21 return is_between(c, 1, 32);
20 } 22 }
21 23
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 return -1; 288 return -1;
287 } 289 }
288 290
289 #ifdef SK_SUPPORT_UNITTEST 291 #ifdef SK_SUPPORT_UNITTEST
290 void SkParse::UnitTest() 292 void SkParse::UnitTest()
291 { 293 {
292 // !!! additional parse tests go here 294 // !!! additional parse tests go here
293 SkParse::TestColor(); 295 SkParse::TestColor();
294 } 296 }
295 #endif 297 #endif
OLDNEW
« no previous file with comments | « src/utils/SkEventTracer.cpp ('k') | src/utils/SkRTConf.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698