Previously it was bodged as a constant(), with an explicit wrapper subroutine
in Glob.pm to call each time to get the value.
XSLoader::load();
-sub GLOB_ERROR {
- return (constant('GLOB_ERROR'))[1];
-}
-
sub GLOB_CSH () {
GLOB_BRACE()
| GLOB_NOMAGIC()
MODULE = File::Glob PACKAGE = File::Glob
+int
+GLOB_ERROR()
+ PREINIT:
+ dMY_CXT;
+ CODE:
+ RETVAL = GLOB_ERROR;
+ OUTPUT:
+ RETVAL
+
BOOT:
{
MY_CXT_INIT;
NAME => 'File::Glob',
NAMES => [qw(GLOB_ABEND GLOB_ALPHASORT GLOB_ALTDIRFUNC GLOB_BRACE GLOB_ERR
GLOB_LIMIT GLOB_MARK GLOB_NOCASE GLOB_NOCHECK GLOB_NOMAGIC
- GLOB_NOSORT GLOB_NOSPACE GLOB_QUOTE GLOB_TILDE),
- {name=>"GLOB_ERROR", macro=>["#ifdef GLOB_ERROR\n\tdMY_CXT;\n\n","#endif\n"]}],
+ GLOB_NOSORT GLOB_NOSPACE GLOB_QUOTE GLOB_TILDE)],
BREAKOUT_AT => 8,
);