File ModuleCmd_Load.c

 ** ** Module Header ******************************************************* **
 ** 									     **
 **   Modules Revision 3.0						     **
 **   Providing a flexible user environment				     **
 ** 									     **
 **   File:		ModuleCmd_Load.c				     **
 **   First Edition:	91/10/23					     **
 ** 									     **
 **   Authors:	John Furlan, jlf@behere.com				     **
 **		Jens Hamisch, jens@Strawberry.COM			     **
 ** 									     **
 **   Description:	The load and unload procedure that takes care of     **
 **			adding and removing modulefiles to and from the	     **
 **			user's environment.				     **
 ** 									     **
 **   Exports:		ModuleCmd_Load					     **
 ** 									     **
 **   Notes:								     **
 ** 									     **
 ** ************************************************************************ **
References Variables: IdModuleCmd_Load.c

Included Files


Local Variables

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

UseId
static void* UseId[]

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


Global Function ModuleCmd_Load()

 ** ** Function-Header ***************************************************** **
 ** 									     **
 **   Function:		ModuleCmd_Load					     **
 ** 									     **
 **   Description:	Execution of the module-commands 'load' and 'unload' **
 ** 									     **
 **   First Edition:	91/10/23					     **
 ** 									     **
 **   Parameters:	Tcl_Interp	*interp		Attached Tcl Interp. **
 **			int		 load		Controls 'load' or   **
 **							'unload' to be done  **
 **			int		 argc		Number of arguments  **
 **			char 		*argv[]		Argument list	     **
 ** 									     **
 **   Result:		int	0		None of the passed modules   **
 **						has been load		     **
 **				1		At least one module has been **
 **						read			     **
 ** 									     **
 **   Attached Globals:	specified_module	The module name from the     **
 **						command line		     **
 **   			g_flags		These are set up accordingly before  **
 **					this function is called in order to  **
 **					control everything		     **
 **			g_current_module	The module which is handled  **
 **						by the current command	     **
 ** 									     **
 ** ************************************************************************ **
int ModuleCmd_Load ( Tcl_Interp* interp, int load, int argc, char* argv[] )
Prototyped in: modules_def.h
Calls: Copy_Hash_Tables()utility.c
  Delete_Hash_Tables()utility.c
  InitializeModuleCommands()init.c
  IsLoaded()utility.c
  Locate_ModuleFile()locate_module.c
  Module_Error()error.c
  Read_Modulefile()cmdModule.c
  Unwind_Modulefile_Changes()utility.c
  Update_LoadedList()utility.c
  Tcl_CreateInterp(), Tcl_DeleteInterp(), strcpy()
Called by: ModuleCmd_Purge()ModuleCmd_Purge.c
  ModuleCmd_Update()ModuleCmd_Update.c
  cmdModule()cmdModule.c
References Variables: g_current_modulemain.c
  g_flagsmain.c
  module_nameModuleCmd_Load.c
  specified_modulemain.c