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
a21260d9
Commit
a21260d9
authored
Feb 17, 2000
by
Gerd Moellmann
Browse files
(Fget_buffer_create, Fmake_indirect_buffer): Use
allocate_buffer instead of xmalloc.
parent
34400008
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/buffer.c
src/buffer.c
+2
-3
No files found.
src/buffer.c
View file @
a21260d9
...
...
@@ -330,7 +330,7 @@ The value is never nil.")
if
(
XSTRING
(
name
)
->
size
==
0
)
error
(
"Empty string for buffer name is not allowed"
);
b
=
(
struct
buffer
*
)
xm
alloc
(
sizeof
(
struct
buffer
)
);
b
=
(
struct
buffer
*
)
alloc
ate_
buffer
(
);
b
->
size
=
sizeof
(
struct
buffer
)
/
sizeof
(
EMACS_INT
);
...
...
@@ -427,8 +427,7 @@ NAME should be a string which is not the name of an existing buffer.")
if
(
XSTRING
(
name
)
->
size
==
0
)
error
(
"Empty string for buffer name is not allowed"
);
b
=
(
struct
buffer
*
)
xmalloc
(
sizeof
(
struct
buffer
));
b
=
(
struct
buffer
*
)
allocate_buffer
();
b
->
size
=
sizeof
(
struct
buffer
)
/
sizeof
(
EMACS_INT
);
if
(
XBUFFER
(
base_buffer
)
->
base_buffer
)
...
...
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