X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fselection%2Fscanner_internal.cpp;h=d66d647b58dfb524cc635ae20429cea8ae68ccdc;hb=180cf1538ad2b19bd6b4108662adc4a519565fcb;hp=1f3be505e5d192e406ce9824d30b916a1942ad54;hpb=1d597ac0415f9a847715ef65daa55fe1312bd59f;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/selection/scanner_internal.cpp b/src/gromacs/selection/scanner_internal.cpp index 1f3be505e5..d66d647b58 100644 --- a/src/gromacs/selection/scanner_internal.cpp +++ b/src/gromacs/selection/scanner_internal.cpp @@ -384,8 +384,8 @@ _gmx_sel_lexer_add_token(YYLTYPE *yylloc, const char *str, int len, void _gmx_sel_init_lexer(yyscan_t *scannerp, struct gmx_ana_selcollection_t *sc, - bool bInteractive, int maxnr, bool bGroups, - struct gmx_ana_indexgrps_t *grps) + gmx::TextWriter *statusWriter, int maxnr, + bool bGroups, struct gmx_ana_indexgrps_t *grps) { int rc = _gmx_sel_yylex_init(scannerp); if (rc != 0) @@ -401,7 +401,7 @@ _gmx_sel_init_lexer(yyscan_t *scannerp, struct gmx_ana_selcollection_t *sc, state->grps = grps; state->nexpsel = (maxnr > 0 ? static_cast(sc->sel.size()) + maxnr : -1); - state->bInteractive = bInteractive; + state->statusWriter = statusWriter; snew(state->pselstr, STRSTORE_ALLOCSTEP); state->pselstr[0] = 0; @@ -461,11 +461,11 @@ _gmx_sel_lexer_rethrow_exception_if_occurred(yyscan_t scanner) } } -bool -_gmx_sel_is_lexer_interactive(yyscan_t scanner) +gmx::TextWriter * +_gmx_sel_lexer_get_status_writer(yyscan_t scanner) { gmx_sel_lexer_t *state = _gmx_sel_yyget_extra(scanner); - return state->bInteractive; + return state->statusWriter; } struct gmx_ana_selcollection_t *