changed some comments

This commit is contained in:
hyung-hwan 2014-07-02 13:59:32 +00:00
parent a3453e5bd0
commit 22444e298a
2 changed files with 5 additions and 5 deletions

View File

@ -1182,11 +1182,10 @@ int qse_awk_buildrex (
if (code) *code = tre; if (code) *code = tre;
if (icode) *icode = itre; if (icode) *icode = itre;
return 0; return 0;
#endif #endif
} }
#if !defined(USE_REX) #if !defined(USE_REX)
static int matchtre ( static int matchtre (

View File

@ -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;
} }