Re: Patch 8.1.0102

2018-06-23 Fir de Conversatie Elimar Riesebieter
* Tony Mechelynck  [2018-06-23 15:21 +0200]:

> On Sat, Jun 23, 2018 at 3:09 PM, Bram Moolenaar  wrote:
> >
> > Patch 8.1.0102
> > Problem:Cannot build without syntax highlighting.
> > Solution:   Add #ifdef around using reg_do_extmatch.
> > Files:  src/regexp.c
> 
> After applying this patch, my Tiny build has two fewer errors compared
> with patch 98, but there is still this one:
> 
> linux-2iyu:~/.build/vim/vim-hg/src/shadow-tiny # (make || echo 'exit
> status' $? ; date) 2>&1 |tee -a make.log
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce -Wall
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1-o objects/regexp.o
> regexp.c
> In file included from regexp.c:8088:0:
> regexp_nfa.c: In function ‘nfa_regmatch’:
> regexp_nfa.c:5696:39: error: ‘nfa_fail_for_testing’ undeclared (first
> use in this function); did you mean ‘nfa_alt_listid’?
>&& (nfa_listid >= NFA_MAX_STATES || nfa_fail_for_testing))
>^~~~
>nfa_alt_listid
> regexp_nfa.c:5696:39: note: each undeclared identifier is reported
> only once for each function it appears in
> make: *** [Makefile:3285: objects/regexp.o] Error 1
> exit status 2
Same here:

In file included from regexp.c:8088:
./regexp_nfa.c:5696:39: error: use of undeclared identifier 
'nfa_fail_for_testing'
&& (nfa_listid >= NFA_MAX_STATES || nfa_fail_for_testing))
^

Elimar
-- 
  From The Collaborative International Dictionary of English v.0.48 [gcide]:
  .
  arsehole \arse"hole`\ ([aum]rs"h[=o]l`), n.
 1. execretory opening at the end of the alimentary canal.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Patch 8.1.0102

2018-06-23 Fir de Conversatie Tony Mechelynck
On Sat, Jun 23, 2018 at 3:09 PM, Bram Moolenaar  wrote:
>
> Patch 8.1.0102
> Problem:Cannot build without syntax highlighting.
> Solution:   Add #ifdef around using reg_do_extmatch.
> Files:  src/regexp.c

After applying this patch, my Tiny build has two fewer errors compared
with patch 98, but there is still this one:

linux-2iyu:~/.build/vim/vim-hg/src/shadow-tiny # (make || echo 'exit
status' $? ; date) 2>&1 |tee -a make.log
gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce -Wall
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1-o objects/regexp.o
regexp.c
In file included from regexp.c:8088:0:
regexp_nfa.c: In function ‘nfa_regmatch’:
regexp_nfa.c:5696:39: error: ‘nfa_fail_for_testing’ undeclared (first
use in this function); did you mean ‘nfa_alt_listid’?
   && (nfa_listid >= NFA_MAX_STATES || nfa_fail_for_testing))
   ^~~~
   nfa_alt_listid
regexp_nfa.c:5696:39: note: each undeclared identifier is reported
only once for each function it appears in
make: *** [Makefile:3285: objects/regexp.o] Error 1
exit status 2

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Patch 8.1.0102

2018-06-23 Fir de Conversatie Bram Moolenaar


Patch 8.1.0102
Problem:Cannot build without syntax highlighting.
Solution:   Add #ifdef around using reg_do_extmatch.
Files:  src/regexp.c


*** ../vim-8.1.0101/src/regexp.c2018-06-23 14:21:38.471484909 +0200
--- src/regexp.c2018-06-23 15:07:31.635796811 +0200
***
*** 8376,8386 
--- 8376,8390 
  #ifdef FEAT_EVAL
report_re_switch(pat);
  #endif
+ #ifdef FEAT_SYN_HL
// checking for \z misuse was already done when compiling for NFA,
// allow all here
reg_do_extmatch = REX_ALL;
+ #endif
rmp->regprog = vim_regcomp(pat, re_flags);
+ #ifdef FEAT_SYN_HL
reg_do_extmatch = 0;
+ #endif
  
if (rmp->regprog != NULL)
result = rmp->regprog->engine->regexec_multi(
*** ../vim-8.1.0101/src/version.c   2018-06-23 14:55:00.146628803 +0200
--- src/version.c   2018-06-23 15:08:14.019617869 +0200
***
*** 763,764 
--- 763,766 
  {   /* Add new patch number below this line */
+ /**/
+ 102,
  /**/

-- 
>From "know your smileys":
 :-| :-|   Deja' vu!

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.