{
const struct caseproto *proto;
struct casereader *reader;
- casenumber case_cnt;
+ casenumber n_cases;
/* When the user executes a number of snippets of syntax in a
row, none of which read from the active dataset, the GUI becomes
it is reused the next time syntax is run, without wrapping
it in another layer. */
proto = psppire_data_store_get_proto (pdw->data_store);
- case_cnt = psppire_data_store_get_case_count (pdw->data_store);
- reader = lazy_casereader_create (proto, case_cnt,
+ n_cases = psppire_data_store_get_case_count (pdw->data_store);
+ reader = lazy_casereader_create (proto, n_cases,
create_casereader_from_data_store,
pdw->data_store, &pdw->lazy_serial);
dataset_set_source (pdw->dataset, reader);
struct dataset *ds = session_active_dataset (the_session);
enum cmd_result result = cmd_parse (lexer, ds);
- if ( cmd_result_is_failure (result))
+ if (cmd_result_is_failure (result))
{
retval = FALSE;
- if ( lex_get_error_mode (lexer) == LEX_ERROR_STOP )
+ if (lex_get_error_mode (lexer) == LEX_ERROR_STOP)
break;
}
- if ( result == CMD_EOF || result == CMD_FINISH)
+ if (result == CMD_EOF || result == CMD_FINISH)
break;
}
void
execute_const_syntax_string (PsppireDataWindow *window, const gchar *syntax)
{
- execute_syntax (window, lex_reader_for_string (syntax));
+ execute_syntax (window, lex_reader_for_string (syntax, "UTF-8"));
}