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

Unified Diff: third_party/hunspell/google/bdict.h

Issue 1547213002: Switch to standard integer types in third_party/hunspell/google/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/hunspell/google/bdict.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/hunspell/google/bdict.h
diff --git a/third_party/hunspell/google/bdict.h b/third_party/hunspell/google/bdict.h
index faa7b84ced78be075256644f78e9a59e5b63f2ba..dc333695829971853bef27f7154bcca2f2cb3201 100644
--- a/third_party/hunspell/google/bdict.h
+++ b/third_party/hunspell/google/bdict.h
@@ -5,7 +5,9 @@
#ifndef THIRD_PARTY_HUNSPELL_GOOGLE_BDICT_H_
#define THIRD_PARTY_HUNSPELL_GOOGLE_BDICT_H_
-#include "base/basictypes.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/md5.h"
// BDict (binary dictionary) format. All offsets are little endian.
@@ -107,15 +109,15 @@ class BDict {
MINOR_VERSION = 0
};
struct Header {
- uint32 signature;
+ uint32_t signature;
// Major versions are incompatible with other major versions. Minor versions
// should be readable by older programs expecting the same major version.
- uint16 major_version;
- uint16 minor_version;
+ uint16_t major_version;
+ uint16_t minor_version;
- uint32 aff_offset; // Offset of the aff data.
- uint32 dic_offset; // Offset of the dic data.
+ uint32_t aff_offset; // Offset of the aff data.
+ uint32_t dic_offset; // Offset of the dic data.
// Added by version 2.0.
base::MD5Digest digest; // MD5 digest of the aff data and the dic data.
@@ -124,10 +126,10 @@ class BDict {
// AFF section ===============================================================
struct AffHeader {
- uint32 affix_group_offset;
- uint32 affix_rule_offset;
- uint32 rep_offset; // Replacements table.
- uint32 other_offset;
+ uint32_t affix_group_offset;
+ uint32_t affix_rule_offset;
+ uint32_t rep_offset; // Replacements table.
+ uint32_t other_offset;
};
// DIC section ===============================================================
« no previous file with comments | « no previous file | third_party/hunspell/google/bdict.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698