Permalink
Browse files

Remove compat memcpy

Patch by: michaelortmann
Helps: #226

Eggdrop depends on POSIX.1-2001. POSIX.1-2001 defines memcpy(). Its also C89.This patch gets rid of src/compat/memcpy*. egg_memcpy() and my_memcpy() is left as is, but redefined to directly use memcpy() with a one-liner define in eggdrop.h. we only keep egg_memcpy() and my_memcpy() for backward compatibility to (older) modules, and could remove it from later eggdrop versions when api breakage becomes possible.

All egg_memcpy() and my_memcpy() were replaced by memcpy()
  • Loading branch information...
michaelortmann authored and vanosg committed Nov 2, 2018
1 parent 40d9f39 commit 525b91cb306ebdd29d130c72801f29f1ccc71e57
@@ -110,7 +110,7 @@ AX_TYPE_SOCKLEN_T
AX_CREATE_STDINT_H([eggint.h])
# Checks for functions and their arguments.
AC_CHECK_FUNCS([clock dprintf fsync getrandom getrusage inet_aton inet_ntop isascii mbrlen memcpy random rand lrand48 rename setpgid sigaction sigemptyset snprintf strcasecmp strlcpy strncasecmp uname vsnprintf])
AC_CHECK_FUNCS([clock dprintf fsync getrandom getrusage inet_aton inet_ntop isascii mbrlen random rand lrand48 rename setpgid sigaction sigemptyset snprintf strcasecmp strlcpy strncasecmp uname vsnprintf])
AC_FUNC_SELECT_ARGTYPES
EGG_FUNC_VPRINTF
AC_FUNC_STRFTIME
@@ -85,163 +85,168 @@ eggdrop.h:
bg.o: bg.c main.h ../config.h ../eggint.h ../lush.h lang.h eggdrop.h \
compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h tclhash.h \
chan.h users.h compat/compat.h compat/inet_aton.h ../src/main.h \
compat/snprintf.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h bg.h
compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h bg.h
botcmd.o: botcmd.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h tandem.h modules.h mod/modvals.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h tandem.h modules.h mod/modvals.h
botmsg.o: botmsg.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h tandem.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h tandem.h
botnet.o: botnet.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h tandem.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h tandem.h
chanprog.o: chanprog.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h modules.h mod/modvals.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h modules.h mod/modvals.h
cmds.o: cmds.c main.h ../config.h ../eggint.h ../lush.h lang.h eggdrop.h \
compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h tclhash.h \
chan.h users.h compat/compat.h compat/inet_aton.h ../src/main.h \
compat/snprintf.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h tandem.h \
modules.h mod/modvals.h
compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h tandem.h modules.h mod/modvals.h
dcc.o: dcc.c main.h ../config.h ../eggint.h ../lush.h lang.h eggdrop.h \
compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h tclhash.h \
chan.h users.h compat/compat.h compat/inet_aton.h ../src/main.h \
compat/snprintf.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h modules.h \
mod/modvals.h tandem.h md5/md5.h
compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h modules.h mod/modvals.h tandem.h md5/md5.h
dccutil.o: dccutil.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h modules.h mod/modvals.h tandem.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h modules.h mod/modvals.h tandem.h
dns.o: dns.c main.h ../config.h ../eggint.h ../lush.h lang.h eggdrop.h \
compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h tclhash.h \
chan.h users.h compat/compat.h compat/inet_aton.h ../src/main.h \
compat/snprintf.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h dns.h
compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h dns.h
flags.o: flags.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h
language.o: language.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h
main.o: main.c ../config.h main.h ../eggint.h ../lush.h lang.h eggdrop.h \
compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h tclhash.h \
chan.h users.h compat/compat.h compat/inet_aton.h ../src/main.h \
compat/snprintf.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h version.h \
modules.h mod/modvals.h tandem.h bg.h
compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h version.h modules.h mod/modvals.h tandem.h bg.h
match.o: match.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h
mem.o: mem.c main.h ../config.h ../eggint.h ../lush.h lang.h eggdrop.h \
compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h tclhash.h \
chan.h users.h compat/compat.h compat/inet_aton.h ../src/main.h \
compat/snprintf.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
mod/modvals.h
compat/strlcpy.h mod/modvals.h
misc.o: misc.c main.h ../config.h ../eggint.h ../lush.h lang.h eggdrop.h \
compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h tclhash.h \
chan.h users.h compat/compat.h compat/inet_aton.h ../src/main.h \
compat/snprintf.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h tandem.h \
modules.h mod/modvals.h stat.h
compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h tandem.h modules.h mod/modvals.h stat.h
misc_file.o: misc_file.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h stat.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h stat.h
modules.o: modules.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h modules.h mod/modvals.h tandem.h md5/md5.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h modules.h mod/modvals.h tandem.h md5/md5.h
net.o: net.c main.h ../config.h ../eggint.h ../lush.h lang.h eggdrop.h \
compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h tclhash.h \
chan.h users.h compat/compat.h compat/inet_aton.h ../src/main.h \
compat/snprintf.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h
compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h
rfc1459.o: rfc1459.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h
tcl.o: tcl.c main.h ../config.h ../eggint.h ../lush.h lang.h eggdrop.h \
compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h tclhash.h \
chan.h users.h compat/compat.h compat/inet_aton.h ../src/main.h \
compat/snprintf.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h
compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h
tcldcc.o: tcldcc.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h tandem.h modules.h mod/modvals.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h tandem.h modules.h mod/modvals.h
tclhash.o: tclhash.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h
tclmisc.o: tclmisc.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h modules.h mod/modvals.h tandem.h md5/md5.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h modules.h mod/modvals.h tandem.h md5/md5.h
tcluser.o: tcluser.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h tandem.h modules.h mod/modvals.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h tandem.h modules.h mod/modvals.h
tls.o: tls.c main.h ../config.h ../eggint.h ../lush.h lang.h eggdrop.h \
compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h tclhash.h \
chan.h users.h compat/compat.h compat/inet_aton.h ../src/main.h \
compat/snprintf.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h
compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h
userent.o: userent.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h
userrec.o: userrec.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h modules.h mod/modvals.h tandem.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h modules.h mod/modvals.h tandem.h
users.o: users.c main.h ../config.h ../eggint.h ../lush.h lang.h \
eggdrop.h compat/in6.h flags.h proto.h misc_file.h cmdt.h tclegg.h \
tclhash.h chan.h users.h compat/compat.h compat/inet_aton.h \
../src/main.h compat/snprintf.h compat/memcpy.h compat/strcasecmp.h \
compat/strftime.h compat/inet_ntop.h compat/inet_pton.h \
compat/gethostbyname2.h modules.h mod/modvals.h tandem.h
../src/main.h compat/snprintf.h compat/strcasecmp.h compat/strftime.h \
compat/inet_ntop.h compat/inet_pton.h compat/gethostbyname2.h \
compat/strlcpy.h modules.h mod/modvals.h tandem.h
Oops, something went wrong.

0 comments on commit 525b91c

Please sign in to comment.