comparison src/Make_mvc.mak @ 27447:4050f0554902 v8.2.4252

patch 8.2.4252: generating the normal command table at runtime is inefficient Commit: https://github.com/vim/vim/commit/4dc0dd869972ddafc7d9ee5ea765645b818a6dc9 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Jan 29 13:06:40 2022 +0000 patch 8.2.4252: generating the normal command table at runtime is inefficient Problem: Generating the normal command table at runtime is inefficient. Solution: Generate the table with a Vim script and put it in a header file. (Yegappan Lakshmanan, closes #9648)
author Bram Moolenaar <Bram@vim.org>
date Sat, 29 Jan 2022 14:15:04 +0100
parents b63028cbe307
children ee1019e59bef
comparison
equal deleted inserted replaced
27446:d5dcb8d0cf5e 27447:4050f0554902
1444 # If this fails because you don't have Vim yet, first build and install Vim 1444 # If this fails because you don't have Vim yet, first build and install Vim
1445 # without changes. 1445 # without changes.
1446 cmdidxs: ex_cmds.h 1446 cmdidxs: ex_cmds.h
1447 vim --clean -X --not-a-term -u create_cmdidxs.vim 1447 vim --clean -X --not-a-term -u create_cmdidxs.vim
1448 1448
1449 # Run vim script to generate the normal/visual mode command lookup table.
1450 # This only needs to be run when a new normal/visual mode command has been
1451 # added. If this fails because you don't have Vim yet:
1452 # - change nv_cmds[] in normal.c to add the new normal/visual mode command.
1453 # - build Vim
1454 # - run "make nvcmdidxs" using the new Vim to generate nv_cmdidxs.h
1455 # - rebuild Vim to use the newly generated nv_cmdidxs.h file.
1456 nvcmdidxs: normal.c
1457 .\$(VIM) --clean -X --not-a-term -u create_nvcmdidxs.vim
1458
1449 test: 1459 test:
1450 cd testdir 1460 cd testdir
1451 $(MAKE) /NOLOGO -f Make_dos.mak 1461 $(MAKE) /NOLOGO -f Make_dos.mak
1452 cd .. 1462 cd ..
1453 1463
1707 1717
1708 $(OUTDIR)/netbeans.obj: $(OUTDIR) netbeans.c $(NBDEBUG_SRC) $(INCL) version.h 1718 $(OUTDIR)/netbeans.obj: $(OUTDIR) netbeans.c $(NBDEBUG_SRC) $(INCL) version.h
1709 1719
1710 $(OUTDIR)/channel.obj: $(OUTDIR) channel.c $(INCL) 1720 $(OUTDIR)/channel.obj: $(OUTDIR) channel.c $(INCL)
1711 1721
1712 $(OUTDIR)/normal.obj: $(OUTDIR) normal.c $(INCL) 1722 $(OUTDIR)/normal.obj: $(OUTDIR) normal.c $(INCL) nv_cmdidxs.h
1713 1723
1714 $(OUTDIR)/option.obj: $(OUTDIR) option.c $(INCL) optiondefs.h 1724 $(OUTDIR)/option.obj: $(OUTDIR) option.c $(INCL) optiondefs.h
1715 1725
1716 $(OUTDIR)/optionstr.obj: $(OUTDIR) optionstr.c $(INCL) 1726 $(OUTDIR)/optionstr.obj: $(OUTDIR) optionstr.c $(INCL)
1717 1727