Eliminate extra indirection.
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Wed, 21 Oct 1992 00:06:20 +0000 (00:06 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Wed, 21 Oct 1992 00:06:20 +0000 (00:06 +0000)
v7/src/microcode/prdosenv.c
v7/src/microcode/pruxenv.c
v7/src/microcode/uxenv.c

index 13410e276113ba94b81ab444c594bf3add29fbe8..e07dc5c4538503e076c9318220f6c9f91d4b15d9 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: prdosenv.c,v 1.8 1992/10/21 00:00:37 jinx Exp $
+$Id: prdosenv.c,v 1.9 1992/10/21 00:02:10 jinx Exp $
 
 Copyright (c) 1992 Massachusetts Institute of Technology
 
@@ -147,11 +147,9 @@ The argument, a variable name, must be a string.\n\
 The result is either a string (the variable's value),\n\
  or #F indicating that the variable does not exist.")
 {
-  extern CONST char * EXFUN (OS_get_environment_variable, (CONST char * name));
   PRIMITIVE_HEADER (1);
   {
-    CONST char * variable_value =
-      (OS_get_environment_variable (STRING_ARG (1)));
+    CONST char * variable_value = (DOS_getenv (STRING_ARG (1)));
     PRIMITIVE_RETURN
       ((variable_value == 0)
        ? SHARP_F
index 08465791f6cf498f7138dc61ccbc70ddbd4cf4ee..a7829c669acb3b4e7ffceb5b60e5b1ddbd1d9041 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: pruxenv.c,v 1.12 1992/10/20 23:59:27 jinx Exp $
+$Id: pruxenv.c,v 1.13 1992/10/21 00:06:20 jinx Exp $
 
 Copyright (c) 1990-1992 Massachusetts Institute of Technology
 
@@ -190,11 +190,9 @@ The argument, a variable name, must be a string.\n\
 The result is either a string (the variable's value),\n\
  or #F indicating that the variable does not exist.")
 {
-  extern CONST char * EXFUN (OS_get_environment_variable, (CONST char * name));
   PRIMITIVE_HEADER (1);
   {
-    CONST char * variable_value =
-      (OS_get_environment_variable (STRING_ARG (1)));
+    CONST char * variable_value = (UX_getenv (STRING_ARG (1)));
     PRIMITIVE_RETURN
       ((variable_value == 0)
        ? SHARP_F
index 1455c47cc5d9e4614949ccba34555e5151507d65..95e265923eeceb46af275e035570ceac7c348c01 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/uxenv.c,v 1.7 1992/05/06 14:03:36 jinx Exp $
+$Id: uxenv.c,v 1.8 1992/10/21 00:06:14 jinx Exp $
 
 Copyright (c) 1990-1992 Massachusetts Institute of Technology
 
@@ -321,12 +321,6 @@ DEFUN (OS_set_working_dir_pathname, (name), CONST char * name)
   }
 }
 
-CONST char *
-DEFUN (OS_get_environment_variable, (name), CONST char * name)
-{
-  return (UX_getenv (name));
-}
-
 CONST char *
 DEFUN_VOID (OS_current_user_name)
 {