summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2015-05-21 17:06:27 -0400
committerTony Cook <tony@develop-help.com>2015-06-03 12:07:09 +1000
commit1c68cbf70f1d1b9aaa6a927943d4f1c075ce8d1c (patch)
treeacdc2fbdf06ff9ec144cec709ab13b21bcc1a96a /win32/win32.h
parent269713a163ea7f178a8c2a31d3c0e5caf5cbf7ce (diff)
downloadperl-1c68cbf70f1d1b9aaa6a927943d4f1c075ce8d1c.tar.gz
refactor win32_get_*lib() funcs to match rest of PERL_IMPLICIT_SYS API
The front end of PERL_IMPLICIT_SYS is PerlEnv_*/PerlSock_*/PerlProc_*/etc macros. These are either macroed to C vtable calls when PERL_IMPLICIT_SYS is on, or to the backend raw win32_*() functions when PERL_IMPLICIT_SYS is off. win32_get_*() were not following this convention. All this code looks like a hack as if someone didn't have perms to edit perl.c, but they did have perms to edit /win32, so they devise a scheme of hooking "unhooked" win32_get_*() functions with win32.h macros for win32_get_*() to call the Perl*() virutalization macros, and rename the original function bodies in win32.c to g_win32_get_*() as to not make a macro loop. Undo all of this hack by having perl.c call correct PerlEnv_* macro. This refactoring will be useful for a future patch in #123658 to disable win32 registry lookups.
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 7c65310d27..3b35b6c2a4 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -60,9 +60,6 @@
# ifdef PERL_GLOBAL_STRUCT
# error PERL_GLOBAL_STRUCT cannot be defined with PERL_IMPLICIT_SYS
# endif
-# define win32_get_privlib PerlEnv_lib_path
-# define win32_get_sitelib PerlEnv_sitelib_path
-# define win32_get_vendorlib PerlEnv_vendorlib_path
#endif
#ifdef __GNUC__