X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fnumeric.c;h=2a7dbe575c1dd570949d070d5f56c52a02f1c10a;hb=e210b20bf6f405637c8c03dd280b5a4a627191b8;hp=8031d65d2070954aad0cad8b538c9cd1f94727fe;hpb=74a57f26f1458b28a0fddbb9f46004ac8f4d9c30;p=pspp diff --git a/src/numeric.c b/src/numeric.c index 8031d65d20..2a7dbe575c 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -14,29 +14,33 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #include -#include +#include "error.h" #include #include "command.h" +#include "dictionary.h" #include "error.h" #include "lexer.h" #include "str.h" #include "var.h" +#include "gettext.h" +#define _(msgid) gettext (msgid) + #include "debug-print.h" /* Parses the NUMERIC command. */ int cmd_numeric (void) { - int i; + size_t i; /* Names of variables to create. */ char **v; - int nv; + size_t nv; /* Format spec for variables to create. f.type==-1 if default is to be used. */ @@ -103,11 +107,11 @@ fail: int cmd_string (void) { - int i; + size_t i; /* Names of variables to create. */ char **v; - int nv; + size_t nv; /* Format spec for variables to create. */ struct fmt_spec f; @@ -146,6 +150,7 @@ cmd_string (void) break; default: assert (0); + abort (); } /* Create each variable. */ @@ -182,9 +187,9 @@ int cmd_leave (void) { struct variable **v; - int nv; + size_t nv; - int i; + size_t i; if (!parse_variables (default_dict, &v, &nv, PV_NONE)) return CMD_FAILURE;