Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.3 KiB

  1. # NOTE: Derived from ../LIB\DynaLoader.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package DynaLoader;
  5. #line 349 "../LIB\DynaLoader.pm (autosplit into ..\lib\auto\DynaLoader\dl_expandspec.al)"
  6. sub dl_expandspec {
  7. my($spec) = @_;
  8. # Optional function invoked if DynaLoader.pm sets $do_expand.
  9. # Most systems do not require or use this function.
  10. # Some systems may implement it in the dl_*.xs file in which case
  11. # this autoload version will not be called but is harmless.
  12. # This function is designed to deal with systems which treat some
  13. # 'filenames' in a special way. For example VMS 'Logical Names'
  14. # (something like unix environment variables - but different).
  15. # This function should recognise such names and expand them into
  16. # full file paths.
  17. # Must return undef if $spec is invalid or file does not exist.
  18. my $file = $spec; # default output to input
  19. if ($Is_VMS) { # dl_expandspec should be defined in dl_vms.xs
  20. require Carp;
  21. Carp::croak("dl_expandspec: should be defined in XS file!\n");
  22. } else {
  23. return undef unless -f $file;
  24. }
  25. print STDERR "dl_expandspec($spec) => $file\n" if $dl_debug;
  26. $file;
  27. }
  28. # end of DynaLoader::dl_expandspec
  29. 1;