diff --git a/src/c/translation/function.rs b/src/c/translation/function.rs index 072b09ff..4a54dd55 100644 --- a/src/c/translation/function.rs +++ b/src/c/translation/function.rs @@ -1,6 +1,6 @@ use super::{parameters::has_parameters, types::get_name_and_type}; use crate::{ - ast::{self, AstFile, Function, Parameter, Parameters}, + ast::{self, AstFile, Function, Parameter, Parameters, Privacy}, c::parser::{ error::ParseErrorKind, CTypedef, DeclarationSpecifiers, Declarator, ParameterDeclarationCore, ParameterTypeList, ParseError, @@ -81,6 +81,7 @@ pub fn declare_function( source, abide_abi: true, tag: None, + privacy: Privacy::Public, }); Ok(()) diff --git a/src/interpreter_env/mod.rs b/src/interpreter_env/mod.rs index fee78744..f9745561 100644 --- a/src/interpreter_env/mod.rs +++ b/src/interpreter_env/mod.rs @@ -39,6 +39,7 @@ fn thin_void_function(name: impl Into, syscall_kind: InterpreterSyscallK is_foreign: false, source, tag: None, + privacy: Privacy::Public, } } @@ -74,6 +75,7 @@ fn thin_cstring_function( is_foreign: false, source, tag: None, + privacy: Privacy::Public, } } @@ -100,6 +102,7 @@ pub fn setup_build_system_interpreter_symbols(file: &mut AstFile) { source, abide_abi: false, tag: Some(Tag::InterpreterEntryPoint), + privacy: Privacy::Public, }); file.enums.insert( @@ -220,6 +223,7 @@ pub fn setup_build_system_interpreter_symbols(file: &mut AstFile) { is_foreign: false, source, tag: None, + privacy: Privacy::Public, }); } diff --git a/src/pragma_section/parse.rs b/src/pragma_section/parse.rs index 17222895..b45eec25 100644 --- a/src/pragma_section/parse.rs +++ b/src/pragma_section/parse.rs @@ -1,6 +1,6 @@ use super::PragmaSection; use crate::{ - ast::{AstFile, Expr, ExprKind, Function, Parameters, Stmt, StmtKind, TypeKind}, + ast::{AstFile, Expr, ExprKind, Function, Parameters, Privacy, Stmt, StmtKind, TypeKind}, diagnostics::ErrorDiagnostic, inflow::Inflow, name::Name, @@ -91,6 +91,7 @@ impl PragmaSection { source, abide_abi: false, tag: None, + privacy: Privacy::Public, }); } else { return Err(Box::new(ParseError::expected(