Ver código fonte

Rename C++ files to .cc to quiet clang

Bryan Drewery 11 anos atrás
pai
commit
fc244b9c05
79 arquivos alterados com 30 adições e 29 exclusões
  1. 5 5
      Makefile.in
  2. 1 1
      build/autotools/includes/acinclude.m4
  3. 1 1
      build/autotools/includes/depend.m4
  4. 2 2
      configure
  5. 1 0
      src/.gitignore
  6. 0 0
      src/EncryptedStream.cc
  7. 6 6
      src/Makefile.in
  8. 0 0
      src/adns.cc
  9. 0 0
      src/auth.cc
  10. 0 0
      src/base64.cc
  11. 0 0
      src/bg.cc
  12. 0 0
      src/binary.cc
  13. 0 0
      src/binds.cc
  14. 0 0
      src/botcmd.cc
  15. 0 0
      src/botmsg.cc
  16. 0 0
      src/botnet.cc
  17. 0 0
      src/chanprog.cc
  18. 0 0
      src/cmds.cc
  19. 0 0
      src/conf.cc
  20. 0 0
      src/core_binds.cc
  21. 0 0
      src/crypt.cc
  22. 0 0
      src/crypto/aes_util.cc
  23. 0 0
      src/crypto/bf_util.cc
  24. 0 0
      src/crypto/dh_util.cc
  25. 0 0
      src/dcc.cc
  26. 0 0
      src/dccutil.cc
  27. 0 0
      src/debug.cc
  28. 0 0
      src/dhparam.cc
  29. 0 0
      src/dl.cc
  30. 0 0
      src/egg_timer.cc
  31. 0 0
      src/enclink.cc
  32. 0 0
      src/flags.cc
  33. 0 0
      src/garble.cc
  34. 1 1
      src/generate_defs.sh
  35. 1 1
      src/libcrypto.cc
  36. 1 1
      src/libssl.cc
  37. 1 1
      src/libtcl.cc
  38. 0 0
      src/log.cc
  39. 0 0
      src/main.cc
  40. 0 0
      src/makehelp.cc
  41. 0 0
      src/makeres.cc
  42. 0 0
      src/makeset.cc
  43. 0 0
      src/makesort.cc
  44. 0 0
      src/match.cc
  45. 0 0
      src/misc.cc
  46. 0 0
      src/misc_file.cc
  47. 0 0
      src/mod/channels.mod/chanmisc.cc
  48. 3 3
      src/mod/channels.mod/channels.cc
  49. 0 0
      src/mod/channels.mod/cmdschan.cc
  50. 0 0
      src/mod/channels.mod/userchan.cc
  51. 0 0
      src/mod/compress.mod/compress.cc
  52. 0 0
      src/mod/console.mod/console.cc
  53. 0 0
      src/mod/ctcp.mod/ctcp.cc
  54. 0 0
      src/mod/irc.mod/chan.cc
  55. 0 0
      src/mod/irc.mod/cmdsirc.cc
  56. 4 4
      src/mod/irc.mod/irc.cc
  57. 0 0
      src/mod/irc.mod/mode.cc
  58. 0 0
      src/mod/irc.mod/msgcmds.cc
  59. 0 0
      src/mod/server.mod/cmdsserv.cc
  60. 2 2
      src/mod/server.mod/server.cc
  61. 0 0
      src/mod/server.mod/servmsg.cc
  62. 0 0
      src/mod/share.mod/share.cc
  63. 0 0
      src/mod/transfer.mod/transfer.cc
  64. 0 0
      src/mod/update.mod/update.cc
  65. 0 0
      src/net.cc
  66. 1 1
      src/openssl.cc
  67. 0 0
      src/response.cc
  68. 0 0
      src/rfc1459.cc
  69. 0 0
      src/set.cc
  70. 0 0
      src/shell.cc
  71. 0 0
      src/socket.cc
  72. 0 0
      src/sorthelp.cc
  73. 0 0
      src/sprintf.cc
  74. 0 0
      src/stringfix.cc
  75. 0 0
      src/thread.cc
  76. 0 0
      src/userent.cc
  77. 0 0
      src/userrec.cc
  78. 0 0
      src/users.cc
  79. 0 0
      src/utc-time.cc

+ 5 - 5
Makefile.in

@@ -180,19 +180,19 @@ res: makeres
 	cp -f src/responses.h~ src/responses.h; \
 	fi)
 
-stringfix: src/stringfix.c src/config.h
+stringfix: src/stringfix.cc src/config.h
 	+@cd src && ${MAKE_UTILS} stringfix
 
-makeres: src/makeres.c
+makeres: src/makeres.cc
 	+@cd src && ${MAKE_UTILS} makeres
 
