Ivan Krasilnikov wrote: > On Tue, Mar 1, 2011 at 00:05, Bram Moolenaar <b...@moolenaar.net> wrote: > > I had a quick look and it looks good. > > > > I think assert.h is not available everywhere. =C2=A0If you only use the > > assert() method, perhaps we can use a configure check and when assert.h > > is not available define it ourselves? =C2=A0This could be in a test.h inc= > lude > > file perhaps, so it can be reused in other unittests. > > vim.h already unconditionally includes assert.h. So if is not > available, vim wouldn't compile. > > Also, my BSD man page states that "assert macro appeared in Version 6 > AT&T UNIX", which is the grand daddy of all the Unixes, so it's quite > safe to assume that assert.h is always present, even on very old > systems.
Right, and assert() is always used in if_cscope.c. Sorry, I got confused because my assert.h mentions C99. -- There are 2 kinds of people in my world: those who know Unix, Perl, Vim, GNU, Linux, etc, and those who know COBOL. It gets very difficult for me at parties, not knowing which group to socialise with :-) Sitaram Chamarty /// 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