[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] [PATCH] Fix typos in comments.
From: |
Yi, EungJun |
Subject: |
[bug-gawk] [PATCH] Fix typos in comments. |
Date: |
Sun, 6 May 2012 22:38:48 +0900 |
From: "Yi, EungJun" <address@hidden>
occured => occurred
Signed-off-by: Yi, EungJun <address@hidden>
---
regcomp.c | 4 ++--
regex_internal.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/regcomp.c b/regcomp.c
index f83e454..3db4e6b 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -2133,7 +2133,7 @@ peek_token_bracket (re_token_t *token, re_string_t
*input, reg_syntax_t syntax)
/* Entry point of the parser.
Parse the regular expression REGEXP and return the structure tree.
- If an error is occured, ERR is set by error code, and return NULL.
+ If an error is occurred, ERR is set by error code, and return NULL.
This function build the following tree, from regular expression <reg_exp>:
CAT
/ \
@@ -3763,7 +3763,7 @@ build_charclass_op (re_dfa_t *dfa, RE_TRANSLATE_TYPE
trans,
/* This is intended for the expressions like "a{1,3}".
Fetch a number from `input', and return the number.
Return -1, if the number field is empty like "{,1}".
- Return -2, If an error is occured. */
+ Return -2, If an error is occurred. */
static int
fetch_number (re_string_t *input, re_token_t *token, reg_syntax_t syntax)
diff --git a/regex_internal.c b/regex_internal.c
index 8099161..1b9cb06 100644
--- a/regex_internal.c
+++ b/regex_internal.c
@@ -1289,7 +1289,7 @@ re_node_set_merge (re_node_set *dest, const re_node_set
*src)
/* Insert the new element ELEM to the re_node_set* SET.
SET should not already have ELEM.
- return -1 if an error is occured, return 1 otherwise. */
+ return -1 if an error is occurred, return 1 otherwise. */
static int
internal_function __attribute_warn_unused_result__
@@ -1346,7 +1346,7 @@ re_node_set_insert (re_node_set *set, int elem)
/* Insert the new element ELEM to the re_node_set* SET.
SET should not already have any element greater than or equal to ELEM.
- Return -1 if an error is occured, return 1 otherwise. */
+ Return -1 if an error is occurred, return 1 otherwise. */
static int
internal_function __attribute_warn_unused_result__
@@ -1421,7 +1421,7 @@ re_node_set_remove_at (re_node_set *set, int idx)
/* Add the token TOKEN to dfa->nodes, and return the index of the token.
- Or return -1, if an error will be occured. */
+ Or return -1, if an error will be occurred. */
static int
internal_function
--
1.7.5.4
- [bug-gawk] [PATCH] Fix typos in comments.,
Yi, EungJun <=