diff options
author | Jim Meyering <meyering@redhat.com> | 2011-07-12 14:19:47 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-07-12 14:19:47 +0200 |
commit | 3abe897119cb46e3cbd7be02fdf9598c2758b461 (patch) | |
tree | ec833798e69702e2a68377e2a6766e3ba49855d9 | |
parent | 406ab56cdd977fbd05216392ac655dd7204a307a (diff) | |
download | grep-3abe897119cb46e3cbd7be02fdf9598c2758b461.tar.gz |
dfa: add braces to REALLOC_IF_NECESSARY definition
* src/dfa.c (REALLOC_IF_NECESSARY): Add curly braces; use TABs
to right-indent.
-rw-r--r-- | src/dfa.c | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -401,14 +401,16 @@ static void regexp (void); #define REALLOC(p, t, n) ((p) = xnrealloc (p, n, sizeof (t))) /* Reallocate an array of type t if nalloc is too small for index. */ -#define REALLOC_IF_NECESSARY(p, t, nalloc, index) \ - do \ - if ((nalloc) <= (index)) \ - { \ - size_t new_nalloc = (index) + ! (p); \ - (p) = x2nrealloc (p, &new_nalloc, sizeof (t)); \ - (nalloc) = new_nalloc; \ - } \ +#define REALLOC_IF_NECESSARY(p, t, nalloc, index) \ + do \ + { \ + if ((nalloc) <= (index)) \ + { \ + size_t new_nalloc = (index) + ! (p); \ + (p) = x2nrealloc (p, &new_nalloc, sizeof (t)); \ + (nalloc) = new_nalloc; \ + } \ + } \ while (false) |