13 #define STREQ(a,b) (strcmp(a,b) == 0) 14 #define STRNEQ(a,b,s) (strncmp(a,b,(size_t)(s)) == 0) 17 # ifdef HAVE_STRCASECMP 18 # define ISTRCMP strcasecmp 19 # define ISTRNCMP strncasecmp 21 # define ISTRCMP strcmp 22 # define ISTRNCMP strncmp 26 #define ISTREQ(a,b) (ISTRCMP(a,b) == 0) 27 #define ISTRNEQ(a,b,s) (ISTRNCMP(a,b,(size_t)(s)) == 0) 28 #define YESNO(i) ((i == 0) ? "no" : "yes") 29 #define ONOFF(i) ((i == 0) ? "off" : "on") 30 #define TRUEFALSE(i) ((i == 0) ? "false" : "true") 34 # define strcoll strcmp 37 # define strncoll strncmp 45 #define kOurDirectoryName ".ncftp" 47 #define kPasswordMagic "*encoded*" 48 #define kPasswordMagicLen 9 50 #if defined(WIN32) || defined(_WINDOWS) 51 # define kNcFTPBookmarksMailslot "\\\\.\\mailslot\\ncftpbm.slt" 52 # define kNcFTPBookmarksMailslotMsgSize 128 56 void ToBase64(
void *,
const void *,
size_t,
int);
57 void FromBase64(
void *,
const void *,
size_t,
int);
60 char *
GetCWD(
char *,
size_t);
64 void PathCat(
char *
const dst,
const size_t dsize,
const char *
const cwd,
const char *
const src);
65 char *
FileToURL(
char *
url,
size_t urlsize,
const char *
const fn,
const char *
const rcwd,
const char *
const startdir,
const char *
const user,
const char *
const pass,
const char *
const hname,
const unsigned int port);
66 void AbbrevStr(
char *,
const char *,
size_t,
int);
67 char *
Path(
char *
const dst,
const size_t siz,
const char *
const parent,
const char *
const fname);
73 void AbsoluteToRelative(
char *
const,
const size_t,
const char *
const,
const char *
const,
const size_t);
74 int GetHostByName(
char *
const volatile,
size_t,
const char *
const,
int);
78 #if defined(WIN32) || defined(_WINDOWS) 79 void SysPerror(
const char *
const errMsg);
82 #if defined(HAVE_STRCOLL) && !defined(HAVE_STRNCOLL) 83 int strncoll(
const char *
a,
const char *
b,
size_t n);
char * OurInstallationPath(char *const dst, const size_t siz, const char *const fname)
void ToBase64(void *, const void *, size_t, int)
void MyInetAddr(char *, size_t, char **, int)
int DecodeDirectoryURL(const FTPCIPtr, char *, LineListPtr, char *, size_t)
int GetHostByName(char *const volatile, size_t, const char *const, int)
char * GetCWD(char *, size_t)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
static GLenum _GLUfuncptr fn
volatile sigproc_t vsigproc_t
void PathCat(char *const dst, const size_t dsize, const char *const cwd, const char *const src)
int MayUseFirewall(const char *const, int, const char *const)
void AbbrevStr(char *, const char *, size_t, int)
struct hostent * GetHostEntry(const char *, struct in_addr *)
int(* qsort_proc_t)(const void *, const void *)
int StrToBool(const char *const)
GLboolean GLboolean GLboolean b
void AbsoluteToRelative(char *const, const size_t, const char *const, const char *const, const size_t)
void CompressPath(char *const dst, const char *const src, const size_t dsize)
time_t UnDate(char *dstr)
int(* bsearch_proc_t)(const void *, const void *)
void InitOurDirectory(void)
void * Realloc(void *, size_t)
void FromBase64(void *, const void *, size_t, int)
GLboolean GLboolean GLboolean GLboolean a
char * FileToURL(char *url, size_t urlsize, const char *const fn, const char *const rcwd, const char *const startdir, const char *const user, const char *const pass, const char *const hname, const unsigned int port)
void user(int argc, const char *argv[])
char * OurDirectoryPath(char *const dst, const size_t siz, const char *const fname)
char * Path(char *const dst, const size_t siz, const char *const parent, const char *const fname)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *