File ModuleCmd_Switch.c

 ** ** Module Header ******************************************************* **
 ** 									     **
 **   Modules Revision 3.0						     **
 **   Providing a flexible user environment				     **
 ** 									     **
 **   File:		ModuleCmd_Switch.c				     **
 **   First Edition:	91/10/23					     **
 ** 									     **
 **   Authors:	John Furlan, jlf@behere.com				     **
 **		Jens Hamisch, jens@Strawberry.COM			     **
 ** 									     **
 **   Description:	Switches two modulefiles such that the paths are     **
 **			switched in-place.				     **
 ** 									     **
 **   Exports:		ModuleCmd_Switch				     **
 ** 									     **
 **   Notes:								     **
 ** 									     **
 ** ************************************************************************ **
References Variables: IdModuleCmd_Switch.c

Included Files


Local Variables

Id
static char Id[]
Used in:  ModuleCmd_Switch.c

UseId
static void* UseId[]

module_name
static char module_name[]
Used in: ModuleCmd_Switch()


Global Function ModuleCmd_Switch()

 ** ** Function-Header ***************************************************** **
 ** 									     **
 **   Function:		ModuleCmd_Switch				     **
 ** 									     **
 **   Description:	Execution of the module-command 'switch'	     **
 ** 									     **
 **   First Edition:	91/10/23					     **
 ** 									     **
 **   Parameters:	Tcl_Interp	*interp		Attached Tcl Interp. **
 **			int		 argc		Number of arguments  **
 **			char 		*argv[]		Argument list	     **
 ** 									     **
 **   Result:		int	TCL_ERROR	Failure			     **
 **				TCL_OK		Successfull operation	     **
 ** 									     **
 **   Attached Globals:	g_flags			Controlling the callback     **
 **						functions.		     **
 **			specified_module	The module name from the     **
 **						command line.		     **
 **			g_current_module	The module which is handled  **
 **						by the current command	     **
 ** 									     **
 ** ************************************************************************ **
int ModuleCmd_Switch ( Tcl_Interp* interp, int argc, char* argv[] )
Prototyped in: modules_def.h
Calls: IsLoaded()utility.c
  Locate_ModuleFile()locate_module.c
  Module_Error()error.c
  Read_Modulefile()cmdModule.c
  Update_LoadedList()utility.c
Called by: cmdModule()cmdModule.c
References Variables: g_current_modulemain.c
  g_flagsmain.c
  module_nameModuleCmd_Switch.c
  specified_modulemain.c