diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-08 22:43:34 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-08 22:43:34 +0800 |
| commit | 90ed18a41fef137ed0637cf9fc6aa667de2c905f (patch) | |
| tree | d0e472f860ce0c771f4ae47ed35be36aa2df76b7 /systems/_constants | |
| parent | 62fd90b639a0e24570c558738205d752d2d957bb (diff) | |
Update dependencies and add C bindings generation
Diffstat (limited to 'systems/_constants')
| -rw-r--r-- | systems/_constants/macros/src/lib.rs | 6 | ||||
| -rw-r--r-- | systems/_constants/src/lib.rs | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/systems/_constants/macros/src/lib.rs b/systems/_constants/macros/src/lib.rs index d7b7059..7384182 100644 --- a/systems/_constants/macros/src/lib.rs +++ b/systems/_constants/macros/src/lib.rs @@ -184,10 +184,8 @@ fn generate_functions_with_params( let ffi_fn_name = format!("JV_Const_{}{}", pascal_prefix, pascal_name); let ffi_fn_ident = Ident::new(&ffi_fn_name, const_name.span()); - // Generate parameter list for FFI - let ffi_param_idents: Vec<Ident> = (0..params.len()) - .map(|i| Ident::new(&format!("p{}", i), value_span)) - .collect(); + // Generate parameter list for FFI using original parameter names + let ffi_param_idents: Vec<Ident> = params.iter().map(|p| Ident::new(p, value_span)).collect(); let ffi_param_decls = ffi_param_idents.iter().map(|ident| { quote! { #ident: *const libc::c_char } diff --git a/systems/_constants/src/lib.rs b/systems/_constants/src/lib.rs index 30ea89b..c9dee11 100644 --- a/systems/_constants/src/lib.rs +++ b/systems/_constants/src/lib.rs @@ -8,8 +8,6 @@ macro_rules! c { pub const TEMP_FILE_PREFIX: &str = ".tmp_"; pub const LOCK_FILE_PREFIX: &str = "~"; -pub const CURRENT_SHEET_VERSION: u8 = 0; - /// File and directory path constants for the server root #[allow(unused)] pub mod server { |
