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

Side by Side Diff: core/include/fxcrt/fx_ext.h

Issue 1821043003: Remove FX_WORD in favor of uint16_t. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use stdint.h directly, bitfield minefield. Created 4 years, 9 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 | « core/include/fxcrt/fx_basic.h ('k') | core/include/fxcrt/fx_string.h » ('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 #ifndef CORE_INCLUDE_FXCRT_FX_EXT_H_ 7 #ifndef CORE_INCLUDE_FXCRT_FX_EXT_H_
8 #define CORE_INCLUDE_FXCRT_FX_EXT_H_ 8 #define CORE_INCLUDE_FXCRT_FX_EXT_H_
9 9
10 #include <cctype> 10 #include <cctype>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 void FX_Random_GenerateBase(FX_DWORD* pBuffer, int32_t iCount); 91 void FX_Random_GenerateBase(FX_DWORD* pBuffer, int32_t iCount);
92 92
93 void FX_Random_GenerateMT(FX_DWORD* pBuffer, int32_t iCount); 93 void FX_Random_GenerateMT(FX_DWORD* pBuffer, int32_t iCount);
94 94
95 void FX_Random_GenerateCrypto(FX_DWORD* pBuffer, int32_t iCount); 95 void FX_Random_GenerateCrypto(FX_DWORD* pBuffer, int32_t iCount);
96 96
97 #ifdef PDF_ENABLE_XFA 97 #ifdef PDF_ENABLE_XFA
98 typedef struct FX_GUID { 98 typedef struct FX_GUID {
99 FX_DWORD data1; 99 FX_DWORD data1;
100 FX_WORD data2; 100 uint16_t data2;
101 FX_WORD data3; 101 uint16_t data3;
102 uint8_t data4[8]; 102 uint8_t data4[8];
103 } FX_GUID, *FX_LPGUID; 103 } FX_GUID, *FX_LPGUID;
104 typedef FX_GUID const* FX_LPCGUID; 104 typedef FX_GUID const* FX_LPCGUID;
105 void FX_GUID_CreateV4(FX_LPGUID pGUID); 105 void FX_GUID_CreateV4(FX_LPGUID pGUID);
106 void FX_GUID_ToString(FX_LPCGUID pGUID, 106 void FX_GUID_ToString(FX_LPCGUID pGUID,
107 CFX_ByteString& bsStr, 107 CFX_ByteString& bsStr,
108 FX_BOOL bSeparator = TRUE); 108 FX_BOOL bSeparator = TRUE);
109 #endif // PDF_ENABLE_XFA 109 #endif // PDF_ENABLE_XFA
110 110
111 template <class baseType> 111 template <class baseType>
(...skipping 13 matching lines...) Expand all
125 j -= gap; 125 j -= gap;
126 } 126 }
127 pArray[j + gap] = v1; 127 pArray[j + gap] = v1;
128 } 128 }
129 gap >>= 1; 129 gap >>= 1;
130 } 130 }
131 } 131 }
132 }; 132 };
133 133
134 #endif // CORE_INCLUDE_FXCRT_FX_EXT_H_ 134 #endif // CORE_INCLUDE_FXCRT_FX_EXT_H_
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_basic.h ('k') | core/include/fxcrt/fx_string.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698