Skip to content

Commit d9e77e0

Browse files
committed
mg_vtable, Use INIT() for PL_magic_vtable_names
I'm uncertain about the other DOINIT use in this file.
1 parent 2b0963c commit d9e77e0

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

mg_vtable.h

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regen/mg_vtable.pl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,9 @@ BEGIN
480480
$want
481481
};
482482
483-
#ifdef DOINIT
484-
EXTCONST char * const PL_magic_vtable_names[magic_vtable_max] = {
483+
EXTCONST char * const PL_magic_vtable_names[magic_vtable_max] INIT( {
485484
"$names"
486-
};
487-
#else
488-
EXTCONST char * const PL_magic_vtable_names[magic_vtable_max];
489-
#endif
485+
});
490486
491487
EOH
492488
}

0 commit comments

Comments
 (0)