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

Side by Side Diff: src/utils/ios/SkOSFile_iOS.mm

Issue 22875037: My clang now doesn't complain about !"foo". (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 | « src/utils/ios/SkFontHost_iOS.mm ('k') | src/utils/win/SkDWriteGeometrySink.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 * Copyright 2010 Google Inc. 2 * Copyright 2010 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 <Foundation/Foundation.h> 8 #include <Foundation/Foundation.h>
9 #include "SkOSFile.h" 9 #include "SkOSFile.h"
10 #include "SkString.h" 10 #include "SkString.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 byteCount = remaining; 75 byteCount = remaining;
76 } 76 }
77 memcpy(buffer, (char*)[rec->fData bytes] + rec->fOffset, byteCount); 77 memcpy(buffer, (char*)[rec->fData bytes] + rec->fOffset, byteCount);
78 rec->fOffset += byteCount; 78 rec->fOffset += byteCount;
79 SkASSERT(rec->fOffset <= rec->fLength); 79 SkASSERT(rec->fOffset <= rec->fLength);
80 return byteCount; 80 return byteCount;
81 } 81 }
82 } 82 }
83 83
84 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) { 84 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) {
85 SkASSERT(!"Not supported yet"); 85 SkDEBUGFAIL("Not supported yet");
86 return 0; 86 return 0;
87 } 87 }
88 88
89 void sk_fflush(SkFILE* f) { 89 void sk_fflush(SkFILE* f) {
90 SkASSERT(!"Not supported yet"); 90 SkDEBUGFAIL("Not supported yet");
91 } 91 }
92 92
93 void sk_fclose(SkFILE* rec) { 93 void sk_fclose(SkFILE* rec) {
94 SkASSERT(rec); 94 SkASSERT(rec);
95 [rec->fData release]; 95 [rec->fData release];
96 delete rec; 96 delete rec;
97 } 97 }
98 98
OLDNEW
« no previous file with comments | « src/utils/ios/SkFontHost_iOS.mm ('k') | src/utils/win/SkDWriteGeometrySink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698