return std::string(BufPtr);
}
-static inline std::string utostr(unsigned long X, bool isNeg = false) {
- return utostr(static_cast<uint64_t>(X), isNeg);
-}
-
-static inline std::string utostr(unsigned X, bool isNeg = false) {
+static inline std::string utostr(uint32_t X, bool isNeg = false) {
char Buffer[20];
char *BufPtr = Buffer+19;
return utostr(static_cast<uint64_t>(X));
}
-static inline std::string itostr(long X) {
- if (X < 0)
- return utostr(static_cast<uint64_t>(-X), true);
- else
- return utostr(static_cast<uint64_t>(X));
-}
-
-static inline std::string itostr(int X) {
+static inline std::string itostr(int32_t X) {
if (X < 0)
return utostr(static_cast<unsigned>(-X), true);
else
/// This value is used to retain the last unique value used
/// by getUniqueName to generate unique names.
- mutable unsigned long LastUnique;
+ mutable uint64_t LastUnique;
/// @}
/// @{
private:
TypeMap tmap; ///< This is the mapping of names to types.
- mutable unsigned long LastUnique; ///< Counter for tracking unique names
+ mutable uint64_t LastUnique; ///< Counter for tracking unique names
/// @}
/// @{
private:
ValueMap vmap; ///< The map that holds the symbol table.
- mutable unsigned long LastUnique; ///< Counter for tracking unique names
+ mutable uint64_t LastUnique; ///< Counter for tracking unique names
/// @}