Minor style updates.
This commit is contained in:
parent
2a28d71fcf
commit
b3b3f14758
@ -1,5 +1,5 @@
|
||||
# Suzu Runtime / Notation
|
||||
Szun is a library for defining, manipulating, and formatting structured, dynamically-typed data.
|
||||
Szun is a library for defining, manipulating, and formatting structured, dynamic data.
|
||||
|
||||
## Runtime
|
||||
The Szun runtime provides an interface for constructing and modfying data objects.
|
||||
@ -32,7 +32,7 @@ While the runtime provides methods for directly acquring and releasing memory, i
|
||||
|Varying|x01|--|Stores any data type|
|
||||
|Boolean|x02|--|True or false|
|
||||
|Natural|x10|--|Non-negative integers|
|
||||
|Integer|x11|--|Integers|
|
||||
|Integer|x11|--|Positive and negative whole numbers|
|
||||
|Significant|x13|--|Fixed-precision, variable-magnitude numbers|
|
||||
|Block|x1e|size|Constant-sized series of bytes|
|
||||
|Sequence|x1f|--|Variable-sized series of bytes|
|
||||
|
@ -89,14 +89,14 @@ size_t type_alignment(size_t type_id)
|
||||
size_t type = DB_TYPE.key(type_id);
|
||||
|
||||
switch(type) {
|
||||
case Type::Tag::Null: return 0;
|
||||
case Type::Tag::Null: return 0;
|
||||
|
||||
case Type::Tag::Boolean: return sizeof(Type::Boolean);
|
||||
case Type::Tag::Natural: return sizeof(Type::Natural);
|
||||
case Type::Tag::Integer: return sizeof(Type::Integer);
|
||||
case Type::Tag::Significant: return sizeof(Type::Significant);
|
||||
case Type::Tag::Block: return sizeof(uint8_t);
|
||||
case Type::Tag::Array: return type_alignment(type_inner(type_id));
|
||||
case Type::Tag::Boolean: return sizeof(Type::Boolean);
|
||||
case Type::Tag::Natural: return sizeof(Type::Natural);
|
||||
case Type::Tag::Integer: return sizeof(Type::Integer);
|
||||
case Type::Tag::Significant: return sizeof(Type::Significant);
|
||||
case Type::Tag::Block: return sizeof(uint8_t);
|
||||
case Type::Tag::Array: return type_alignment(type_inner(type_id));
|
||||
|
||||
case Type::Tag::Varying:
|
||||
case Type::Tag::Sequence:
|
||||
|
Reference in New Issue
Block a user