summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-07-12 14:19:47 +0200
committerJim Meyering <meyering@redhat.com>2011-07-12 14:19:47 +0200
commit3abe897119cb46e3cbd7be02fdf9598c2758b461 (patch)
treeec833798e69702e2a68377e2a6766e3ba49855d9
parent406ab56cdd977fbd05216392ac655dd7204a307a (diff)
downloadgrep-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.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/dfa.c b/src/dfa.c
index f6b9f598..1445fe64 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -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)