summaryrefslogtreecommitdiff
path: root/src/callproc.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2014-09-02 10:49:40 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2014-09-02 10:49:40 +0400
commitf25cd98b276ba1a11d7be5506c8624c72060b25f (patch)
tree856deb2cf42a6201b2479c5db9a351eefedbbf91 /src/callproc.c
parenta4a30aa0ecf0a9f032f2744548abf96b6d3d117e (diff)
downloademacs-f25cd98b276ba1a11d7be5506c8624c72060b25f.tar.gz
* callproc.c (egetenv_internal): Add arg and rename from egetenv ...
* lisp.h (egetenv): ... because of a new inline function used to avoid calls to strlen for a compile-time constants.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 01008312155..e8b61b9f01f 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1488,14 +1488,14 @@ If optional parameter ENV is a list, then search this list instead of
}
/* A version of getenv that consults the Lisp environment lists,
- easily callable from C. */
+ easily callable from C. This is usually called from egetenv. */
char *
-egetenv (const char *var)
+egetenv_internal (const char *var, ptrdiff_t len)
{
char *value;
ptrdiff_t valuelen;
- if (getenv_internal (var, strlen (var), &value, &valuelen, Qnil))
+ if (getenv_internal (var, len, &value, &valuelen, Qnil))
return value;
else
return 0;