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
40b615d6
Commit
40b615d6
authored
Dec 25, 2008
by
Jason Rumney
Browse files
(Fbuffer_swap_text): Use POINTER_TYPE.
parent
737ef682
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
src/ChangeLog
src/ChangeLog
+4
-0
src/buffer.c
src/buffer.c
+5
-5
No files found.
src/ChangeLog
View file @
40b615d6
2008-12-25 Jason Rumney <jasonr@gnu.org>
* buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2008-12-24 Jason Rumney <jasonr@gnu.org>
* ralloc.c (r_alloc_reset_variable): New function.
...
...
src/buffer.c
View file @
40b615d6
...
...
@@ -2183,7 +2183,7 @@ advance_to_char_boundary (byte_pos)
}
#ifdef REL_ALLOC
extern
void
r_alloc_reset_variable
P_
((
P
TR
*
,
PTR
*
));
extern
void
r_alloc_reset_variable
P_
((
P
OINTER_TYPE
*
,
POINTER_TYPE
*
));
#endif
/* REL_ALLOC */
DEFUN
(
"buffer-swap-text"
,
Fbuffer_swap_text
,
Sbuffer_swap_text
,
...
...
@@ -2228,10 +2228,10 @@ DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text,
eassert
(
current_buffer
->
text
==
&
current_buffer
->
own_text
);
eassert
(
other_buffer
->
text
==
&
other_buffer
->
own_text
);
#ifdef REL_ALLOC
r_alloc_reset_variable
((
P
TR
*
)
&
current_buffer
->
own_text
.
beg
,
(
P
TR
*
)
&
other_buffer
->
own_text
.
beg
);
r_alloc_reset_variable
((
P
TR
*
)
&
other_buffer
->
own_text
.
beg
,
(
P
TR
*
)
&
current_buffer
->
own_text
.
beg
);
r_alloc_reset_variable
((
P
OINTER_TYPE
*
*
)
&
current_buffer
->
own_text
.
beg
,
(
P
OINTER_TYPE
*
*
)
&
other_buffer
->
own_text
.
beg
);
r_alloc_reset_variable
((
P
OINTER_TYPE
*
*
)
&
other_buffer
->
own_text
.
beg
,
(
P
OINTER_TYPE
*
*
)
&
current_buffer
->
own_text
.
beg
);
#endif
/* REL_ALLOC */
swapfield
(
pt
,
EMACS_INT
);
...
...
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