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

Side by Side Diff: xfa/fgas/crt/fgas_system.cpp

Issue 1830323006: Remove FX_DWORD from XFA. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 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
« no previous file with comments | « xfa/fgas/crt/fgas_stream.cpp ('k') | xfa/fgas/font/fgas_fontutils.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 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fgas/crt/fgas_system.h" 7 #include "xfa/fgas/crt/fgas_system.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return iLen; 54 return iLen;
55 #endif 55 #endif
56 } 56 }
57 57
58 FX_BOOL FX_fsetsize(FXSYS_FILE* file, int32_t size) { 58 FX_BOOL FX_fsetsize(FXSYS_FILE* file, int32_t size) {
59 FXSYS_assert(file != NULL); 59 FXSYS_assert(file != NULL);
60 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_ 60 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_
61 return _chsize(_fileno(file), size) == 0; 61 return _chsize(_fileno(file), size) == 0;
62 #elif _FX_OS_ == _FX_WIN32_MOBILE_ 62 #elif _FX_OS_ == _FX_WIN32_MOBILE_
63 HANDLE hFile = _fileno(file); 63 HANDLE hFile = _fileno(file);
64 FX_DWORD dwPos = ::SetFilePointer(hFile, 0, 0, FILE_CURRENT); 64 uint32_t dwPos = ::SetFilePointer(hFile, 0, 0, FILE_CURRENT);
65 ::SetFilePointer(hFile, size, 0, FILE_BEGIN); 65 ::SetFilePointer(hFile, size, 0, FILE_BEGIN);
66 FX_BOOL bRet = ::SetEndOfFile(hFile); 66 FX_BOOL bRet = ::SetEndOfFile(hFile);
67 ::SetFilePointer(hFile, (int32_t)dwPos, 0, FILE_BEGIN); 67 ::SetFilePointer(hFile, (int32_t)dwPos, 0, FILE_BEGIN);
68 return bRet; 68 return bRet;
69 #else 69 #else
70 return FALSE; 70 return FALSE;
71 #endif 71 #endif
72 } 72 }
73 73
74 FX_FLOAT FX_wcstof(const FX_WCHAR* pwsStr, int32_t iLength, int32_t* pUsedLen) { 74 FX_FLOAT FX_wcstof(const FX_WCHAR* pwsStr, int32_t iLength, int32_t* pUsedLen) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } else { 108 } else {
109 break; 109 break;
110 } 110 }
111 } 111 }
112 } 112 }
113 if (pUsedLen) { 113 if (pUsedLen) {
114 *pUsedLen = iUsedLen; 114 *pUsedLen = iUsedLen;
115 } 115 }
116 return bNegtive ? -fValue : fValue; 116 return bNegtive ? -fValue : fValue;
117 } 117 }
OLDNEW
« no previous file with comments | « xfa/fgas/crt/fgas_stream.cpp ('k') | xfa/fgas/font/fgas_fontutils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698