/* sitecopy, manage remote web sites. Copyright (C) 1998-2002, Joe Orton . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef COMMON_H #define COMMON_H #include /* our own DEBUG_ channels */ #define DEBUG_FILES (1<<10) #define DEBUG_RCFILE (1<<11) #define DEBUG_FTP (1<<12) #define DEBUG_GNOME (1<<13) #define DEBUG_FILESEXTRA (1<<13) #define DEBUG_RSH (1<<14) #ifdef __EMX__ /* siebert: strcasecmp is stricmp */ #define strcasecmp stricmp #endif /* boolean */ #define true 1 #define false 0 #if defined (__EMX__) || defined(__CYGWIN__) #define FOPEN_BINARY_FLAGS "b" #define OPEN_BINARY_FLAGS O_BINARY #else #define FOPEN_BINARY_FLAGS "" #define OPEN_BINARY_FLAGS 0 #endif #define ASC2HEX(x) (((x) <= '9') ? ((x) - '0') : (tolower((x)) + 10 - 'a')) #define HEX2ASC(x) ((char) ((x) > 9 ? ((x) - 10 + 'a') : ((x) + '0')) ) #define NE_DEBUG(...) #endif