Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
15479e8b
Commit
15479e8b
authored
Jul 17, 2004
by
Richard M. Stallman
Browse files
(print_preprocess): Test for print_depth at limit
before entering in being_printed.
parent
0c1c1b93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/print.c
src/print.c
+5
-5
No files found.
src/print.c
View file @
15479e8b
...
...
@@ -1284,6 +1284,11 @@ print_preprocess (obj)
int loop_count = 0;
Lisp_Object halftail;
/* Give up if we go so deep that print_object will get an error. */
/* See similar code in print_object. */
if (print_depth >= PRINT_CIRCLE)
return;
/* Avoid infinite recursion for circular nested structure
in the case where Vprint_circle is nil. */
if (NILP (Vprint_circle))
...
...
@@ -1294,11 +1299,6 @@ print_preprocess (obj)
being_printed[print_depth] = obj;
}
/* Give up if we go so deep that print_object will get an error. */
/* See similar code in print_object. */
if
(
print_depth
>=
PRINT_CIRCLE
)
return
;
print_depth++;
halftail = obj;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment