else pstr->valid_len = pstr->bufs_len;
extend_buffers (mctx)     re_match_context_t *mctx;{  reg_errcode_t ret;  re_string_t *pstr = mctx->input;  /* Double the lengthes of the buffers.  */  ret = re_string_realloc_buffers (pstr, pstr->bufs_len * 2);  if (BE (ret != REG_NOERROR, 0))    return ret;  if (mctx->state_log != NULL)    {      /* And double the length of state_log.  */      re_dfastate_t **new_array;      new_array = re_realloc (mctx->state_log, re_dfastate_t *,			      pstr->bufs_len * 2);      if (BE (new_array == NULL, 0))	return REG_ESPACE;      mctx->state_log = new_array;    }  /* Then reconstruct the buffers.  */  if (pstr->icase)    {#ifdef RE_ENABLE_I18N      if (pstr->mb_cur_max > 1)	build_wcs_upper_buffer (pstr);      else#endif /* RE_ENABLE_I18N  */	build_upper_buffer (pstr);    }  else    {#ifdef RE_ENABLE_I18N      if (pstr->mb_cur_max > 1)	build_wcs_buffer (pstr);      else#endif /* RE_ENABLE_I18N  */	{	  if (pstr->trans != NULL)	    re_string_translate_buffer (pstr);	  else	    pstr->valid_len = pstr->bufs_len;	}    }  return REG_NOERROR;}