mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
2808 lines
122 KiB
HTML
2808 lines
122 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
|
|
<!-- This HTML file generated by cxref (version 1.6a). -->
|
|
<!-- cxref program (c) Andrew M. Bishop 1995,96,97,98,99,2000,01,02,03,04,05. -->
|
|
|
|
<!--
|
|
Cxref: cxref -block-comments -verbatim-comments -xref-all -index-all -html-src -Oxref utility.c
|
|
CPP : cxref-cpp -lang-c -C -dD -dI
|
|
-->
|
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
<TITLE>Cross reference for utility.c of cxref.</TITLE>
|
|
<LINK rel="stylesheet" href="cxref.css" type="text/css">
|
|
</HEAD>
|
|
|
|
<BODY>
|
|
|
|
<h1><a name="file" href="utility.c.src.html">File utility.c</a></h1>
|
|
<pre>
|
|
** ** Module Header ******************************************************* **
|
|
** **
|
|
** Modules Revision 3.0 **
|
|
** Providing a flexible user environment **
|
|
** **
|
|
** File: utility.c **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Authors: John Furlan, jlf@behere.com **
|
|
** Jens Hamisch, jens@Strawberry.COM **
|
|
** **
|
|
** Description: General routines that are called throughout Modules **
|
|
** which are not necessarily specific to any single **
|
|
** block of functionality. **
|
|
** **
|
|
** Exports: store_hash_value **
|
|
** clear_hash_value **
|
|
** Delete_Global_Hash_Tables **
|
|
** Delete_Hash_Tables **
|
|
** Copy_Hash_Tables **
|
|
** Unwind_Modulefile_Changes **
|
|
** Output_Modulefile_Changes **
|
|
** IsLoaded_ExactMatch **
|
|
** IsLoaded **
|
|
** chk_marked_entry **
|
|
** set_marked_entry **
|
|
** Update_LoadedList **
|
|
** check_magic **
|
|
** cleanse_path **
|
|
** chk4spch **
|
|
** xdup **
|
|
** xgetenv **
|
|
** stringer **
|
|
** null_free **
|
|
** countTclHash **
|
|
** **
|
|
** strdup if not defined by the system libs. **
|
|
** strtok if not defined by the system libs. **
|
|
** **
|
|
** Notes: **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<table>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><a href="utility.c.html#var-Id">Id</a>
|
|
<td><a href="utility.c.html#var-Id">utility.c</a>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2>Included Files</h2>
|
|
|
|
<ul class="cxref-include">
|
|
<li class="cxref-include-local"><tt><span class="cxref-include-local"><a href="modules_def.h.html#file">#include "modules_def.h"</a></span></tt>
|
|
<ul class="cxref-include">
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <stdio.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <stdarg.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <tcl.h></span></tt>
|
|
<li class="cxref-include-local"><tt><span class="cxref-include-local"><a href="config.h.html#file">#include "config.h"</a></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <stdlib.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <string.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <unistd.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <sys/types.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <ctype.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <sys/stat.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <sys/termios.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <fcntl.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <sys/ioctl.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <dirent.h></span></tt>
|
|
<li class="cxref-include-system"><tt><span class="cxref-include-system">#include <errno.h></span></tt>
|
|
</ul>
|
|
</ul>
|
|
|
|
<hr>
|
|
<h2>Local Variables</h2>
|
|
|
|
<b><a name="var-Id">Id</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="utility.c.src.html#line53">static char Id[]</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Used in:
|
|
<td> <td><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<b><a name="var-UseId">UseId</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="utility.c.src.html#line54">static void* UseId[]</a></span></tt><br>
|
|
<p>
|
|
<b><a name="var-module_name">module_name</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="utility.c.src.html#line84">static char module_name[]</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Used in:
|
|
<td><a href="#func-Copy_Hash_Tables">Copy_Hash_Tables()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-Open_Aliasfile">Open_Aliasfile()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-Output_Modulefile_Changes">Output_Modulefile_Changes()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-__IsLoaded">__IsLoaded()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-check_magic">check_magic()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-getLMFILES">getLMFILES()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_set_variable">output_set_variable()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_unset_variable">output_unset_variable()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-stringer">stringer()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-tmpfile_mod">tmpfile_mod()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-xdup">xdup()</a>
|
|
<td>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<b><a name="var-aliasfile">aliasfile</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="utility.c.src.html#line112">static FILE* aliasfile</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Used in:
|
|
<td><a href="#func-Open_Aliasfile">Open_Aliasfile()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-Output_Modulefile_Changes">Output_Modulefile_Changes()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_function">output_function()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_set_alias">output_set_alias()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_unset_alias">output_unset_alias()</a>
|
|
<td>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<b><a name="var-aliasfilename">aliasfilename</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="utility.c.src.html#line113">static char* aliasfilename</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Used in:
|
|
<td><a href="#func-Open_Aliasfile">Open_Aliasfile()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a>
|
|
<td>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<b><a name="var-alias_separator">alias_separator</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="utility.c.src.html#line114">static char alias_separator</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Used in:
|
|
<td><a href="#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_function">output_function()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_set_alias">output_set_alias()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_unset_alias">output_unset_alias()</a>
|
|
<td>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<b><a name="var-eval_alias">eval_alias</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="utility.c.src.html#line121">static const int eval_alias</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Used in:
|
|
<td><a href="#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a>
|
|
<td>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<b><a name="var-bourne_funcs">bourne_funcs</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="utility.c.src.html#line128">static const int bourne_funcs</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Used in:
|
|
<td><a href="#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_set_alias">output_set_alias()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_unset_alias">output_unset_alias()</a>
|
|
<td>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<b><a name="var-bourne_alias">bourne_alias</a></b><br>
|
|
<tt><span class="cxref-variable"><a href="utility.c.src.html#line135">static const int bourne_alias</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Used in:
|
|
<td><a href="#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_set_alias">output_set_alias()</a>
|
|
<td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><a href="#func-output_unset_alias">output_unset_alias()</a>
|
|
<td>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Copy_Hash_Tables">Global Function Copy_Hash_Tables()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: Copy_Hash_Tables **
|
|
** **
|
|
** Description: Allocate new hash tables for the global environment, **
|
|
** initialize them and copy the contents of the current **
|
|
** tables into them. **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: - **
|
|
** Result: Tcl_HashTable** Pointer to the new list of **
|
|
** hash tables **
|
|
** Attached Globals: setenvHashTable, **
|
|
** unsetenvHashTable, **
|
|
** aliasSetHashTable, **
|
|
** aliasUnsetHashTable **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line459">Tcl_HashTable** Copy_Hash_Tables ( void )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">Tcl_FirstHashEntry(), Tcl_InitHashTable(), Tcl_NextHashEntry(), malloc(), strdup()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasSetHashTable">aliasSetHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasSetHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasUnsetHashTable">aliasUnsetHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasUnsetHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-setenvHashTable">setenvHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-setenvHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-unsetenvHashTable">unsetenvHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-unsetenvHashTable">main.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Delete_Global_Hash_Tables">Global Function Delete_Global_Hash_Tables()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: Delete_Global_Hash_Tables **
|
|
** Delete_Hash_Tables **
|
|
** **
|
|
** Description: Deletes our environment hash tables. **
|
|
** **
|
|
** First Edition: 1992/10/14 **
|
|
** **
|
|
** Parameters: Tcl_HashTable **table_ptr NULL-Terminated list **
|
|
** of hash tables to be **
|
|
** deleted **
|
|
** Result: - **
|
|
** **
|
|
** Attached Globals: setenvHashTable, **
|
|
** unsetenvHashTable, **
|
|
** aliasSetHashTable, **
|
|
** aliasUnsetHashTable **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line371">void Delete_Global_Hash_Tables ( void )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Delete_Hash_Tables">Delete_Hash_Tables()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Delete_Hash_Tables">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Unwind_Modulefile_Changes">Unwind_Modulefile_Changes()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Unwind_Modulefile_Changes">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasSetHashTable">aliasSetHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasSetHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasUnsetHashTable">aliasUnsetHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasUnsetHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-setenvHashTable">setenvHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-setenvHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-unsetenvHashTable">unsetenvHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-unsetenvHashTable">main.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Delete_Hash_Tables">Global Function Delete_Hash_Tables()</a></h2>
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line393">void Delete_Hash_Tables ( Tcl_HashTable** table_ptr )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">Tcl_DeleteHashTable(), Tcl_FirstHashEntry(), Tcl_NextHashEntry()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Delete_Global_Hash_Tables">Delete_Global_Hash_Tables()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Delete_Global_Hash_Tables">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-EscapeCshString">Global Function EscapeCshString()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: EscapeCshString(char* in,char* out) **
|
|
** **
|
|
** Description: will translate input string to escaped output string **
|
|
** out must be allocated first **
|
|
** **
|
|
** First Edition: 2002/04/10 **
|
|
** **
|
|
** Parameters: char *in input **
|
|
** char *out output **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2616">void EscapeCshString ( const char* in, char* out )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">output_set_variable()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-EscapePerlString">Global Function EscapePerlString()</a></h2>
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2674">void EscapePerlString ( const char* in, char* out )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">output_set_variable()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-EscapeShString">Global Function EscapeShString()</a></h2>
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2645">void EscapeShString ( const char* in, char* out )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">output_set_variable()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-IsLoaded">Global Function IsLoaded()</a></h2>
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line1695">int IsLoaded ( Tcl_Interp* interp, char* modulename, char** realname, char* filename )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">__IsLoaded()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Switch.c.html#func-ModuleCmd_Switch">ModuleCmd_Switch()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Switch.c.html#func-ModuleCmd_Switch">ModuleCmd_Switch.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdIsLoaded.c.html#func-cmdIsLoaded">cmdIsLoaded()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdIsLoaded.c.html#func-cmdIsLoaded">cmdIsLoaded.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdPrereq">cmdPrereq()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdPrereq">cmdConflict.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-IsLoaded_ExactMatch">Global Function IsLoaded_ExactMatch()</a></h2>
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line1706">int IsLoaded_ExactMatch ( Tcl_Interp* interp, char* modulename, char** realname, char* filename )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">__IsLoaded()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-checkConflict">checkConflict()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-checkConflict">cmdConflict.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Output_Modulefile_Changes">Global Function Output_Modulefile_Changes()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: Output_Modulefile_Changes **
|
|
** **
|
|
** Description: Is used to flush out the changes of the current **
|
|
** modulefile in a manner depending upon whether the **
|
|
** modulefile was successfull or unsuccessfull. **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp *interp The attached Tcl in- **
|
|
** terpreter **
|
|
** **
|
|
** Result: int TCL_OK Successful operation **
|
|
** **
|
|
** Attached Globals: setenvHashTable, **
|
|
** unsetenvHashTable, **
|
|
** aliasSetHashTable, via Output_Modulefile_Aliases**
|
|
** aliasUnsetHashTable via Output_Modulefile_Aliases**
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line660">int Output_Modulefile_Changes ( Tcl_Interp* interp )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Clear_Global_Hash_Tables">Clear_Global_Hash_Tables()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Clear_Global_Hash_Tables">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Aliases">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-countTclHash">countTclHash()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-countTclHash">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">output_set_variable()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_unset_variable">output_unset_variable()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_unset_variable">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">Tcl_FirstHashEntry(), Tcl_GetVar2(), Tcl_NextHashEntry(), fflush(), malloc(), qsort(), strdup()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Functions:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-keycmp">keycmp()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-keycmp">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="cmdModule.c.html#var-_fil_stdout">_fil_stdout</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdModule.c.html#var-_fil_stdout">cmdModule.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">aliasfile</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-setenvHashTable">setenvHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-setenvHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-unsetenvHashTable">unsetenvHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-unsetenvHashTable">main.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Unwind_Modulefile_Changes">Global Function Unwind_Modulefile_Changes()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: **
|
|
** **
|
|
** Description: Once a the loading or unloading of a modulefile **
|
|
** fails, any changes it has made to the environment **
|
|
** must be undone and reset to its previous state. This **
|
|
** function is responsible for unwinding any changes a **
|
|
** modulefile has made. **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp *interp According TCL interp.**
|
|
** Tcl_HashTable **oldTables Hash tables storing **
|
|
** the former environm. **
|
|
** Result: **
|
|
** Attached Globals: **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line567">int Unwind_Modulefile_Changes ( Tcl_Interp* interp, Tcl_HashTable** oldTables )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Clear_Global_Hash_Tables">Clear_Global_Hash_Tables()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Clear_Global_Hash_Tables">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Delete_Global_Hash_Tables">Delete_Global_Hash_Tables()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Delete_Global_Hash_Tables">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">Tcl_FirstHashEntry(), Tcl_NextHashEntry(), Tcl_SetVar2()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasSetHashTable">aliasSetHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasSetHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasUnsetHashTable">aliasUnsetHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasUnsetHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-setenvHashTable">setenvHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-setenvHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-unsetenvHashTable">unsetenvHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-unsetenvHashTable">main.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Update_LoadedList">Global Function Update_LoadedList()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: Update_LoadedList **
|
|
** **
|
|
** Description: Add or remove the passed modulename and filename to/ **
|
|
** from LOADEDMODULES and _LMFILES_ **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp *interp Attached Tcl Interp. **
|
|
** char *modulename Name of the module **
|
|
** char *filename Full path name of the**
|
|
** related modulefile **
|
|
** **
|
|
** Result: int 1 Successfull operation **
|
|
** **
|
|
** Attached Globals: g_flags Controls whether the modulename **
|
|
** should be added (M_XXXX) or removed **
|
|
** (M_REMOVE) from the list of loaded **
|
|
** modules **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2041">int Update_LoadedList ( Tcl_Interp* interp, char* modulename, char* filename )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdRemovePath">cmdRemovePath()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdRemovePath">cmdPath.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdSetPath">cmdSetPath()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdSetPath">cmdPath.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-get_module_basename">get_module_basename()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-get_module_basename">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">strdup()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Switch.c.html#func-ModuleCmd_Switch">ModuleCmd_Switch()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Switch.c.html#func-ModuleCmd_Switch">ModuleCmd_Switch.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-g_flags">g_flags</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-g_flags">main.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-check_magic">Global Function check_magic()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: check_magic **
|
|
** **
|
|
** Description: Check the magic cookie of the file passed as para- **
|
|
** meter if it is a valid module file **
|
|
** Based on check_magic in Richard Elling's **
|
|
** find_by_magic <Richard.Elling"@eng.auburn.edu> **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: char *filename Name of the file to check **
|
|
** char *magic_name Magic cookie **
|
|
** int magic_len Length of the magic cookie **
|
|
** **
|
|
** Result: int 0 Magic cookie doesn't match or any **
|
|
** I/O error **
|
|
** 1 Success - Magic cookie has matched **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2131">int check_magic ( char* filename, char* magic_name, int magic_len )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">close(), open(), read(), strncmp()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-GetModuleName">GetModuleName()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-GetModuleName">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdModule.c.html#func-Read_Modulefile">Read_Modulefile()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdModule.c.html#func-Read_Modulefile">cmdModule.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SortedDirList">SortedDirList()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SortedDirList">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceRC">SourceRC()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceRC">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceVers">SourceVers()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceVers">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-get_dir">get_dir()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-get_dir">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-chk4spch">Global Function chk4spch()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: chk4spch **
|
|
** **
|
|
** Description: goes through the given string and changes any non- **
|
|
** printable characters to question marks. **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: char *s String to be checke **
|
|
** **
|
|
** Result: *s Will be changed accordingly **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2441">void chk4spch ( char* s )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td colspan=2><span class="cxref-reference-system">__ctype_b_loc()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-print_spaced_file">print_spaced_file()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-print_spaced_file">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-chk_marked_entry">Global Function chk_marked_entry()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: chk_marked_entry, set_marked_entry **
|
|
** **
|
|
** Description: When switching, the variables are marked with a mar- **
|
|
** ker that is tested to see if the variable was changed**
|
|
** in the second modulefile. If it was not, then the **
|
|
** variable is unset. **
|
|
** **
|
|
** First Edition: 1992/10/25 **
|
|
** **
|
|
** Parameters: Tcl_HashTable *table Attached hash table **
|
|
** char *var According variable name **
|
|
** int val Value to be set. **
|
|
** **
|
|
** Result: int 0 Mark not set (or the value of the **
|
|
** mark was 0 ;-) **
|
|
** else Value of the mark that has been set **
|
|
** with set_marked_entry. **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line1937">intptr_t chk_marked_entry ( Tcl_HashTable* table, char* var )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="cmdAlias.c.html#func-cmdSetAlias">cmdSetAlias()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdAlias.c.html#func-cmdSetAlias">cmdAlias.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleSetenv">moduleSetenv()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleSetenv">cmdSetenv.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-cleanse_path">Global Function cleanse_path()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: cleanse_path **
|
|
** **
|
|
** Description: Copy the passed path into the new path buffer and **
|
|
** devalue '.' and '+' **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: const char *path Original path **
|
|
** char *newpath Buffer for to copy the new **
|
|
** path in **
|
|
** int len Max length of the new path **
|
|
** **
|
|
** Result: newpath will be filled up with the new, de- **
|
|
** valuated path **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2198">void cleanse_path ( const char* path, char* newpath, int len )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td colspan=2><span class="cxref-reference-system">strlen()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-Remove_Path">Remove_Path()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-Remove_Path">cmdPath.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdSetPath">cmdSetPath()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdSetPath">cmdPath.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-clear_hash_value">Global Function clear_hash_value()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: clear_hash_value **
|
|
** **
|
|
** Description: Remove the specified shell variable from the passed **
|
|
** hash table **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: Tcl_HashTable *htable Hash table to be used**
|
|
** const char *key Attached key **
|
|
** **
|
|
** Result: int TCL_OK Successfull completion **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line244">int clear_hash_value ( Tcl_HashTable* htable, const char* key )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">Tcl_DeleteHashEntry()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-Remove_Path">Remove_Path()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-Remove_Path">cmdPath.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleSetenv">moduleSetenv()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleSetenv">cmdSetenv.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleUnsetenv">moduleUnsetenv()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleUnsetenv">cmdSetenv.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-countTclHash">Global Function countTclHash()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: countTclHash **
|
|
** **
|
|
** Description: returns the number of hash entries in a TclHash **
|
|
** **
|
|
** first edition: 2005/09/01 R.K.Owen <rk@owen.sj.ca.us> **
|
|
** **
|
|
** Parameters: Tcl_HashTable *table Hash to count **
|
|
** **
|
|
** Result: size_t Count of Hash Entries **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2876">size_t countTclHash ( Tcl_HashTable* table )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td colspan=2><span class="cxref-reference-system">Tcl_FirstHashEntry(), Tcl_NextHashEntry()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">Output_Modulefile_Changes()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-getLMFILES">Global Function getLMFILES()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: getLMFILES **
|
|
** **
|
|
** Description: Read in the _LMFILES_ environment variable. This one **
|
|
** may be split into several variables cause by limited **
|
|
** variable space of some shells (esp. the SUN csh) **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp *interp Attached Tcl interpreter **
|
|
** **
|
|
** Result: char* Value of the environment varibale _LMFILES_ **
|
|
** **
|
|
** Attached Globals: **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line1553">char* getLMFILES ( Tcl_Interp* interp )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">Tcl_GetVar2(), realloc(), sprintf(), strdup(), strlen(), strncpy()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_List.c.html#func-ModuleCmd_List">ModuleCmd_List()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_List.c.html#func-ModuleCmd_List">ModuleCmd_List.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Refresh.c.html#func-ModuleCmd_Refresh">ModuleCmd_Refresh()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Refresh.c.html#func-ModuleCmd_Refresh">ModuleCmd_Refresh.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="init.c.html#func-Setup_Environment">Setup_Environment()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="init.c.html#func-Setup_Environment">init.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">__IsLoaded()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-null_free">Global Function null_free()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: null_free **
|
|
** **
|
|
** Description: does a free and then nulls the pointer. **
|
|
** **
|
|
** first edition: 2000/08/24 r.k.owen <rk@owen.sj.ca.us> **
|
|
** **
|
|
** parameters: void **var allocated memory **
|
|
** **
|
|
** result: void (nothing) **
|
|
** **
|
|
** attached globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2846">void null_free ( void** var )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="cmdVersion.c.html#func-AddModule">AddModule()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdVersion.c.html#func-AddModule">cmdVersion.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdVersion.c.html#func-AddName">AddName()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdVersion.c.html#func-AddName">cmdVersion.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdTrace.c.html#func-ChangeTraceSel">ChangeTraceSel()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdTrace.c.html#func-ChangeTraceSel">cmdTrace.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-CheckFacility">CheckFacility()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-CheckFacility">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdVersion.c.html#func-CleanupName">CleanupName()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdVersion.c.html#func-CleanupName">cmdVersion.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdVersion.c.html#func-CleanupVersionSub">CleanupVersionSub()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdVersion.c.html#func-CleanupVersionSub">cmdVersion.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Clear_Global_Hash_Tables">Clear_Global_Hash_Tables()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Clear_Global_Hash_Tables">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Copy_Hash_Tables">Copy_Hash_Tables()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Copy_Hash_Tables">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Delete_Hash_Tables">Delete_Hash_Tables()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Delete_Hash_Tables">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-FlushError">FlushError()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-FlushError">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-GetFacilityPtr">GetFacilityPtr()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-GetFacilityPtr">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-GetModuleName">GetModuleName()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-GetModuleName">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="init.c.html#func-Initialize_Tcl">Initialize_Tcl()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="init.c.html#func-Initialize_Tcl">init.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-Locate_ModuleFile">Locate_ModuleFile()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-Locate_ModuleFile">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-ModuleCmd_Apropos">ModuleCmd_Apropos()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-ModuleCmd_Apropos">ModuleCmd_Whatis.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-ModuleCmd_Avail">ModuleCmd_Avail()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-ModuleCmd_Avail">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Init.c.html#func-ModuleCmd_Init">ModuleCmd_Init()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Init.c.html#func-ModuleCmd_Init">ModuleCmd_Init.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Purge.c.html#func-ModuleCmd_Purge">ModuleCmd_Purge()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Purge.c.html#func-ModuleCmd_Purge">ModuleCmd_Purge.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Refresh.c.html#func-ModuleCmd_Refresh">ModuleCmd_Refresh()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Refresh.c.html#func-ModuleCmd_Refresh">ModuleCmd_Refresh.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Switch.c.html#func-ModuleCmd_Switch">ModuleCmd_Switch()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Switch.c.html#func-ModuleCmd_Switch">ModuleCmd_Switch.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Update.c.html#func-ModuleCmd_Update">ModuleCmd_Update()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Update.c.html#func-ModuleCmd_Update">ModuleCmd_Update.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-ModuleCmd_Whatis">ModuleCmd_Whatis()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-ModuleCmd_Whatis">ModuleCmd_Whatis.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Aliases">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdModule.c.html#func-Read_Modulefile">Read_Modulefile()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdModule.c.html#func-Read_Modulefile">cmdModule.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-Remove_Path">Remove_Path()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-Remove_Path">cmdPath.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SortedDirList">SortedDirList()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SortedDirList">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceRC">SourceRC()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceRC">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceVers">SourceVers()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceVers">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SplitIntoList">SplitIntoList()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SplitIntoList">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Update_LoadedList">Update_LoadedList()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Update_LoadedList">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdVersion.c.html#func-VersionLookup">VersionLookup()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdVersion.c.html#func-VersionLookup">cmdVersion.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">__IsLoaded()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-_init_file_list">_init_file_list()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-_init_file_list">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-checkConflict">checkConflict()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-checkConflict">cmdConflict.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-clear_hash_value">clear_hash_value()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-clear_hash_value">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdConflict">cmdConflict()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdConflict">cmdConflict.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdLog.c.html#func-cmdModuleLog">cmdModuleLog()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdLog.c.html#func-cmdModuleLog">cmdLog.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdTrace.c.html#func-cmdModuleTrace">cmdModuleTrace()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdTrace.c.html#func-cmdModuleTrace">cmdTrace.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdPrereq">cmdPrereq()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdPrereq">cmdConflict.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdSetPath">cmdSetPath()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdSetPath">cmdPath.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-delete_cache_list">delete_cache_list()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-delete_cache_list">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-delete_dirlst">delete_dirlst()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-delete_dirlst">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-dirlst_to_list">dirlst_to_list()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-dirlst_to_list">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdXResource.c.html#func-getEntries">getEntries()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdXResource.c.html#func-getEntries">cmdXResource.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-getLMFILES">getLMFILES()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-getLMFILES">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-get_dir">get_dir()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-get_dir">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">output_set_variable()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-print_aligned_files">print_aligned_files()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-print_aligned_files">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-print_dir">print_dir()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-print_dir">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-store_hash_value">store_hash_value()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-store_hash_value">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-tmpfile_mod">tmpfile_mod()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-tmpfile_mod">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-xdup">xdup()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-xdup">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-set_marked_entry">Global Function set_marked_entry()</a></h2>
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line1952">void set_marked_entry ( Tcl_HashTable* table, char* var, intptr_t val )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="cmdAlias.c.html#func-cmdSetAlias">cmdSetAlias()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdAlias.c.html#func-cmdSetAlias">cmdAlias.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleSetenv">moduleSetenv()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleSetenv">cmdSetenv.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-store_hash_value">Global Function store_hash_value()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: store_hash_value **
|
|
** **
|
|
** Description: Keeps the old value of the variable around if it is **
|
|
** touched in the modulefile to enable undoing a **
|
|
** modulefile by resetting the evironment to it started.**
|
|
** **
|
|
** This is the same for unset_shell_variable() **
|
|
** **
|
|
** First Edition: 1992/10/14 **
|
|
** **
|
|
** Parameters: Tcl_HashTable *htable Hash table to be used**
|
|
** const char *key Attached key **
|
|
** const char *value Alias value **
|
|
** **
|
|
** Result: int TCL_OK Successfull completion **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line184">int store_hash_value ( Tcl_HashTable* htable, const char* key, const char* value )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">strdup()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-Remove_Path">Remove_Path()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-Remove_Path">cmdPath.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdAlias.c.html#func-cmdSetAlias">cmdSetAlias()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdAlias.c.html#func-cmdSetAlias">cmdAlias.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleSetenv">moduleSetenv()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleSetenv">cmdSetenv.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleUnsetenv">moduleUnsetenv()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdSetenv.c.html#func-moduleUnsetenv">cmdSetenv.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-stringer">Global Function stringer()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: stringer **
|
|
** **
|
|
** Description: Safely copies and concats series of strings **
|
|
** until it hits a NULL argument. **
|
|
** Either a buffer & length are given or if the buffer **
|
|
** pointer is NULL then it will allocate memory to the **
|
|
** given length. If the length is 0 then get the length **
|
|
** from the series of strings. **
|
|
** The resultant buffer is returned unless there **
|
|
** is an error then NULL is returned. **
|
|
** (Therefore, one of the main uses of stringer is to **
|
|
** allocate string memory.) **
|
|
** **
|
|
** **
|
|
** First Edition: 2001/08/08 R.K.Owen <rk@owen.sj.ca.us> **
|
|
** **
|
|
** Parameters: char *buffer string buffer (if not NULL) **
|
|
** int len maximum length of buffer **
|
|
** const char *str1 1st string to copy to buffer **
|
|
** const char *str2 2nd string to cat to buffer **
|
|
** ... **
|
|
** const char *strN Nth string to cat to buffer **
|
|
** const char *NULL end of arguments **
|
|
** **
|
|
** Result: char *buffer if successfull completion **
|
|
** else NULL **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2777">char* stringer ( char* buffer, int len, ... )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">__builtin_va_arg(), __builtin_va_end(), __builtin_va_start(), malloc(), strlen()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-CheckFacility">CheckFacility()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-CheckFacility">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-ErrorString">ErrorString()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-ErrorString">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-FlushError">FlushError()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-FlushError">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-GetFacilityPtr">GetFacilityPtr()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-GetFacilityPtr">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-GetModuleName">GetModuleName()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-GetModuleName">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-Locate_ModuleFile">Locate_ModuleFile()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-Locate_ModuleFile">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Init.c.html#func-ModuleCmd_Init">ModuleCmd_Init()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Init.c.html#func-ModuleCmd_Init">ModuleCmd_Init.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Load.c.html#func-ModuleCmd_Load">ModuleCmd_Load.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Purge.c.html#func-ModuleCmd_Purge">ModuleCmd_Purge()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Purge.c.html#func-ModuleCmd_Purge">ModuleCmd_Purge.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Switch.c.html#func-ModuleCmd_Switch">ModuleCmd_Switch()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Switch.c.html#func-ModuleCmd_Switch">ModuleCmd_Switch.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Update.c.html#func-ModuleCmd_Update">ModuleCmd_Update()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Update.c.html#func-ModuleCmd_Update">ModuleCmd_Update.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="init.c.html#func-Module_Tcl_ExitCmd">Module_Tcl_ExitCmd()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="init.c.html#func-Module_Tcl_ExitCmd">init.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-Remove_Path">Remove_Path()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-Remove_Path">cmdPath.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SortedDirList">SortedDirList()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SortedDirList">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceRC">SourceRC()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceRC">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceVers">SourceVers()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SourceVers">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SplitIntoList">SplitIntoList()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SplitIntoList">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">__IsLoaded()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-apropos_cache">apropos_cache()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-apropos_cache">ModuleCmd_Whatis.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-checkConflict">checkConflict()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-checkConflict">cmdConflict.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdLog.c.html#func-cmdModuleLog">cmdModuleLog()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdLog.c.html#func-cmdModuleLog">cmdLog.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdPrereq">cmdPrereq()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdPrereq">cmdConflict.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdSetPath">cmdSetPath()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdPath.c.html#func-cmdSetPath">cmdPath.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-dirlst_to_list">dirlst_to_list()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-dirlst_to_list">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-get_dir">get_dir()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-get_dir">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">output_set_variable()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-print_dir">print_dir()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-print_dir">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-tmpfile_mod">tmpfile_mod()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-tmpfile_mod">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-whatis_dir">whatis_dir()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-whatis_dir">ModuleCmd_Whatis.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-xdup">xdup()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-xdup">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Functions:
|
|
<td colspan=2><span class="cxref-reference-system">strcat(), strcpy()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-tmpfile_mod">Global Function tmpfile_mod()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: tmpfile_mod **
|
|
** **
|
|
** Description: emulates tempnam and tmpnam and mktemp **
|
|
** Atomically creates a unique temp file and opens it **
|
|
** for writing. returns 0 on success, 1 on failure **
|
|
** Filename and file handle are returned through **
|
|
** argument pointers **
|
|
** **
|
|
** First Edition: 2002/04/22 **
|
|
** **
|
|
** Parameters: char **filename pointer to char* **
|
|
** char **file pointer to FILE* **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2708">int tmpfile_mod ( char** filename, FILE** file )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-stringer">stringer()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-stringer">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">fdopen(), fprintf(), open(), sprintf(), strlen()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Open_Aliasfile">Open_Aliasfile()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Open_Aliasfile">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-xdup">Global Function xdup()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: xdup **
|
|
** **
|
|
** Description: will return a string with 1 level of environment **
|
|
** variables expanded. The limit is MOD_BUFSIZE. **
|
|
** An env.var. is denoted with either $name or ${name} **
|
|
** \$ escapes the expansion and substitutes a '$' in **
|
|
** its place. **
|
|
** **
|
|
** First Edition: 2000/01/21 R.K.Owen <rk@owen.sj.ca.us> **
|
|
** **
|
|
** Parameters: char *string Environment variable **
|
|
** **
|
|
** Result: char * An allocated string **
|
|
** **
|
|
** ************************************************************************ **
|
|
<br>
|
|
zero out buffers
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2469">char* xdup ( char const* string )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-stringer">stringer()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-stringer">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">getenv(), getpid(), memset(), sprintf(), strchr(), strcmp(), strcspn(), strdup(), strlen(), strncat(), strncpy()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SplitIntoList">SplitIntoList()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="locate_module.c.html#func-SplitIntoList">locate_module.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-xgetenv">xgetenv()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-xgetenv">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-xgetenv">Global Function xgetenv()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: xgetenv **
|
|
** **
|
|
** Description: will return an expanded environment variable. **
|
|
** However, it will only expand 1 level. **
|
|
** See xdup() for details. **
|
|
** **
|
|
** First Edition: 2000/01/18 R.K.Owen <rk@owen.sj.ca.us> **
|
|
** **
|
|
** Parameters: char *var Environment variable **
|
|
** **
|
|
** Result: char * An allocated string **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2589">char* xgetenv ( char const* var )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="modules_def.h.html#file">modules_def.h</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-xdup">xdup()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-xdup">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">getenv()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="init.c.html#func-Initialize_Tcl">Initialize_Tcl()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="init.c.html#func-Initialize_Tcl">init.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-ModuleCmd_Apropos">ModuleCmd_Apropos()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-ModuleCmd_Apropos">ModuleCmd_Whatis.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-ModuleCmd_Avail">ModuleCmd_Avail()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-ModuleCmd_Avail">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-ModuleCmd_Whatis">ModuleCmd_Whatis()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Whatis.c.html#func-ModuleCmd_Whatis">ModuleCmd_Whatis.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdConflict">cmdConflict()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdConflict">cmdConflict.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdPrereq">cmdPrereq()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="cmdConflict.c.html#func-cmdPrereq">cmdConflict.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#func-main">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-print_aligned_files">print_aligned_files()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="ModuleCmd_Avail.c.html#func-print_aligned_files">ModuleCmd_Avail.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Clear_Global_Hash_Tables">Local Function Clear_Global_Hash_Tables()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: Clear_Global_Hash_Tables **
|
|
** **
|
|
** Description: Deletes and reinitializes our env. hash tables. **
|
|
** **
|
|
** First Edition: 1992/10/14 **
|
|
** **
|
|
** Parameters: - **
|
|
** Result: - **
|
|
** **
|
|
** Attached Globals: setenvHashTable, **
|
|
** unsetenvHashTable, **
|
|
** aliasSetHashTable, **
|
|
** aliasUnsetHashTable **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line293">static void Clear_Global_Hash_Tables ( void )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">Tcl_DeleteHashTable(), Tcl_FirstHashEntry(), Tcl_InitHashTable(), Tcl_NextHashEntry()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">Output_Modulefile_Changes()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Unwind_Modulefile_Changes">Unwind_Modulefile_Changes()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Unwind_Modulefile_Changes">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasSetHashTable">aliasSetHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasSetHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasUnsetHashTable">aliasUnsetHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasUnsetHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-setenvHashTable">setenvHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-setenvHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-unsetenvHashTable">unsetenvHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-unsetenvHashTable">main.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Open_Aliasfile">Local Function Open_Aliasfile()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: Open_Aliasfile **
|
|
** **
|
|
** Description: Creates/opens or closes temporary file for sourcing **
|
|
** or aliases. **
|
|
** Passes back the filehandle and filename in global **
|
|
** variables. **
|
|
** **
|
|
** First Edition: 2005/09/26 R.K.Owen <rk@owen.sj.ca.us> **
|
|
** **
|
|
** Parameters: int action if != 0 to open else close **
|
|
** **
|
|
** Result: int TCL_OK Successful operation **
|
|
** **
|
|
** Attached Globals: aliasfile **
|
|
** aliasfilename **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line771">static int Open_Aliasfile ( int action )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-tmpfile_mod">tmpfile_mod()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-tmpfile_mod">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">fclose()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Aliases">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">aliasfile</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfilename">aliasfilename</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfilename">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-Output_Modulefile_Aliases">Local Function Output_Modulefile_Aliases()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: Output_Modulefile_Aliases **
|
|
** **
|
|
** Description: Is used to flush out the changes to the aliases of **
|
|
** the current modulefile. But, some shells don't work **
|
|
** well with having their alias information set via the **
|
|
** 'eval' command. So, what we'll do now is output the **
|
|
** aliases into a /tmp dotfile, have the shell source **
|
|
** the /tmp dotfile and then have the shell remove the **
|
|
** /tmp dotfile. **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp *interp The attached Tcl in- **
|
|
** terpreter **
|
|
** **
|
|
** Result: int TCL_OK Successful operation **
|
|
** **
|
|
** Attached Globals: aliasSetHashTable, via Output_Modulefile_Aliases**
|
|
** aliasUnsetHashTable via Output_Modulefile_Aliases**
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line816">static int Output_Modulefile_Aliases ( Tcl_Interp* interp )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Open_Aliasfile">Open_Aliasfile()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Open_Aliasfile">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_alias">output_set_alias()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_alias">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_unset_alias">output_unset_alias()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_unset_alias">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">Tcl_FirstHashEntry(), Tcl_NextHashEntry(), fprintf(), strcmp()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">Output_Modulefile_Changes()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasSetHashTable">aliasSetHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasSetHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasUnsetHashTable">aliasUnsetHashTable</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-aliasUnsetHashTable">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-alias_separator">alias_separator</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-alias_separator">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">aliasfile</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfilename">aliasfilename</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfilename">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_alias">bourne_alias</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_alias">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_funcs">bourne_funcs</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_funcs">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-eval_alias">eval_alias</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-eval_alias">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_cmd_separator">shell_cmd_separator</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_cmd_separator">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_derelict">shell_derelict</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_derelict">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_name">shell_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_name">main.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-__IsLoaded">Local Function __IsLoaded()</a></h2>
|
|
<pre>
|
|
** Oops! Fewer entries in the list of loaded modulefiles
|
|
** than in the list of loaded modules. This will
|
|
** generally suggest that _LMFILES_ has become corrupted,
|
|
** but it may just mean we're working intermittantly with
|
|
** an old version. So, I'll just not touch filename which
|
|
** means the search will continue using the old method of
|
|
** looking through MODULEPATH.
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line1718">static int __IsLoaded ( Tcl_Interp* interp, char* modulename, char** realname, char* filename, int exact )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-getLMFILES">getLMFILES()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-getLMFILES">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-get_module_basename">get_module_basename()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-get_module_basename">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-stringer">stringer()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-stringer">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">Tcl_GetVar2(), strcmp(), strcpy(), strtok()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-IsLoaded">IsLoaded()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-IsLoaded">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-IsLoaded_ExactMatch">IsLoaded_ExactMatch()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-IsLoaded_ExactMatch">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-chop">Local Function chop()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: chop **
|
|
** **
|
|
** Description: Remove '\n' characters from the passed string **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: char *string String to be chopped **
|
|
** **
|
|
** Result: string The chopped string **
|
|
** **
|
|
** Attached Globals: - **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line2256">static char* chop ( const char* string )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">output_set_variable()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_variable">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_unset_variable">output_unset_variable()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_unset_variable">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-get_module_basename">Local Function get_module_basename()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: get_module_basename **
|
|
** **
|
|
** Description: Get the name of a module without its version. **
|
|
** This function modifies the string passed in. **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: char *modulename Full module name **
|
|
** **
|
|
** Result: char* Module name without version **
|
|
** **
|
|
** Attached Globals: **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line1991">static char* get_module_basename ( char* modulename )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td colspan=2><span class="cxref-reference-system">strrchr()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Update_LoadedList">Update_LoadedList()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Update_LoadedList">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">__IsLoaded()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-__IsLoaded">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-keycmp">Local Function keycmp()</a></h2>
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line632">static int keycmp ( const void* a, const void* b )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Calls:
|
|
<td colspan=2><span class="cxref-reference-system">strcmp()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Used in:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">Output_Modulefile_Changes()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-output_function">Local Function output_function()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: output_function **
|
|
** **
|
|
** Description: Actually turns the Modules set-alias information **
|
|
** into a string that a shell can source. Previously, **
|
|
** this routine just output the alias information to be **
|
|
** eval'd by the shell. **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: const char *var Name of the alias to be set **
|
|
** const char *val Value to be assigned **
|
|
** **
|
|
** Result: - **
|
|
** **
|
|
** Attached Globals: aliasfile, The output file for alias commands. **
|
|
** see 'Output_Modulefile_Aliases' **
|
|
** alias_separator **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line1201">static void output_function ( const char* var, const char* val )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td colspan=2><span class="cxref-reference-system">_IO_putc(), fprintf()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_alias">output_set_alias()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_set_alias">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-alias_separator">alias_separator</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-alias_separator">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">aliasfile</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">utility.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-output_set_alias">Local Function output_set_alias()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: output_set_alias **
|
|
** **
|
|
** Description: Flush the commands required to set shell aliases de- **
|
|
** pending on the current invoking shell **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: const char *alias Name of the alias **
|
|
** const char *val Value to be assigned **
|
|
** **
|
|
** Result: int TCL_OK Operation successfull **
|
|
** **
|
|
** Attached Globals: aliasfile, The alias command is written out to **
|
|
** alias_separator Defined the command separator **
|
|
** shell_derelict to determine the shell family **
|
|
** shell_name to determine the real shell type **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line1266">static int output_set_alias ( const char* alias, const char* val )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_function">output_function()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-output_function">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">_IO_putc(), fprintf(), strcmp()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Aliases">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-alias_separator">alias_separator</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-alias_separator">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">aliasfile</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_alias">bourne_alias</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_alias">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_funcs">bourne_funcs</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_funcs">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_derelict">shell_derelict</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_derelict">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_name">shell_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_name">main.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-output_set_variable">Local Function output_set_variable()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: output_set_variable **
|
|
** **
|
|
** Description: Outputs the command required to set a shell variable **
|
|
** according to the current shell **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: Tcl_Interp *interp The attached Tcl interpreter **
|
|
** const char *var Name of the variable to be **
|
|
** set **
|
|
** const char *val Value to be assigned **
|
|
** **
|
|
** Result: int TCL_OK Finished successfull **
|
|
** TCL_ERROR Unknown shell type **
|
|
** **
|
|
** Attached Globals: shell_derelict **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line954">static int output_set_variable ( Tcl_Interp* interp, const char* var, const char* val )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-EscapeCshString">EscapeCshString()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-EscapeCshString">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-EscapePerlString">EscapePerlString()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-EscapePerlString">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-EscapeShString">EscapeShString()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-EscapeShString">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-chop">chop()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-chop">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">null_free()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-null_free">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-stringer">stringer()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-stringer">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">fprintf(), malloc(), strcmp(), strlen()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">Output_Modulefile_Changes()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_cmd_separator">shell_cmd_separator</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_cmd_separator">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_derelict">shell_derelict</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_derelict">main.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-output_unset_alias">Local Function output_unset_alias()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: output_unset_alias **
|
|
** **
|
|
** Description: Flush the commands required to reset shell aliases **
|
|
** depending on the current invoking shell **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: const char *alias Name of the alias **
|
|
** const char *val Value which has been **
|
|
** assigned **
|
|
** **
|
|
** Result: int TCL_OK Operation successfull **
|
|
** **
|
|
** Attached Globals: aliasfile, The alias command is writte out to **
|
|
** alias_separator Defined the command separator **
|
|
** shell_derelict to determine the shell family **
|
|
** shell_name to determine the real shell type **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line1428">static int output_unset_alias ( const char* alias, const char* val )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td colspan=2><span class="cxref-reference-system">fprintf(), strcmp()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Aliases">Output_Modulefile_Aliases()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Aliases">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-alias_separator">alias_separator</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-alias_separator">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">aliasfile</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-aliasfile">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_alias">bourne_alias</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_alias">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_funcs">bourne_funcs</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-bourne_funcs">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_derelict">shell_derelict</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_derelict">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_name">shell_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_name">main.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<h2><a name="func-output_unset_variable">Local Function output_unset_variable()</a></h2>
|
|
<pre>
|
|
** ** Function-Header ***************************************************** **
|
|
** **
|
|
** Function: output_unset_variable **
|
|
** **
|
|
** Description: Outputs the command required to unset a shell **
|
|
** variable according to the current shell **
|
|
** **
|
|
** First Edition: 1991/10/23 **
|
|
** **
|
|
** Parameters: const char *var Name of the variable to be **
|
|
** unset **
|
|
** **
|
|
** Result: int TCL_OK Finished successfull **
|
|
** TCL_ERROR Unknown shell type **
|
|
** **
|
|
** Attached Globals: shell_derelict **
|
|
** **
|
|
** ************************************************************************ **
|
|
</pre>
|
|
|
|
<tt><span class="cxref-function"><a href="utility.c.src.html#line1140">static int output_unset_variable ( const char* var )</a></span></tt><br>
|
|
<table>
|
|
<tr>
|
|
<td>Prototyped in:
|
|
<td colspan=2><span class="cxref-reference-local"><a href="utility.c.html#file">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>Calls:
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">Module_Error()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="error.c.html#func-Module_Error">error.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-chop">chop()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-chop">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td colspan=2><span class="cxref-reference-system">fprintf(), strcmp()</span>
|
|
</tr>
|
|
<tr>
|
|
<td>Called by:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">Output_Modulefile_Changes()</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#func-Output_Modulefile_Changes">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>References Variables:
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">module_name</a></span>
|
|
<td><span class="cxref-reference-local"><a href="utility.c.html#var-module_name">utility.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_cmd_separator">shell_cmd_separator</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_cmd_separator">main.c</a></span>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_derelict">shell_derelict</a></span>
|
|
<td><span class="cxref-reference-local"><a href="main.c.html#var-shell_derelict">main.c</a></span>
|
|
</tr>
|
|
</table>
|
|
|
|
</BODY>
|
|
</HTML>
|