This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
op.c: S_search_const: remove recursion
[perl5.git] / INTERN.h
CommitLineData
a0d0e21e 1/* INTERN.h
a687059c 2 *
4bb101f2
JH
3 * Copyright (C) 1991, 1992, 1993, 1995, 1996, 1998, 2000, 2001,
4 * by Larry Wall and others
a687059c 5 *
132b68a5
LW
6 * You may distribute under the terms of either the GNU General Public
7 * License or the Artistic License, as specified in the README file.
8d063cd8 8 *
8d063cd8
LW
9 */
10
4633a7c4
LW
11/*
12 * EXT designates a global var which is defined in perl.h
13 * dEXT designates a global var which is defined in another
14 * file, so we can't count on finding it in perl.h
15 * (this practice should be avoided).
16 */
8d063cd8 17#undef EXT
4633a7c4 18#undef dEXT
36477c24 19#undef EXTCONST
20#undef dEXTCONST
400638aa 21
1b808766
DD
22# if (defined(WIN32) && defined(__MINGW32__) && ! defined(PERL_IS_MINIPERL)) \
23 || defined(__SYMBIAN32__)
1ea760a1
SH
24# ifdef __cplusplus
25# define EXT __declspec(dllexport)
26# define dEXT
27# define EXTCONST __declspec(dllexport) extern const
28# define dEXTCONST const
29# else
30# define EXT __declspec(dllexport)
31# define dEXT
32# define EXTCONST __declspec(dllexport) const
33# define dEXTCONST const
34# endif
27da23d5
JH
35# else
36# ifdef __cplusplus
37# define EXT
38# define dEXT
1545a179 39# define EXTCONST EXTERN_C const
27da23d5
JH
40# define dEXTCONST const
41# else
42# define EXT
43# define dEXT
44# define EXTCONST const
45# define dEXTCONST const
46# endif
47# endif
8d063cd8
LW
48
49#undef INIT
50#define INIT(x) = x
51
52#define DOINIT