Skip to content

Commit

Permalink
Make statics public
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Nov 1, 2022
1 parent bcfab61 commit d6eefa8
Show file tree
Hide file tree
Showing 154 changed files with 2,550 additions and 2,490 deletions.
6 changes: 3 additions & 3 deletions header-translator/src/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,22 +760,22 @@ impl fmt::Display for Stmt {
value: None,
} => {
writeln!(f, r#"extern "C" {{"#)?;
writeln!(f, " static {name}: {ty};")?;
writeln!(f, " pub static {name}: {ty};")?;
writeln!(f, "}}")?;
}
Self::VarDecl {
name,
ty,
value: Some(None),
} => {
writeln!(f, "static {name}: {ty} = todo;")?;
writeln!(f, "pub static {name}: {ty} = todo;")?;
}
Self::VarDecl {
name,
ty,
value: Some(Some(expr)),
} => {
writeln!(f, "static {name}: {ty} = {expr};")?;
writeln!(f, "pub static {name}: {ty} = {expr};")?;
}
Self::FnDecl {
name: _,
Expand Down
3 changes: 2 additions & 1 deletion icrate/src/AppKit/generated/NSAccessibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ extern_methods!(
);

extern "C" {
static NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification: &'static NSNotificationName;
pub static NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification:
&'static NSNotificationName;
}

extern_methods!(
Expand Down

0 comments on commit d6eefa8

Please sign in to comment.