File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 118118# already have. NOTE: this is different to pcre2test where #pattern sets
119119# defaults which can be overridden on individual patterns. The #subject command
120120# may be used to set or unset a default "mark" modifier for data lines. This is
121- # the only use of #subject that is supported. The #perltest, #forbid_utf, and
122- # #newline_default commands, which are needed in the relevant pcre2test files,
123- # are ignored. Any other #-command is ignored, with a warning message.
121+ # the only use of #subject that is supported. The #perltest, #forbid_utf,
122+ # #newline_default, and #if...#endif commands, which are needed in the relevant
123+ # pcre2test files, are ignored. Any other #-command is ignored, with a warning
124+ # message.
124125#
125126# The pattern lines should use only / as the delimiter. The other characters
126127# that pcre2test supports cause problems with this script.
@@ -247,7 +248,7 @@ for (;;)
247248 }
248249 elsif ($_ =~ /^#/)
249250 {
250- if ($_ !~ /^#newline_default|^#perltest|^#forbid_utf/)
251+ if ($_ !~ /^#newline_default|^#perltest|^#forbid_utf|^#if|^#endif /)
251252 {
252253 printf $outfile "** Warning: #-command ignored: %s", $_;
253254 }
Original file line number Diff line number Diff line change @@ -5417,12 +5417,15 @@ switch(cmd)
54175417 for (i = 0 ; i < COPTLISTCOUNT ; i ++ )
54185418 {
54195419 size_t optlen = strlen (coptlist [i ].name );
5420- const char * argptr_trail ;
5421- if (coptlist [i ].type != CONF_FIX ) continue ;
5422- if (strncmp (argptr , coptlist [i ].name , optlen ) != 0 ) continue ;
5420+ const uint8_t * argptr_trail ;
5421+ if (coptlist [i ].type != CONF_FIX )
5422+ continue ;
5423+ if (strncmp ((const char * )argptr , coptlist [i ].name , optlen ) != 0 )
5424+ continue ;
54235425 argptr_trail = argptr + optlen ;
54245426 while (isspace (* argptr_trail )) argptr_trail ++ ;
5425- if (* argptr_trail == 0 || * argptr_trail == '\n' ) break ;
5427+ if (* argptr_trail == 0 || * argptr_trail == '\n' )
5428+ break ;
54265429 }
54275430 if (i == COPTLISTCOUNT )
54285431 {
@@ -10126,7 +10129,7 @@ while (notdone)
1012610129
1012710130 if (skipping_endif )
1012810131 {
10129- if (strncmp (buffer , "#endif" , 6 ) != 0 ||
10132+ if (strncmp (( char * ) buffer , "#endif" , 6 ) != 0 ||
1013010133 !(buffer [6 ] == 0 || isspace (buffer [6 ])))
1013110134 continue ;
1013210135 skipping_endif = FALSE;
You can’t perform that action at this time.
0 commit comments