patch 8.2.3301: memory allocation functions don't have their own place
Problem: Memory allocation functions don't have their own place.
Solution: Move memory allocation functions to alloc.c. (Yegappan
Lakshmanan, closes #8717)
diff --git a/src/Makefile b/src/Makefile
index 6fa9d25..4ac2634 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1590,6 +1590,7 @@
# ALL_SRC: source files used for make depend and make lint
BASIC_SRC = \
+ alloc.c \
arabic.c \
arglist.c \
autocmd.c \
@@ -1747,6 +1748,7 @@
#LINT_SRC = $(BASIC_SRC)
OBJ_COMMON = \
+ objects/alloc.o \
objects/arabic.o \
objects/arglist.o \
objects/autocmd.o \
@@ -1917,6 +1919,7 @@
PRO_AUTO = \
+ alloc.pro \
arabic.pro \
arglist.pro \
autocmd.pro \
@@ -3150,6 +3153,9 @@
# time.
$(ALL_OBJ): objects/.dirstamp
+objects/alloc.o: alloc.c
+ $(CCC) -o $@ alloc.c
+
objects/arabic.o: arabic.c
$(CCC) -o $@ arabic.c
@@ -3711,6 +3717,10 @@
###############################################################################
### (automatically generated by 'make depend')
### Dependencies:
+objects/alloc.o: alloc.c vim.h protodef.h auto/config.h feature.h os_unix.h \
+ auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
+ proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
+ proto.h errors.h globals.h
objects/arabic.o: arabic.c vim.h protodef.h auto/config.h feature.h os_unix.h \
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \