1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

AK: Rename the common integer typedefs to make it obvious what they are.

These types can be picked up by including <AK/Types.h>:

* u8, u16, u32, u64 (unsigned)
* i8, i16, i32, i64 (signed)
This commit is contained in:
Andreas Kling 2019-07-03 21:17:35 +02:00
parent c4c4bbc5ba
commit 27f699ef0c
208 changed files with 1603 additions and 1621 deletions

View file

@ -10,7 +10,7 @@ struct InodeMetadata;
class InodeIdentifier {
public:
InodeIdentifier() {}
InodeIdentifier(dword fsid, dword inode)
InodeIdentifier(u32 fsid, u32 inode)
: m_fsid(fsid)
, m_index(inode)
{
@ -18,8 +18,8 @@ public:
bool is_valid() const { return m_fsid != 0 && m_index != 0; }
dword fsid() const { return m_fsid; }
dword index() const { return m_index; }
u32 fsid() const { return m_fsid; }
u32 index() const { return m_index; }
FS* fs();
const FS* fs() const;
@ -39,6 +39,6 @@ public:
String to_string() const { return String::format("%u:%u", m_fsid, m_index); }
private:
dword m_fsid { 0 };
dword m_index { 0 };
u32 m_fsid { 0 };
u32 m_index { 0 };
};