[BACK]Return to cmdtab.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/cmdtab.c between version 1.7 and 1.8

version 1.7, 1997/03/14 04:32:12 version 1.8, 1997/03/21 20:59:27
Line 1 
Line 1 
 /*      $OpenBSD$       */  /*      $OpenBSD$       */
 /*      $NetBSD: cmdtab.c,v 1.13 1997/03/13 06:23:12 lukem Exp $        */  /*      $NetBSD: cmdtab.c,v 1.14 1997/03/14 01:39:34 christos Exp $     */
   
 /*  /*
  * Copyright (c) 1985, 1989, 1993, 1994   * Copyright (c) 1985, 1989, 1993, 1994
Line 65 
Line 65 
 char    dirhelp[] =     "list contents of remote directory";  char    dirhelp[] =     "list contents of remote directory";
 char    disconhelp[] =  "terminate ftp session";  char    disconhelp[] =  "terminate ftp session";
 char    domachelp[] =   "execute macro";  char    domachelp[] =   "execute macro";
 #ifndef SMALLFTP  #ifndef SMALL
 char    edithelp[] =    "toggle command line editing";  char    edithelp[] =    "toggle command line editing";
 #endif /* !SMALLFTP */  #endif /* !SMALL */
 char    formhelp[] =    "set file transfer format";  char    formhelp[] =    "set file transfer format";
 char    globhelp[] =    "toggle metacharacter expansion of local file names";  char    globhelp[] =    "toggle metacharacter expansion of local file names";
 char    hashhelp[] =    "toggle printing `#' marks; specify number to set size";  char    hashhelp[] =    "toggle printing `#' marks; specify number to set size";
Line 126 
Line 126 
 char    userhelp[] =    "send new user information";  char    userhelp[] =    "send new user information";
 char    verbosehelp[] = "toggle verbose mode";  char    verbosehelp[] = "toggle verbose mode";
   
 #ifdef SMALLFTP  #ifdef SMALL
 #define CMPL(x)  #define CMPL(x)
 #define CMPL0  #define CMPL0
 #else  /* !SMALLFTP */  #else  /* !SMALL */
 #define CMPL(x) __STRING(x),  #define CMPL(x) __STRING(x),
 #define CMPL0   "",  #define CMPL0   "",
 #endif /* !SMALLFTP */  #endif /* !SMALL */
   
 struct cmd cmdtab[] = {  struct cmd cmdtab[] = {
         { "!",          shellhelp,      0, 0, 0, CMPL0          shell },          { "!",          shellhelp,      0, 0, 0, CMPL0          shell },
Line 153 
Line 153 
         { "delete",     deletehelp,     0, 1, 1, CMPL(r)        delete },          { "delete",     deletehelp,     0, 1, 1, CMPL(r)        delete },
         { "dir",        dirhelp,        1, 1, 1, CMPL(rl)       ls },          { "dir",        dirhelp,        1, 1, 1, CMPL(rl)       ls },
         { "disconnect", disconhelp,     0, 1, 1, CMPL0          disconnect },          { "disconnect", disconhelp,     0, 1, 1, CMPL0          disconnect },
 #ifndef SMALLFTP  #ifndef SMALL
         { "edit",       edithelp,       0, 0, 0, CMPL0          setedit },          { "edit",       edithelp,       0, 0, 0, CMPL0          setedit },
 #endif /* !SMALLFTP */  #endif /* !SMALL */
         { "exit",       quithelp,       0, 0, 0, CMPL0          quit },          { "exit",       quithelp,       0, 0, 0, CMPL0          quit },
         { "form",       formhelp,       0, 1, 1, CMPL0          setform },          { "form",       formhelp,       0, 1, 1, CMPL0          setform },
         { "ftp",        connecthelp,    0, 0, 1, CMPL0          setpeer },          { "ftp",        connecthelp,    0, 0, 1, CMPL0          setpeer },

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8