return $ CYTypedIdentifier($ CYTypeIntegral(CYTypeSigned, 1));
}
+#ifdef __SIZEOF_INT128__
+template <>
+CYTypedIdentifier *Primitive<signed __int128>::Decode(CYPool &pool) const {
+ return $ CYTypedIdentifier($ CYTypeInt128(CYTypeSigned));
+}
+#endif
+
template <>
CYTypedIdentifier *Primitive<signed long int>::Decode(CYPool &pool) const {
return $ CYTypedIdentifier($ CYTypeIntegral(CYTypeSigned, 2));
return $ CYTypedIdentifier($ CYTypeIntegral(CYTypeUnsigned, 1));
}
+#ifdef __SIZEOF_INT128__
+template <>
+CYTypedIdentifier *Primitive<unsigned __int128>::Decode(CYPool &pool) const {
+ return $ CYTypedIdentifier($ CYTypeInt128(CYTypeUnsigned));
+}
+#endif
+
template <>
CYTypedIdentifier *Primitive<unsigned long int>::Decode(CYPool &pool) const {
return $ CYTypedIdentifier($ CYTypeIntegral(CYTypeUnsigned, 2));
}
#endif
+CYTypedIdentifier *Enum::Decode(CYPool &pool) const {
+ CYEnumConstant *values(NULL);
+ for (size_t i(count); i != 0; --i)
+ values = $ CYEnumConstant($I(pool.strdup(constants[i - 1].name)), $D(constants[i - 1].value), values);
+ CYIdentifier *identifier(name == NULL ? NULL : $I(name));
+ CYTypedIdentifier *typed(type.Decode(pool));
+ _assert(typed->modifier_ == NULL);
+ return $ CYTypedIdentifier($ CYTypeEnum(identifier, typed->specifier_, values));
+}
+
CYTypedIdentifier *Aggregate::Decode(CYPool &pool) const {
_assert(!overlap);