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

Replace use of snprintf POSIX only feature #122

Closed
wants to merge 1 commit into from

Conversation

TheLastRar
Copy link
Contributor

The position arguments %n$s is a feature that is not available windows

As the minimum version supported by vixl is C++17 we can't use std::format, so provide our own solution.

@mmc28a
Copy link
Collaborator

mmc28a commented Jan 22, 2025

Thanks for the patch. However, I'd like to avoid introducing a new placeholder, ie. $1 instead of the familiar %s.
As the positional arguments are only used for a limited set of instructions (Neon load/store) I think I have a simpler alternative which I'll put up for review soon.

mmc28a added a commit to mmc28a/vixl that referenced this pull request Jan 24, 2025
Positional arguments to printf (eg. %1$s) are not allowed on Windows, so remove
uses of this in the disassembler, replacing them with an extension to the
existing NEONFormatDecoder class.

Patch prompted by Linaro#122
@mmc28a
Copy link
Collaborator

mmc28a commented Jan 24, 2025

Here's the alternative: #125 . I'd be interested to know if that works OK for you, as I don't have easy access to a Windows system.

@TheLastRar TheLastRar closed this Jan 29, 2025
mmc28a added a commit that referenced this pull request Jan 29, 2025
Positional arguments to printf (eg. %1$s) are not allowed on Windows, so remove
uses of this in the disassembler, replacing them with an extension to the
existing NEONFormatDecoder class.

Patch prompted by #122
@TheLastRar TheLastRar deleted the neon-subsitute branch January 29, 2025 18:12
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.

2 participants