-makeset: src/makeset.c
+makeset: src/makeset.cc
 	+@cd src && ${MAKE_UTILS} makeset
 
-makehelp: src/makehelp.c
+makehelp: src/makehelp.cc
 	+@cd src && ${MAKE_UTILS} makehelp
 
-sorthelp: src/sorthelp.c
+sorthelp: src/sorthelp.cc
 	+@cd src && ${MAKE_UTILS} sorthelp
 
 utils: stringfix makehelp

+ 1 - 1
build/autotools/includes/acinclude.m4

@@ -651,7 +651,7 @@ dnl  EGG_SUBST_VERSION()
 dnl
 AC_DEFUN([EGG_SUBST_VERSION], 
 [
-VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print [$]5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
+VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print [$]5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
 version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", [$]1, [$]2, [$]3)}'`
 AC_DEFINE_UNQUOTED(EGG_VERSION, $version_num, [Defines the current pack version])dnl
 AC_SUBST(VERSION)dnl

+ 1 - 1
build/autotools/includes/depend.m4

@@ -45,7 +45,7 @@ for mf in $files; do
   do
     suffix=${file##*.}
     base=${file%%.*}
-    test -f "$dirpart/$base.c" || continue
+    test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
     if ! test -f "$dirpart/.deps/$base.Po"; then
       echo '# dummy' > "$dirpart/.deps/$base.Po"
       #Remove the .o file, because it needs to be recompiled for its dependancies.

+ 2 - 2
configure

@@ -8812,7 +8812,7 @@ fi
 rm -f confcache
 
 
-VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
+VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
 version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
 
 cat >>build/confdefs.h <<_ACEOF
@@ -8852,7 +8852,7 @@ for mf in $files; do
   do
     suffix=${file##*.}
     base=${file%%.*}
-    test -f "$dirpart/$base.c" || continue
+    test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
     if ! test -f "$dirpart/.deps/$base.Po"; then
       echo '# dummy' > "$dirpart/.deps/$base.Po"
       #Remove the .o file, because it needs to be recompiled for its dependancies.

+ 1 - 0
src/.gitignore

@@ -1,6 +1,7 @@
 /Makefile
 /buildinfo.h
 /_*.c
+/_*.cc
 /*~
 /help.h
 /response.h

+ 0 - 0
src/EncryptedStream.c → src/EncryptedStream.cc


+ 6 - 6
src/Makefile.in

@@ -75,27 +75,27 @@ blah:
 	@echo "Use the build script."
 	@echo ""
 
-makeres: makeres.c ../lib/bdlib/src/libbdlib.a
+makeres: makeres.cc ../lib/bdlib/src/libbdlib.a
 	@echo -e "Compiling: \033[1mmakeres\033[0m"
 	@$(CXX) $(CPPFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/pack $(CXXFLAGS) $< ../lib/bdlib/src/libbdlib.a -o $@
 	@$(STRIP) $@@EXEEXT@
 
-makeset: makeset.c ../lib/bdlib/src/libbdlib.a
+makeset: makeset.cc ../lib/bdlib/src/libbdlib.a
 	@echo -e "Compiling: \033[1mmakeset\033[0m"
 	@$(CXX) $(CPPFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/pack $(CXXFLAGS) $< ../lib/bdlib/src/libbdlib.a -o $@
 	@$(STRIP) $@@EXEEXT@
 
-makehelp: makehelp.c ../lib/bdlib/src/libbdlib.a
+makehelp: makehelp.cc ../lib/bdlib/src/libbdlib.a
 	@echo -e "Compiling: \033[1mmakehelp\033[0m"
 	@$(CXX) $(CPPFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/pack $(CXXFLAGS) $< ../lib/bdlib/src/libbdlib.a -o $@
 	@$(STRIP) $@@EXEEXT@
 
-sorthelp: sorthelp.c ../lib/bdlib/src/libbdlib.a
+sorthelp: sorthelp.cc ../lib/bdlib/src/libbdlib.a
 	@echo -e "Compiling: \033[1msorthelp\033[0m"
 	@$(CXX) $(CPPFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/pack $(CXXFLAGS) $< ../lib/bdlib/src/libbdlib.a -o $@
 	@$(STRIP) $@@EXEEXT@
 
-stringfix: stringfix.c common.h config.h eggdrop.h
+stringfix: stringfix.cc common.h config.h eggdrop.h
 	@echo -e "Compiling: \033[1mstringfix\033[0m"
 	@$(CXX) $(CPPFLAGS) -I$(top_srcdir) -I$(top_srcdir)/pack $(CXXFLAGS) $< -o stringfix
 	@$(STRIP) $@@EXEEXT@
@@ -116,7 +116,7 @@ stringfix: stringfix.c common.h config.h eggdrop.h
 $(EGGEXEC): stringfix ../$(EGGEXEC)
 
 clean:
-	@rm -f .depend *.o *.So *~ _*.c
+	@rm -f .depend *.o *.So *~ _*.c _*.cc
 
 build_msg:
 	@echo "[*] Compiling core components"

+ 0 - 0
src/adns.c → src/adns.cc


+ 0 - 0
src/auth.c → src/auth.cc


+ 0 - 0
src/base64.c → src/base64.cc


+ 0 - 0
src/bg.c → src/bg.cc


+ 0 - 0
src/binary.c → src/binary.cc


+ 0 - 0
src/binds.c → src/binds.cc


+ 0 - 0
src/botcmd.c → src/botcmd.cc


+ 0 - 0
src/botmsg.c → src/botmsg.cc


+ 0 - 0
src/botnet.c → src/botnet.cc


+ 0 - 0
src/chanprog.c → src/chanprog.cc


+ 0 - 0
src/cmds.c → src/cmds.cc


+ 0 - 0
src/conf.c → src/conf.cc


+ 0 - 0
src/core_binds.c → src/core_binds.cc


+ 0 - 0
src/crypt.c → src/crypt.cc


+ 0 - 0
src/crypto/aes_util.c → src/crypto/aes_util.cc


+ 0 - 0
src/crypto/bf_util.c → src/crypto/bf_util.cc


+ 0 - 0
src/crypto/dh_util.c → src/crypto/dh_util.cc


+ 0 - 0
src/dcc.c → src/dcc.cc


+ 0 - 0
src/dccutil.c → src/dccutil.cc


+ 0 - 0
src/debug.c → src/debug.cc


+ 0 - 0
src/dhparam.c → src/dhparam.cc


+ 0 - 0
src/dl.c → src/dl.cc


+ 0 - 0
src/egg_timer.c → src/egg_timer.cc


+ 0 - 0
src/enclink.c → src/enclink.cc


+ 0 - 0
src/flags.c → src/flags.cc


+ 0 - 0
src/garble.c → src/garble.cc


+ 1 - 1
src/generate_defs.sh

@@ -12,7 +12,7 @@ INCLUDES="${TCL_INCLUDES} ${SSL_INCLUDES}"
 
 mkdir -p src/.defs > /dev/null 2>&1
 TMPFILE=$(mktemp "/tmp/pre.XXXXXX")
-files=$(grep -l DLSYM_GLOBAL src/*.c|grep -v "src/_")
+files=$(grep -l DLSYM_GLOBAL src/*.cc|grep -v "src/_")
 for file in ${files}; do
   suffix=${file##*.}
   basename=${file%%.*}

+ 1 - 1
src/libcrypto.c → src/libcrypto.cc

@@ -32,7 +32,7 @@
 #include <bdlib/src/Array.h>
 
 #include "libcrypto.h"
-#include ".defs/libcrypto_defs.c"
+#include ".defs/libcrypto_defs.cc"
 
 void *libcrypto_handle = NULL;
 static bd::Array<bd::String> my_symbols;

+ 1 - 1
src/libssl.c → src/libssl.cc

@@ -32,7 +32,7 @@
 #include <bdlib/src/Array.h>
 
 #include "libssl.h"
-#include ".defs/libssl_defs.c"
+#include ".defs/libssl_defs.cc"
 
 void *libssl_handle = NULL;
 static bd::Array<bd::String> my_symbols;

+ 1 - 1
src/libtcl.c → src/libtcl.cc

@@ -32,7 +32,7 @@
 #include <bdlib/src/Array.h>
 
 #include "libtcl.h"
-#include ".defs/libtcl_defs.c"
+#include ".defs/libtcl_defs.cc"
 
 #ifdef USE_SCRIPT_TCL
 Tcl_Interp *global_interp = NULL;

+ 0 - 0
src/log.c → src/log.cc


+ 0 - 0
src/main.c → src/main.cc


+ 0 - 0
src/makehelp.c → src/makehelp.cc


+ 0 - 0
src/makeres.c → src/makeres.cc


+ 0 - 0
src/makeset.c → src/makeset.cc


+ 0 - 0
src/makesort.c → src/makesort.cc


+ 0 - 0
src/match.c → src/match.cc


+ 0 - 0
src/misc.c → src/misc.cc


+ 0 - 0
src/misc_file.c → src/misc_file.cc


+ 0 - 0
src/mod/channels.mod/chanmisc.c → src/mod/channels.mod/chanmisc.cc


+ 3 - 3
src/mod/channels.mod/channels.c → src/mod/channels.mod/channels.cc

@@ -64,9 +64,9 @@ static char *lastdeletedmask = NULL;
 static int 			killed_bots = 0;
 
 #include "channels.h"
-#include "cmdschan.c"
-#include "chanmisc.c"
-#include "userchan.c"
+#include "cmdschan.cc"
+#include "chanmisc.cc"
+#include "userchan.cc"
 
 /* This will close channels if the HUB:leaf count is skewed from config setting */
 static void 

+ 0 - 0
src/mod/channels.mod/cmdschan.c → src/mod/channels.mod/cmdschan.cc


+ 0 - 0
src/mod/channels.mod/userchan.c → src/mod/channels.mod/userchan.cc


+ 0 - 0
src/mod/compress.mod/compress.c → src/mod/compress.mod/compress.cc


+ 0 - 0
src/mod/console.mod/console.c → src/mod/console.mod/console.cc


+ 0 - 0
src/mod/ctcp.mod/ctcp.c → src/mod/ctcp.mod/ctcp.cc


+ 0 - 0
src/mod/irc.mod/chan.c → src/mod/irc.mod/chan.cc


+ 0 - 0
src/mod/irc.mod/cmdsirc.c → src/mod/irc.mod/cmdsirc.cc


+ 4 - 4
src/mod/irc.mod/irc.c → src/mod/irc.mod/irc.cc

@@ -109,10 +109,10 @@ voice_ok(memberlist *m, struct chanset_t *chan)
   return 1;
 }
 
-#include "chan.c"
-#include "mode.c"
-#include "cmdsirc.c"
-#include "msgcmds.c"
+#include "chan.cc"
+#include "mode.cc"
+#include "cmdsirc.cc"
+#include "msgcmds.cc"
 
 static int
 detect_offense(memberlist* m, struct chanset_t *chan, char *msg)

+ 0 - 0
src/mod/irc.mod/mode.c → src/mod/irc.mod/mode.cc


+ 0 - 0
src/mod/irc.mod/msgcmds.c → src/mod/irc.mod/msgcmds.cc


+ 0 - 0
src/mod/server.mod/cmdsserv.c → src/mod/server.mod/cmdsserv.cc


+ 2 - 2
src/mod/server.mod/server.c → src/mod/server.mod/server.cc

@@ -132,7 +132,7 @@ bind_table_t *BT_ctcr = NULL, *BT_ctcp = NULL;
 #define SERVER_CONNECT_BURST_TIME 18
 #define SERVER_CONNECT_BURST_RATE 5 * 7
 
-#include "servmsg.c"
+#include "servmsg.cc"
 
 #define MAXPENALTY 10
 
@@ -164,7 +164,7 @@ static const struct {
 #define Q_PLAY 3
 #define Q_CACHE 4
 
-#include "cmdsserv.c"
+#include "cmdsserv.cc"
 
 
 /*

+ 0 - 0
src/mod/server.mod/servmsg.c → src/mod/server.mod/servmsg.cc


+ 0 - 0
src/mod/share.mod/share.c → src/mod/share.mod/share.cc


+ 0 - 0
src/mod/transfer.mod/transfer.c → src/mod/transfer.mod/transfer.cc


+ 0 - 0
src/mod/update.mod/update.c → src/mod/update.mod/update.cc


+ 0 - 0
src/net.c → src/net.cc


+ 1 - 1
src/openssl.c → src/openssl.cc

@@ -43,7 +43,7 @@ int     ssl_use = 0; /* kyotou */
 
 static int seed_PRNG(void);
 
-#include "dhparam.c"
+#include "dhparam.cc"
 
 static DH* tmp_dh_callback(SSL* ssl, int is_export, int keylength) {
   DH *ret = NULL;

+ 0 - 0
src/response.c → src/response.cc


+ 0 - 0
src/rfc1459.c → src/rfc1459.cc


+ 0 - 0
src/set.c → src/set.cc


+ 0 - 0
src/shell.c → src/shell.cc


+ 0 - 0
src/socket.c → src/socket.cc


+ 0 - 0
src/sorthelp.c → src/sorthelp.cc


+ 0 - 0
src/sprintf.c → src/sprintf.cc


+ 0 - 0
src/stringfix.c → src/stringfix.cc


+ 0 - 0
src/thread.c → src/thread.cc


+ 0 - 0
src/userent.c → src/userent.cc


+ 0 - 0
src/userrec.c → src/userrec.cc


+ 0 - 0
src/users.c → src/users.cc


+ 0 - 0
src/utc-time.c → src/utc-time.cc