X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fexpressions%2Fevaluate.c;h=07621a84b81e6877e8ad5bd2e71f673cbebf18da;hb=9420449c40bb1307f6c31e50b61ba03825680e3a;hp=1736ab80e8f8b942832bf490875b2568279fb87f;hpb=fe8dc2171009e90d2335f159d05f7e6660e24780;p=pspp diff --git a/src/language/expressions/evaluate.c b/src/language/expressions/evaluate.c index 1736ab80e8..07621a84b8 100644 --- a/src/language/expressions/evaluate.c +++ b/src/language/expressions/evaluate.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2007, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2007, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,7 +16,7 @@ #include -#include "language/expressions/evaluate.h" +#include "evaluate.h" #include @@ -132,7 +132,6 @@ cmd_debug_evaluate (struct lexer *lexer, struct dataset *dsother UNUSED) else if (lex_match (lexer, T_LPAREN)) { struct variable *v; - size_t old_value_cnt; int width; if (!lex_force_id (lexer)) @@ -159,7 +158,6 @@ cmd_debug_evaluate (struct lexer *lexer, struct dataset *dsother UNUSED) d = dataset_dict (ds); } - old_value_cnt = dict_get_next_value_idx (d); v = dict_create_var (d, name, width); if (v == NULL) { @@ -183,13 +181,9 @@ cmd_debug_evaluate (struct lexer *lexer, struct dataset *dsother UNUSED) else break; } - if (lex_token (lexer) != T_SLASH) - { - lex_force_match (lexer, T_SLASH); - goto done; - } - lex_get (lexer); + if (!lex_force_match (lexer, T_SLASH)) + goto done; expr = expr_parse_any (lexer, ds, optimize); if (!expr || lex_end_of_command (lexer) != CMD_SUCCESS)