Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
67965a98
Commit
67965a98
authored
Apr 30, 2003
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fformat): Set abort_on_gc during first scan of format.
Reinit FORMAT_START and END before second scan.
parent
3de0effb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/editfns.c
src/editfns.c
+9
-1
No files found.
src/editfns.c
View file @
67965a98
...
...
@@ -3255,8 +3255,12 @@ usage: (format STRING &rest OBJECTS) */)
/* We may have to change "%S" to "%s". */
args
[
0
]
=
Fcopy_sequence
(
args
[
0
]);
/* GC should never happen here, so abort if it does. */
abort_on_gc
++
;
/* If we start out planning a unibyte result,
and later find it has to be multibyte, we jump back to retry. */
then discover it has to be multibyte, we jump back to retry.
That can only happen from the first large while loop below. */
retry:
format
=
SDATA
(
args
[
0
]);
...
...
@@ -3456,6 +3460,8 @@ usage: (format STRING &rest OBJECTS) */)
total
+=
thissize
+
4
;
}
abort_on_gc
--
;
/* Now we can no longer jump to retry.
TOTAL and LONGEST_FORMAT are known for certain. */
...
...
@@ -3474,6 +3480,8 @@ usage: (format STRING &rest OBJECTS) */)
/* Scan the format and store result in BUF. */
format
=
SDATA
(
args
[
0
]);
format_start
=
format
;
end
=
format
+
SBYTES
(
args
[
0
]);
maybe_combine_byte
=
0
;
while
(
format
!=
end
)
{
...
...
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