diff options
| author | Stefan Monnier | 2001-10-14 20:13:47 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-10-14 20:13:47 +0000 |
| commit | 33d5af991727f1be784fc9ea0c34a709ef2c3adf (patch) | |
| tree | dfec47db9c32a3c28732b1968d7201e3ccf5d4dc /src | |
| parent | 2d08a2d49a8fb46cadbb278cc12a62ce6adb3a83 (diff) | |
| download | emacs-33d5af991727f1be784fc9ea0c34a709ef2c3adf.tar.gz emacs-33d5af991727f1be784fc9ea0c34a709ef2c3adf.zip | |
(syms_of_callproc): Init Vexec_suffixes to Qnil.
(decode_suffixes): Remove.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/callproc.c b/src/callproc.c index 37b52ac5a2a..2c98933afba 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -1570,28 +1570,6 @@ set_process_environment () | |||
| 1570 | Vprocess_environment); | 1570 | Vprocess_environment); |
| 1571 | } | 1571 | } |
| 1572 | 1572 | ||
| 1573 | static Lisp_Object | ||
| 1574 | decode_suffixes (string) | ||
| 1575 | char *string; | ||
| 1576 | { | ||
| 1577 | char *p; | ||
| 1578 | Lisp_Object suffixes; | ||
| 1579 | |||
| 1580 | suffixes = Qnil; | ||
| 1581 | while (1) | ||
| 1582 | { | ||
| 1583 | p = index (string, ':'); | ||
| 1584 | if (!p) p = string + strlen (string); | ||
| 1585 | suffixes = Fcons (make_string (string, p - string), | ||
| 1586 | suffixes); | ||
| 1587 | if (*p) | ||
| 1588 | string = p + 1; | ||
| 1589 | else | ||
| 1590 | break; | ||
| 1591 | } | ||
| 1592 | return Fnreverse (suffixes); | ||
| 1593 | } | ||
| 1594 | |||
| 1595 | void | 1573 | void |
| 1596 | syms_of_callproc () | 1574 | syms_of_callproc () |
| 1597 | { | 1575 | { |
| @@ -1611,7 +1589,7 @@ Each element is a string (directory name) or nil (try default directory)."); | |||
| 1611 | DEFVAR_LISP ("exec-suffixes", &Vexec_suffixes, | 1589 | DEFVAR_LISP ("exec-suffixes", &Vexec_suffixes, |
| 1612 | "*List of suffixes to try to find executable file names.\n\ | 1590 | "*List of suffixes to try to find executable file names.\n\ |
| 1613 | Each element is a string"); | 1591 | Each element is a string"); |
| 1614 | Vexec_suffixes = decode_suffixes (EXEC_SUFFIXES); | 1592 | Vexec_suffixes = Qnil; |
| 1615 | 1593 | ||
| 1616 | DEFVAR_LISP ("exec-directory", &Vexec_directory, | 1594 | DEFVAR_LISP ("exec-directory", &Vexec_directory, |
| 1617 | "Directory for executables for Emacs to invoke.\n\ | 1595 | "Directory for executables for Emacs to invoke.\n\ |