Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use fixed width types #1806

Merged
merged 12 commits into from
Feb 19, 2024
Merged

Conversation

externl
Copy link
Member

@externl externl commented Feb 16, 2024

This PR is the first step in implementing #1787. It does the following:

  • Update the generated code to use fixed width types (XXX_t) types
  • Fully remove Ice::Long / long long int and replace them by int64_t. This was the only type that was not compatible across all compilers.

In follow-up PR(s) I plan to:

  • Remove Ice::Int, Ice::Short, etc.
  • Remove IceUtil::Int64 and friends.

@externl externl changed the title 1787 use fixed with types 1787 use fixed width types Feb 16, 2024
@externl externl changed the title 1787 use fixed width types Use fixed width types Feb 16, 2024
@externl externl marked this pull request as ready for review February 16, 2024 20:48
cpp/include/Ice/InputStream.h Outdated Show resolved Hide resolved
cpp/include/IceUtil/Config.h Outdated Show resolved Hide resolved
@@ -189,7 +189,7 @@ struct StreamableTraits<bool>
* \headerfile Ice/Ice.h
*/
template<>
struct StreamableTraits<Byte>
struct StreamableTraits<uint8_t>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing std:: for all fixed-size integers in this file.

cpp/include/Ice/Config.h Show resolved Hide resolved
@externl externl merged commit 765416a into zeroc-ice:main Feb 19, 2024
18 checks passed
@externl externl deleted the 1787-use-fixed-with-types branch February 19, 2024 19:35
InsertCreativityHere pushed a commit to InsertCreativityHere/compiler-comparison that referenced this pull request Jan 1, 2025
…1806)

- Update the generated code to use fixed width types (std::XXX_t) types
- Remove Ice::Long / long long int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants