diff options
| author | Gerd Moellmann | 2001-10-23 14:08:08 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-23 14:08:08 +0000 |
| commit | 990ff03c4d52460a7eb7f40287f9bc97b52c673e (patch) | |
| tree | c48e20a376bf9fd3e61ab6e933e0f3d4628e5b49 /src | |
| parent | 1d500ca6e8b6329f50934c51c3db9b8fd359d41a (diff) | |
| download | emacs-990ff03c4d52460a7eb7f40287f9bc97b52c673e.tar.gz emacs-990ff03c4d52460a7eb7f40287f9bc97b52c673e.zip | |
(syms_of_lread)<recursive-load-depth-limit>: Raise to
50.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/lread.c b/src/lread.c index 6968c5394fb..cb7e2d75ad5 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -832,8 +832,8 @@ Return t if file exists.") | |||
| 832 | 832 | ||
| 833 | GCPRO1 (file); | 833 | GCPRO1 (file); |
| 834 | lispstream = Fcons (Qnil, Qnil); | 834 | lispstream = Fcons (Qnil, Qnil); |
| 835 | XSETCARFASTINT (lispstream, (EMACS_UINT)stream >> 16); | 835 | XSETFASTINT (XCAR (lispstream), (EMACS_UINT)stream >> 16); |
| 836 | XSETCDRFASTINT (lispstream, (EMACS_UINT)stream & 0xffff); | 836 | XSETFASTINT (XCDR (lispstream), (EMACS_UINT)stream & 0xffff); |
| 837 | record_unwind_protect (load_unwind, lispstream); | 837 | record_unwind_protect (load_unwind, lispstream); |
| 838 | record_unwind_protect (load_descriptor_unwind, load_descriptor_list); | 838 | record_unwind_protect (load_descriptor_unwind, load_descriptor_list); |
| 839 | specbind (Qload_file_name, found); | 839 | specbind (Qload_file_name, found); |
| @@ -963,19 +963,16 @@ openp (path, str, suffixes, storeptr, exec_only) | |||
| 963 | Lisp_Object string, tail; | 963 | Lisp_Object string, tail; |
| 964 | int max_suffix_len = 0; | 964 | int max_suffix_len = 0; |
| 965 | 965 | ||
| 966 | string = filename = Qnil; | ||
| 967 | GCPRO5 (str, string, filename, path, suffixes); | ||
| 968 | |||
| 969 | for (tail = suffixes; CONSP (tail); tail = XCDR (tail)) | 966 | for (tail = suffixes; CONSP (tail); tail = XCDR (tail)) |
| 970 | { | 967 | { |
| 971 | string = XCAR (tail); | 968 | CHECK_STRING (XCAR (tail), 0); |
| 972 | CHECK_STRING (string, 0); | ||
| 973 | if (! EQ (string, XCAR (tail))) | ||
| 974 | XSETCAR (tail, string); | ||
| 975 | max_suffix_len = max (max_suffix_len, | 969 | max_suffix_len = max (max_suffix_len, |
| 976 | STRING_BYTES (XSTRING (string))); | 970 | STRING_BYTES (XSTRING (XCAR (tail)))); |
| 977 | } | 971 | } |
| 978 | 972 | ||
| 973 | string = filename = Qnil; | ||
| 974 | GCPRO5 (str, string, filename, path, suffixes); | ||
| 975 | |||
| 979 | if (storeptr) | 976 | if (storeptr) |
| 980 | *storeptr = Qnil; | 977 | *storeptr = Qnil; |
| 981 | 978 | ||
| @@ -2727,7 +2724,7 @@ read_list (flag, readcharfun) | |||
| 2727 | { | 2724 | { |
| 2728 | GCPRO2 (val, tail); | 2725 | GCPRO2 (val, tail); |
| 2729 | if (!NILP (tail)) | 2726 | if (!NILP (tail)) |
| 2730 | XSETCDR (tail, read0 (readcharfun)); | 2727 | XCDR (tail) = read0 (readcharfun); |
| 2731 | else | 2728 | else |
| 2732 | val = read0 (readcharfun); | 2729 | val = read0 (readcharfun); |
| 2733 | read1 (readcharfun, &ch, 0); | 2730 | read1 (readcharfun, &ch, 0); |
| @@ -2820,7 +2817,7 @@ read_list (flag, readcharfun) | |||
| 2820 | ? pure_cons (elt, Qnil) | 2817 | ? pure_cons (elt, Qnil) |
| 2821 | : Fcons (elt, Qnil)); | 2818 | : Fcons (elt, Qnil)); |
| 2822 | if (!NILP (tail)) | 2819 | if (!NILP (tail)) |
| 2823 | XSETCDR (tail, tem); | 2820 | XCDR (tail) = tem; |
| 2824 | else | 2821 | else |
| 2825 | val = tem; | 2822 | val = tem; |
| 2826 | tail = tem; | 2823 | tail = tem; |
| @@ -3656,7 +3653,7 @@ to load. See also `load-dangerous-libraries'."); | |||
| 3656 | "Limit for depth of recursive loads.\n\ | 3653 | "Limit for depth of recursive loads.\n\ |
| 3657 | Value should be either an integer > 0 specifying the limit, or nil for\n\ | 3654 | Value should be either an integer > 0 specifying the limit, or nil for\n\ |
| 3658 | no limit."); | 3655 | no limit."); |
| 3659 | Vrecursive_load_depth_limit = make_number (10); | 3656 | Vrecursive_load_depth_limit = make_number (50); |
| 3660 | 3657 | ||
| 3661 | /* Vsource_directory was initialized in init_lread. */ | 3658 | /* Vsource_directory was initialized in init_lread. */ |
| 3662 | 3659 | ||