Browse Source

* main.c [!WITH_MCFS] (PanelMenu): Eliminate mcfs related entry.
(RightMenu): Likewise.
* textconf.c (features): Likewise.
* cmd.c (netlink_cmd) [!WITH_MCFS]: Eliminate.

Andrew V. Samoilov 23 years ago
parent
commit
5a255dd2ea
4 changed files with 15 additions and 2 deletions
  1. 7 0
      src/ChangeLog
  2. 2 2
      src/cmd.c
  3. 4 0
      src/main.c
  4. 2 0
      src/textconf.c

+ 7 - 0
src/ChangeLog

@@ -1,3 +1,10 @@
+2002-04-19  Andrew V. Samoilov  <kai@cmail.ru>
+
+	* main.c [!WITH_MCFS] (PanelMenu): Eliminate mcfs related entry.
+	(RightMenu): Likewise.
+	* textconf.c (features): Likewise.
+	* cmd.c (netlink_cmd) [!WITH_MCFS]: Eliminate.
+
 2002-04-03  Pavel Roskin  <proski@gnu.org>
 
 	* Makefile: mc.hlp should be in MAINTAINERCLEANFILES, not in

+ 2 - 2
src/cmd.c

@@ -1289,13 +1289,13 @@ static void nice_cd (char *text, char *xtext, char *help, char *prefix, int to_h
     g_free (cd_path);
     g_free (machine);
 }
-
+#ifdef WITH_MCFS
 void netlink_cmd (void)
 {
     nice_cd (_(" Link to a remote machine "), _(machine_str),
 	     "[Network File System]", "/#mc:", 1);
 }
-
+#endif
 void ftplink_cmd (void)
 {
     nice_cd (_(" FTP to machine "), _(machine_str),

+ 4 - 0
src/main.c

@@ -1103,7 +1103,9 @@ static menu_entry PanelMenu [] = {
     { ' ', N_("&Filter..."),                'F', filter_cmd },
 #ifdef USE_NETCODE			    
     { ' ', "", ' ', 0 },		    
+#ifdef WITH_MCFS
     { ' ', N_("&Network link..."),          'N', netlink_cmd },
+#endif
     { ' ', N_("FT&P link..."),              'P', ftplink_cmd },
 #ifdef WITH_SMBFS
     { ' ', N_("SM&B link..."),              'B', smblink_cmd },
@@ -1127,7 +1129,9 @@ static menu_entry RightMenu [] = {
     { ' ', N_("&Filter..."),             'F', filter_cmd },
 #ifdef USE_NETCODE			    
     { ' ', "", ' ', 0 },		    
+#ifdef WITH_MCFS
     { ' ', N_("&Network link..."),       'N', netlink_cmd },
+#endif
     { ' ', N_("FT&P link..."),           'P', ftplink_cmd },
 #ifdef WITH_SMBFS
     { ' ', N_("SM&B link..."),           'B', smblink_cmd },

+ 2 - 0
src/textconf.c

@@ -13,7 +13,9 @@ static const char * const features [] =  {
 #   ifdef HSC_PROXY
     N_(" (proxies: hsc proxy)"),
 #   endif
+#   ifdef WITH_MCFS
     N_(", mcfs"),
+#   endif
 #   ifdef USE_TERMNET
     N_(" (with termnet support)"),
 #   endif