]> git.proxmox.com Git - perlmod.git/commitdiff
macro: rename boot symbol to boot_<module>
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 24 Feb 2022 10:43:21 +0000 (11:43 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 24 Feb 2022 10:44:03 +0000 (11:44 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
perlmod-macro/src/package.rs

index 0f7547ec28ace1f97ebfe94433664c3a3c23b8b8..75b4528c183c5094489a58e4dfcd80918238d1eb 100644 (file)
@@ -14,7 +14,7 @@ require DynaLoader;
 sub bootstrap {
     my ($pkg) = @_;
     my ($mod_name) = {{LIB_NAME}};
-    my $bootstrap_name = 'xs_bootstrap_' . ($pkg =~ s/::/__/gr);
+    my $bootstrap_name = 'boot_' . ($pkg =~ s/::/__/gr);
 
     my @dirs = (map "-L$_/auto", @INC);
     my $mod_file = DynaLoader::dl_findfile("#;
@@ -105,7 +105,7 @@ impl Package {
         }
 
         let bootstrap_name =
-            format!("xs_bootstrap_{}", self.attrs.package_name).replace("::", "__");
+            format!("boot_{}", self.attrs.package_name).replace("::", "__");
         let bootstrap_ident = Ident::new(&bootstrap_name, Span::call_site());
 
         quote! {