From cac9e9a2ac12dda0a3e9155ee817a7db46d71bcc Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 2 Nov 2001 16:11:28 +0000 Subject: [PATCH] (regcomp, regexec): Don't forget the __restrict. --- src/ChangeLog | 29 +++++++++++++++-------------- src/regex.c | 8 ++++---- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 9f374f62c40..bc5b3f2326d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-11-02 Stefan Monnier + + * regex.c (regcomp, regexec): Don't forget the __restrict. + 2001-11-01 Gerd Moellmann * xterm.c (x_scroll_bar_create): Check for width and height > 0. @@ -6,7 +10,7 @@ * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for *scratch*. - * xfaces.c (Finternal_set_lisp_face_attribute_from_resource): + * xfaces.c (Finternal_set_lisp_face_attribute_from_resource): Handle :box so that it is possible to specify sexprs. 2001-10-31 Eli Zaretskii @@ -21,8 +25,7 @@ (free_face_colors): Do nothing for a face whose colors have been copied bitwise. - * dispextern.h (struct face) : New - member. + * dispextern.h (struct face) : New member. * window.c (grow_mini_window): Handle case that the root window is already smaller than the nominal mininum height. @@ -151,16 +154,15 @@ * xterm.c (x_draw_glyphs): Don't check for cursor overwriting in full-width rows. - + * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: Fix clearing of area not covered by scroll bar. * xdisp.c: Change #ifdef GLYPH_DEBUG to #if. - - * xdisp.c (try_window_reusing_current_matrix): Use - row_containing_pos. - (row_containing_pos): Take additional argument DY. Treat - rows ending in middle of char differently. + + * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos. + (row_containing_pos): Take additional argument DY. Treat rows ending + in middle of char differently. (display_line): Handle tabs on window systems differently. * xterm.c (fast_find_position): Call row_containing_pos @@ -176,14 +178,13 @@ 2001-10-23 Gerd Moellmann - * dispnew.c (sync_window_with_frame_matrix_rows): Fix - handling of windows which aren't full-width, fix handling + * dispnew.c (sync_window_with_frame_matrix_rows): + Fix handling of windows which aren't full-width, fix handling of marginal areas. - * lread.c (syms_of_lread): Raise to - 50. + * lread.c (syms_of_lread): Raise to 50. - * xterm.c (x_draw_glyphs): Remove parameters READ_START and + * xterm.c (x_draw_glyphs): Remove parameters READ_START and REAL_END. Notice if cursor gets overwritten. (notice_overwritten_cursor): Take X positions as parameters. (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p diff --git a/src/regex.c b/src/regex.c index 9fe099c7125..15ce02a1425 100644 --- a/src/regex.c +++ b/src/regex.c @@ -5833,8 +5833,8 @@ re_exec (s) int regcomp (preg, pattern, cflags) - regex_t *preg; - const char *pattern; + regex_t *__restrict preg; + const char *__restrict pattern; int cflags; { reg_errcode_t ret; @@ -5918,8 +5918,8 @@ WEAK_ALIAS (__regcomp, regcomp) int regexec (preg, string, nmatch, pmatch, eflags) - const regex_t *preg; - const char *string; + const regex_t *__restrict preg; + const char *__restrict string; size_t nmatch; regmatch_t pmatch[]; int eflags; -- 2.39.2