This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
inline_invlist.c -> invlist_inline.h
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 18 Jul 2015 18:24:47 +0000 (21:24 +0300)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 22 Jul 2015 12:33:23 +0000 (08:33 -0400)
MANIFEST
ext/re/Makefile.PL
invlist_inline.h [moved from inline_invlist.c with 99% similarity]
regcomp.c
regexec.c
utf8.c

index f4576ef..77587c3 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -4107,7 +4107,6 @@ hv.c                              Hash value code
 hv_func.h                      Hash value static inline function header
 hv.h                           Hash value header
 inline.h                       Static inline functions
-inline_invlist.c               Inline functions for handling inversion lists
 INSTALL                                Detailed installation instructions
 installhtml                    Perl script to install html files for pods
 install_lib.pl                 functions shared between install* scripts
@@ -4115,6 +4114,7 @@ installman                        Perl script to install man pages for pods
 installperl                    Perl script to do "make install" dirty work
 INTERN.h                       Included before domestic .h files
 intrpvar.h                     Variables held in each interpreter instance
+invlist_inline.h               Inline functions for handling inversion lists
 iperlsys.h                     Perl's interface to the system
 keywords.c                     Perl_keyword(), generated by regen/keywords.pl
 keywords.h                     The keyword numbers
index c6338c7..bb00feb 100644 (file)
@@ -25,28 +25,28 @@ sub postamble {
     my $regcomp_c = upupfile('regcomp.c');
     my $regexec_c = upupfile('regexec.c');
     my $dquote_static_c = upupfile('dquote_static.c');
-    my $inline_invlist_c = upupfile('inline_invlist.c');
+    my $invlist_inline_h = upupfile('invlist_inline.h');
 
     <<EOF;
 re_comp.c : $regcomp_c
        - \$(RM_F) re_comp.c
        \$(CP) $regcomp_c re_comp.c
 
-re_comp\$(OBJ_EXT) : re_comp.c dquote_static.c inline_invlist.c
+re_comp\$(OBJ_EXT) : re_comp.c dquote_static.c invlist_inline_h
 
 re_exec.c : $regexec_c
        - \$(RM_F) re_exec.c
        \$(CP) $regexec_c re_exec.c
 
-re_exec\$(OBJ_EXT) : re_exec.c inline_invlist.c
+re_exec\$(OBJ_EXT) : re_exec.c invlist_inline_h
 
 dquote_static.c : $dquote_static_c
        - \$(RM_F) dquote_static.c
        \$(CP) $dquote_static_c dquote_static.c
 
-inline_invlist.c : $inline_invlist_c
-       - \$(RM_F) inline_invlist.c
-       \$(CP) $inline_invlist_c inline_invlist.c
+invlist_inline_h : $inline_invlist_c
+       - \$(RM_F) invlist_inline_h
+       \$(CP) $invlist_inline_h inline_invlist.c
 
 EOF
 }
similarity index 99%
rename from inline_invlist.c
rename to invlist_inline.h
index 1589f95..4ce04f9 100644 (file)
@@ -1,4 +1,4 @@
-/*    inline_invlist.c
+/*    invlist_inline.h
  *
  *    Copyright (C) 2012 by Larry Wall and others
  *
index 3e6ac62..411e3c7 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -87,7 +87,7 @@ EXTERN_C const struct regexp_engine my_reg_engine;
 #endif
 
 #include "dquote_static.c"
-#include "inline_invlist.c"
+#include "invlist_inline.h"
 #include "unicode_constants.h"
 
 #define HAS_NONLATIN1_FOLD_CLOSURE(i) \
@@ -7981,7 +7981,7 @@ S_reg_scan_name(pTHX_ RExC_state_t *pRExC_state, U32 flags)
  * Some of the methods should always be private to the implementation, and some
  * should eventually be made public */
 
-/* The header definitions are in F<inline_invlist.c> */
+/* The header definitions are in F<invlist_inline.h> */
 
 PERL_STATIC_INLINE UV*
 S__invlist_array_init(SV* const invlist, const bool will_have_0)
index 3455498..ec4ed86 100644 (file)
--- a/regexec.c
+++ b/regexec.c
@@ -83,7 +83,7 @@
 #  include "regcomp.h"
 #endif
 
-#include "inline_invlist.c"
+#include "invlist_inline.h"
 #include "unicode_constants.h"
 
 #ifdef DEBUGGING
diff --git a/utf8.c b/utf8.c
index 360e1f5..cbff7a7 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -31,7 +31,7 @@
 #include "EXTERN.h"
 #define PERL_IN_UTF8_C
 #include "perl.h"
-#include "inline_invlist.c"
+#include "invlist_inline.h"
 
 static const char unees[] =
     "Malformed UTF-8 character (unexpected end of string)";