X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdata-io%2Flist.q;h=50fe1201f80139d623f9df7013ef58d4296a6b9e;hb=fbbeb6d9bfd9397e926a30c46a4c501ec161f6eb;hp=0f6a708feeb794c7ecead70a0913f920d100e369;hpb=338fb2a2e84df6427a2fdee6769421f57d5666d8;p=pspp-builds.git diff --git a/src/language/data-io/list.q b/src/language/data-io/list.q index 0f6a708f..50fe1201 100644 --- a/src/language/data-io/list.q +++ b/src/language/data-io/list.q @@ -1,6 +1,5 @@ /* PSPP - computes sample statistics. Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc. - Written by Ben Pfaff . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -312,7 +311,7 @@ write_header (struct outp_driver *d) /* Put in vertical names. */ for (i = x = 0; i < prc->n_vertical; i++) { - struct variable *v = cmd.v_variables[i]; + const struct variable *v = cmd.v_variables[i]; const char *name = var_get_name (v); size_t name_len = strlen (name); const struct fmt_spec *print = var_get_print_format (v); @@ -328,7 +327,7 @@ write_header (struct outp_driver *d) /* Put in horizontal names. */ for (; i < cmd.n_variables; i++) { - struct variable *v = cmd.v_variables[i]; + const struct variable *v = cmd.v_variables[i]; const char *name = var_get_name (v); size_t name_len = strlen (name); const struct fmt_spec *print = var_get_print_format (v); @@ -551,7 +550,7 @@ determine_layout (void) /* Try layout #1. */ for (width = cmd.n_variables - 1, column = 0; column < cmd.n_variables; column++) { - struct variable *v = cmd.v_variables[column]; + const struct variable *v = cmd.v_variables[column]; int fmt_width = var_get_print_format (v)->w; int name_len = strlen (var_get_name (v)); width += MAX (fmt_width, name_len); @@ -567,7 +566,7 @@ determine_layout (void) column < cmd.n_variables && width <= max_width; column++) { - struct variable *v = cmd.v_variables[column]; + const struct variable *v = cmd.v_variables[column]; int fmt_width = var_get_print_format (v)->w; size_t name_len = strlen (var_get_name (v)); width += fmt_width; @@ -584,7 +583,7 @@ determine_layout (void) #endif for (column = cmd.n_variables; column-- != 0; ) { - struct variable *v = cmd.v_variables[column]; + const struct variable *v = cmd.v_variables[column]; int name_len = strlen (var_get_name (v)); int fmt_width = var_get_print_format (v)->w; int trial_width = width - fmt_width + MAX (fmt_width, name_len); @@ -603,7 +602,7 @@ determine_layout (void) column < prc->n_vertical; column++) { - struct variable *var = cmd.v_variables[column]; + const struct variable *var = cmd.v_variables[column]; size_t name_len = strlen (var_get_name (var)); prc->header_rows = MAX (prc->header_rows, name_len); } @@ -650,7 +649,7 @@ list_cases (const struct ccase *c, void *aux UNUSED, const struct dataset *ds) for (column = 0; column < cmd.n_variables; column++) { - struct variable *v = cmd.v_variables[column]; + const struct variable *v = cmd.v_variables[column]; const struct fmt_spec *print = var_get_print_format (v); int width; @@ -716,7 +715,7 @@ list_cases (const struct ccase *c, void *aux UNUSED, const struct dataset *ds) for (column = 0; column < cmd.n_variables; column++) { - struct variable *v = cmd.v_variables[column]; + const struct variable *v = cmd.v_variables[column]; const struct fmt_spec *print = var_get_print_format (v); char buf[256];