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
b23c0a83
Commit
b23c0a83
authored
Jun 11, 2003
by
Dave Love
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(shrink_regexp_cache): Use xrealloc.
(syms_of_search): Use xmalloc.
parent
72f295ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/ChangeLog
src/ChangeLog
+7
-0
src/search.c
src/search.c
+2
-2
No files found.
src/ChangeLog
View file @
b23c0a83
2003-06-11 Dave Love <fx@gnu.org>
* search.c (shrink_regexp_cache): Use xrealloc.
(syms_of_search): Use xmalloc.
2003-06-10 Kim F. Storm <storm@cua.dk>
* xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
...
...
@@ -22,6 +27,8 @@
2003-06-05 Dave Love <fx@gnu.org>
* strftime.c: Merge changes from gnulib.
* mktime.c (__mktime_internal): Merge changes from gnulib
involving year 69 and dst2.
...
...
src/search.c
View file @
b23c0a83
...
...
@@ -183,7 +183,7 @@ shrink_regexp_cache ()
{
cp
->
buf
.
allocated
=
cp
->
buf
.
used
;
cp
->
buf
.
buffer
=
(
unsigned
char
*
)
realloc
(
cp
->
buf
.
buffer
,
cp
->
buf
.
used
);
=
(
unsigned
char
*
)
x
realloc
(
cp
->
buf
.
buffer
,
cp
->
buf
.
used
);
}
}
...
...
@@ -2901,7 +2901,7 @@ syms_of_search ()
for
(
i
=
0
;
i
<
REGEXP_CACHE_SIZE
;
++
i
)
{
searchbufs
[
i
].
buf
.
allocated
=
100
;
searchbufs
[
i
].
buf
.
buffer
=
(
unsigned
char
*
)
malloc
(
100
);
searchbufs
[
i
].
buf
.
buffer
=
(
unsigned
char
*
)
x
malloc
(
100
);
searchbufs
[
i
].
buf
.
fastmap
=
searchbufs
[
i
].
fastmap
;
searchbufs
[
i
].
regexp
=
Qnil
;
staticpro
(
&
searchbufs
[
i
].
regexp
);
...
...
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