changed some comments
This commit is contained in:
parent
a3453e5bd0
commit
22444e298a
@ -1186,7 +1186,6 @@ int qse_awk_buildrex (
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if !defined(USE_REX)
|
#if !defined(USE_REX)
|
||||||
|
|
||||||
static int matchtre (
|
static int matchtre (
|
||||||
|
@ -5691,14 +5691,15 @@ static int get_rexstr (qse_awk_t* awk, qse_awk_tok_t* tok)
|
|||||||
{
|
{
|
||||||
if (awk->sio.last.c == QSE_T('/'))
|
if (awk->sio.last.c == QSE_T('/'))
|
||||||
{
|
{
|
||||||
/* this part of the function is different from get_charstr
|
/* handle an empty regular expression.
|
||||||
* because of the way this function is called.
|
*
|
||||||
* this condition is met when the input is //.
|
* this condition is met when the input is //.
|
||||||
* the first / has been tokenized to TOK_DIV already.
|
* the first / has been tokenized to TOK_DIV already.
|
||||||
* if TOK_DIV is seen as a primary, this function is called.
|
* if TOK_DIV is seen as a primary, this function is called.
|
||||||
* as the token buffer has been cleared by the caller and
|
* as the token buffer has been cleared by the caller and
|
||||||
* the token type is set to TOK_REX, this function can
|
* the token type is set to TOK_REX, this function can
|
||||||
* just return after reading the next character */
|
* just return after reading the next character.
|
||||||
|
* see parse_primary_rex(). */
|
||||||
GET_CHAR (awk);
|
GET_CHAR (awk);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user