X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable-transpose.c;h=f2db939f5a012246ec9424ec71417e0a462aeebf;hb=8a4ffde673c1bdfc687ff2a504036313f3595157;hp=59801942cb9b2dd6af4a324949b7c87ff47b7dc1;hpb=f550aee00a62fe1d8baf62d83cd7efef6cc2ee92;p=pspp diff --git a/src/output/table-transpose.c b/src/output/table-transpose.c index 59801942cb..f2db939f5a 100644 --- a/src/output/table-transpose.c +++ b/src/output/table-transpose.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2011 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,9 +16,9 @@ #include -#include -#include -#include +#include "libpspp/assertion.h" +#include "libpspp/cast.h" +#include "output/table-provider.h" #include "gl/minmax.h" #include "gl/xalloc.h" @@ -34,7 +34,7 @@ static const struct table_class table_transpose_class; static struct table_transpose * table_transpose_cast (const struct table *table) { - assert (table->class == &table_transpose_class); + assert (table->klass == &table_transpose_class); return UP_CAST (table, struct table_transpose, table); } @@ -46,7 +46,7 @@ table_transpose (struct table *subtable) if (subtable->n[TABLE_HORZ] == subtable->n[TABLE_VERT] && subtable->n[TABLE_HORZ] <= 1) return subtable; - else if (subtable->class == &table_transpose_class) + else if (subtable->klass == &table_transpose_class) { struct table_transpose *tt = table_transpose_cast (subtable); struct table *table = table_ref (tt->subtable);