Skip to content

Commit

Permalink
regcomp.h: White-space, comments only
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Oct 12, 2018
1 parent d2ecbf8 commit b2fd118
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions regcomp.h
Expand Up @@ -363,15 +363,19 @@ struct regnode_ssc {
FILL_NODE(ptr, op); \
(ptr)++; \
} STMT_END
#define FILL_ADVANCE_NODE_ARG(ptr, op, arg) STMT_START { \
ARG_SET(ptr, arg); FILL_ADVANCE_NODE(ptr, op); (ptr) += 1; } STMT_END
#define FILL_ADVANCE_NODE_ARG(ptr, op, arg) \
STMT_START { \
ARG_SET(ptr, arg); \
FILL_ADVANCE_NODE(ptr, op); \
(ptr) += 1; \
} STMT_END
#define FILL_ADVANCE_NODE_2L_ARG(ptr, op, arg1, arg2) \
STMT_START { \
STMT_START { \
ARG_SET(ptr, arg1); \
ARG2L_SET(ptr, arg2); \
FILL_ADVANCE_NODE(ptr, op); \
(ptr) += 2; \
} STMT_END
} STMT_END

#define REG_MAGIC 0234

Expand All @@ -388,7 +392,7 @@ struct regnode_ssc {
* never reach this high). */
#define ANYOF_ONLY_HAS_BITMAP ((U32) -1)

/* When the bimap isn't completely sufficient for handling the ANYOF node,
/* When the bitmap isn't completely sufficient for handling the ANYOF node,
* flags (in node->flags of the ANYOF node) get set to indicate this. These
* are perennially in short supply. Beyond several cases where warnings need
* to be raised under certain circumstances, currently, there are six cases
Expand Down Expand Up @@ -449,9 +453,9 @@ struct regnode_ssc {
* shared with another, so it doesn't occupy extra space.
*
* At the moment, there is one spare bit, but this could be increased by
* various tricks.
* various tricks:
*
* If just one more bit is needed, at this writing it seems to khw that the
* If just one more bit is needed, as of this writing it seems to khw that the
* best choice would be to make ANYOF_MATCHES_ALL_ABOVE_BITMAP not a flag, but
* something like
*
Expand Down

0 comments on commit b2fd118

Please sign in to comment.