/* * main.h - include file to include most other include files * */ #ifndef MAKING_MODS #ifdef HAVE_CONFIG_H #include "../config.h" #endif #endif #include #include #include #include #include "eggdrop.h" #include "proto.h" #include "cmdt.h" #include "tclegg.h" #include "tclhash.h" extern struct dcc_table DCC_CHAT,DCC_BOT,DCC_SEND,DCC_LOST,DCC_SCRIPT, DCC_BOT_NEW,DCC_RELAY,DCC_RELAYING,DCC_FORK_RELAY,DCC_PRE_RELAY,DCC_GET, DCC_GET_PENDING,DCC_FILES,DCC_CHAT_PASS,DCC_FORK_SEND,DCC_FORK_BOT,DCC_SOCKET, DCC_TELNET_ID,DCC_TELNET_NEW,DCC_FILES_PASS,DCC_TELNET_PW,DCC_FORK_CHAT, DCC_FORK_FILES,DCC_TELNET; /* from net.h */ /* my own byte swappers */ #ifdef WORDS_BIGENDIAN #define swap_short(sh) (sh) #define swap_long(ln) (ln) #else #define swap_short(sh) ((((sh) & 0xff00) >> 8) | (((sh) & 0x00ff) << 8)) #define swap_long(ln) (swap_short(((ln)&0xffff0000)>>16) | \ (swap_short((ln)&0x0000ffff)<<16)) #endif #define iptolong(a) swap_long((unsigned long)a)