tab_offset (table, -1, tab_row (table) - num_cells * n_rows);
for (r = 0; r < n_rows; r++)
{
- char suffix = 0;
bool mark_missing = false;
if (cmd.miss == CRS_REPORT
for (i = 0; i < num_cells; i++)
{
+ char suffix = 0;
double v;
switch (cells[i])
v = row_tot[r];
break;
case CRS_CL_ROW:
- v = 100.;
+ v = 100.0;
suffix = '%';
break;
case CRS_CL_COLUMN:
{
double ct = c < n_cols ? col_tot[c] : W;
bool mark_missing = false;
- char suffix = 0;
int i;
if (cmd.miss == CRS_REPORT && c < n_cols
for (i = 0; i < num_cells; i++)
{
+ char suffix = 0;
double v;
switch (cells[i])
{
case CRS_CL_COUNT:
v = ct;
- suffix = '%';
break;
case CRS_CL_ROW:
v = ct / W * 100.;
NOT_REACHED ();
}
- format_cell_entry (table, c, i, v, suffix, mark_missing);
+ format_cell_entry (table, c, i, v, suffix, mark_missing);
}
last_row = i;
}
# 5.00# .0| .0| .0| .0| .0| .0| .0| .0#
# 6.00# .0| .0| .0| .0| .0| .0| .0| .0#
# 7.00# .0| .0| .0| .0| .0| .0| .0| .0#
-#Total # .0%| .0%| .0%| .0%| 1.0%| .0%| .0%| 1.0%#
+#Total # .0| .0| .0| .0| 1.0| .0| .0| 1.0#
#===============#========#========#========#========#========#========#========#========#
EOF
if [ $? -ne 0 ] ; then fail ; fi
# 1.00# 1.0| .0| .0| 1.0| 2.0#
# 2.00# .0| .0| 1.0| .0| 1.0#
# 3.00# .0| 1.0| .0| .0| 1.0#
-#Total # 1.0%| 1.0%| 1.0%| 1.0%| 4.0%#
+#Total # 1.0| 1.0| 1.0| 1.0| 4.0#
#===============#========#========#========#========#========#
EOF
if [ $? -ne 0 ] ; then fail ; fi
# 5.00# .0| .0| .0| .0| .0| .0| .0| .0#
# 6.00# .0| .0| .0| .0| .0| .0| .0| .0#
# 7.00# .0| .0| .0| .0| .0| .0| .0| .0#
-#Total # .0%| .0%| .0%| .0%| 1.0%| .0%| .0%| 1.0%#
+#Total # .0| .0| .0| .0| 1.0| .0| .0| 1.0#
#===============#========#========#========#========#========#========#========#========#
EOF
if [ $? -ne 0 ] ; then fail ; fi