Skip to content

native-c: add some missing statics #76

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

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/native-c/src/demangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ NODISCARD static demangle_status rust_demangle_v0_demangle(const char *s, size_t
}

// This might require `len` to be up to 3 characters bigger than the real output len in case of utf-8
NODISCARD overflow_status rust_demangle_v0_display_demangle(struct demangle_v0 res, char *out, size_t len, bool alternate) {
NODISCARD static overflow_status rust_demangle_v0_display_demangle(struct demangle_v0 res, char *out, size_t len, bool alternate) {
struct printer printer = {
DemangleOk,
{
Expand Down Expand Up @@ -1762,7 +1762,7 @@ static bool is_rust_hash(const char *s, size_t len) {
return true;
}

NODISCARD overflow_status rust_demangle_legacy_display_demangle(struct demangle_legacy res, char *out, size_t len, bool alternate)
NODISCARD static overflow_status rust_demangle_legacy_display_demangle(struct demangle_legacy res, char *out, size_t len, bool alternate)
{
struct printer printer = {
// not actually using the parser part of the printer, just keeping it to share the format functions
Expand Down
Loading