This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add SvPV_nolen_const and SvPV_nomg_const
[perl5.git] / uconfig.h
index 2489fd7..a81a240 100644 (file)
--- a/uconfig.h
+++ b/uconfig.h
  *     available to read directory entries. You may have to include
  *     <dirent.h>. See I_DIRENT.
  */
-/*#define HAS_READDIR          / **/
+#define HAS_READDIR            /**/
 
 /* HAS_SEEKDIR:
  *     This symbol, if defined, indicates that the seekdir routine is
  *     to rename files.  Otherwise you should do the unlink(), link(), unlink()
  *     trick.
  */
-/*#define HAS_RENAME   / **/
+#define HAS_RENAME     /**/
 
 /* HAS_RMDIR:
  *     This symbol, if defined, indicates that the rmdir routine is
  *     whether dirent is available or not. You should use this pseudo type to
  *     portably declare your directory entries.
  */
-/*#define I_DIRENT             / **/
+#define I_DIRENT               /**/
 /*#define DIRNAMLEN    / **/
 #define Direntry_t struct dirent
 
  *     This symbol, if defined, indicates that <stdlib.h> exists and should
  *     be included.
  */
-/*#define I_STDLIB             / **/
+#define I_STDLIB               /**/
 
 /* I_STRING:
  *     This symbol, if defined, indicates to the C program that it should
  *     This symbol contains the ~name expanded version of ARCHLIB, to be used
  *     in programs that are not prepared to deal with ~ expansion at run-time.
  */
-/*#define ARCHLIB "/usr/local/lib/perl5/5.7/unknown"           / **/
-/*#define ARCHLIB_EXP "/usr/local/lib/perl5/5.7/unknown"               / **/
+/*#define ARCHLIB "/usr/local/lib/perl5/5.9/unknown"           / **/
+/*#define ARCHLIB_EXP "/usr/local/lib/perl5/5.9/unknown"               / **/
 
 /* BIN:
  *     This symbol holds the path of the bin directory where the package will
  */
 /*#define PERL_OTHERLIBDIRS ""         / **/
 
+/* INSTALL_PREFIX:
+ *     This symbol contains the "root" of installation tree for this package.
+ *     The program should be prepared to do ~ expansion.
+ */
+/* INSTALL_PREFIX_EXP:
+ *     This symbol contains the "root" of installation tree for this package
+ *     to be used in programs that are not prepared to deal with ~ expansion
+ *     at run-time.
+ */
+#define INSTALL_PREFIX ""              /**/
+#define INSTALL_PREFIX_EXP ""  /**/
+
 /* PRIVLIB:
  *     This symbol contains the name of the private library for this package.
  *     The library is private in the sense that it needn't be in anyone's
  *     This symbol contains the ~name expanded version of PRIVLIB, to be used
  *     in programs that are not prepared to deal with ~ expansion at run-time.
  */
-#define PRIVLIB "/usr/local/lib/perl5/5.7"             /**/
-#define PRIVLIB_EXP "/usr/local/lib/perl5/5.7"         /**/
+#define PRIVLIB "/usr/local/lib/perl5/5.9"             /**/
+#define PRIVLIB_EXP "/usr/local/lib/perl5/5.9"         /**/
 
 /* SITEARCH:
  *     This symbol contains the name of the private library for this package.
  *     This symbol, if defined, indicates that the strtoul routine is
  *     available to provide conversion of strings to unsigned long.
  */
-/*#define HAS_STRTOUL  / **/
+#define HAS_STRTOUL    /**/
 
 /* HAS_UNION_SEMUN:
  *     This symbol, if defined, indicates that the union semun is
  */
 /*#define MYMALLOC                     / **/
 
+/* PERL_MALLOC_WRAP:
+ *     This symbol, if defined, indicates that we'd like malloc wrap checks.
+ */
+/*#define PERL_MALLOC_WRAP                     / **/
+
 /* CAN_PROTOTYPE:
  *     If defined, this macro indicates that the C compiler can handle
  *     function prototypes.
  */
 /*#define HAS_STRUCT_MSGHDR    / **/
 
-/* HAS_NANOSLEEP:
- *     This symbol, if defined, indicates that the nanosleep
- *     system call is available to sleep with 1E-9 sec accuracy.
- */
-/*#define HAS_NANOSLEEP                / **/
-
 /* HAS_NL_LANGINFO:
  *     This symbol, if defined, indicates that the nl_langinfo routine is
  *     available to return local data.  You will also need <langinfo.h>
 #define        NVSIZE          8               /**/
 #undef NV_PRESERVES_UV
 #define        NV_PRESERVES_UV_BITS    0
+#if UVSIZE == 8
+#   ifdef BYTEORDER
+#       if BYTEORDER == 0x1234
+#           undef BYTEORDER
+#           define BYTEORDER 0x12345678
+#       else
+#           if BYTEORDER == 0x4321
+#               undef BYTEORDER
+#               define BYTEORDER 0x87654321
+#           endif
+#       endif
+#   endif
+#endif
 
 /* IVdf:
  *     This symbol defines the format string used for printing a Perl IV
 /*#define      USE_SOCKS               / **/
 #endif
 
-/* PERL_XS_APIVERSION:
- *     This variable contains the version of the oldest perl binary
- *     compatible with the present perl.  perl.c:incpush() and
- *     lib/lib.pm will automatically search in  for older
- *     directories across major versions back to xs_apiversion.
- *     This is only useful if you have a perl library directory tree
- *     structured like the default one.
- *     See INSTALL for how this works.
- *     The versioned site_perl directory was introduced in 5.005,
- *     so that is the lowest possible value.
- *     Since this can depend on compile time options
- *     it is set by Configure.  Other non-default sources
- *     of potential incompatibility, such as multiplicity, threads,
- *     debugging, 64bits, sfio, etc., are not checked for currently,
- *     though in principle we could go snooping around in old
- *     Config.pm files.
- */
-/* PERL_PM_APIVERSION:
- *     This variable contains the version of the oldest perl
- *     compatible with the present perl.  (That is, pure perl modules
- *     written for pm_apiversion will still work for the current
- *     version).  perl.c:incpush() and lib/lib.pm will automatically
- *     search in  for older directories across major versions
- *     back to pm_apiversion.  This is only useful if you have a perl
- *     library directory tree structured like the default one.  The
- *     versioned site_perl library was introduced in 5.005, so that's
- *     the default setting for this variable.  It's hard to imagine
- *     it changing before Perl6.  It is included here for symmetry
- *     with xs_apiveprsion -- the searching algorithms will
- *     (presumably) be similar.
- *     See the INSTALL file for how this works.
- */
-#define PERL_XS_APIVERSION "5.008"
-#define PERL_PM_APIVERSION "5.005"
-
 /* HAS_DRAND48_PROTO:
  *     This symbol, if defined, indicates that the system provides
  *     a prototype for the drand48() function.  Otherwise, it is up
 
 /* HAS_PTHREAD_ATFORK:
  *     This symbol, if defined, indicates that the pthread_atfork routine
- *     is available setup fork handlers.
+ *     is available to setup fork handlers.
  */
 /*#define HAS_PTHREAD_ATFORK           / **/
 
  *     unsigned long, int, etc.  It may be necessary to include
  *     <sys/types.h> to get any typedef'ed information.
  */
-#define Size_t int      /* length paramater for string functions */
+#define Size_t size_t   /* length paramater for string functions */
 
 /* Uid_t_f:
  *     This symbol defines the format string used for printing a Uid_t.