Extract Subversion ignore data.
[sw-tools] / src / sw_env.h
index c14ca1c..377bf21 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: sw_env.h,v 1.1 1999/06/02 16:53:35 mdw Exp $
+ * $Id: sw_env.h,v 1.3 2004/04/08 01:52:19 mdw Exp $
  *
  * Mangling of environment variables
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: sw_env.h,v $
- * Revision 1.1  1999/06/02 16:53:35  mdw
- * Initial revision
- *
- */
-
 #ifndef SW_ENV_H
 #define SW_ENV_H
 
@@ -46,6 +38,7 @@
 #include <stdio.h>
 
 #include <mLib/dstr.h>
+#include <mLib/env.h>
 #include <mLib/sym.h>
 
 /*----- Important constants -----------------------------------------------*/
@@ -70,78 +63,6 @@ enum {
 
 /*----- Functions provided ------------------------------------------------*/
 
-/* --- @env_get@ --- *
- *
- * Arguments:  @sym_table *t@ = pointer to a symbol table
- *             @const char *name@ = pointer to variable name to look up
- *
- * Returns:    Pointer to corresponding value string, or null.
- *
- * Use:                Looks up an environment variable in the table and returns its
- *             value.  If the variable can't be found, a null pointer is
- *             returned.
- */
-
-extern char *env_get(sym_table */*t*/, const char */*name*/);
-
-/* --- @env_put@ --- *
- *
- * Arguments:  @sym_table *t@ = pointer to a symbol table
- *             @const char *name@ = pointer to variable name to set
- *             @const char *value@ = pointer to value string to assign
- *
- * Returns:    ---
- *
- * Use:                Assigns a value to a variable.  If the @name@ contains an
- *             equals character, then it's assumed to be of the form
- *             `VAR=VALUE' and @value@ argument is ignored.  Otherwise, if
- *             @value@ is null, the variable is deleted.  Finally, the
- *             normal case: @name@ is a plain name, and @value@ is a normal
- *             string causes the variable to be assigned the value in the
- *             way you'd expect.
- */
-
-extern void env_put(sym_table */*t*/,
-                   const char */*name*/, const char */*value*/);
-
-/* --- @env_import@ --- *
- *
- * Arguments:  @sym_table *t@ = pointer to a symbol table
- *             @char **env@ = pointer to an environment list
- *
- * Returns:    ---
- *
- * Use:                Inserts all of the environment variables listed into a symbol
- *             table for rapid access.  Equivalent to a lot of calls to
- *             @env_put@.
- */
-
-extern void env_import(sym_table */*t*/, char **/*env*/);
-
-/* --- @env_export@ --- *
- *
- * Arguments:  @sym_table *t@ = pointer to a symbol table
- *
- * Returns:    A big environment list.
- *
- * Use:                Extracts an environment table from a symbol table
- *             representation of an environment.  The table and all of the
- *             strings are in one big block allocated from the heap.
- */
-
-extern char **env_export(sym_table */*t*/);
-
-/* --- @env_destroy@ --- *
- *
- * Arguments:  @sym_table *t@ = pointer to symbol table
- *
- * Returns:    ---
- *
- * Use:                Destroys all the variables in the symbol table.
- */
-
-extern void env_destroy(sym_table */*t*/);
-
 /* --- @env_error@ --- *
  *
  * Arguments:  @int e@ = error code