#include <stdio.h>
#include "gtypes.h"
#include "gunicode.h"
#include "gunidecomp.h"
#include "gunicomp.h"
#include "gunichartables.h"
#include "gunibreak.h"

gint
main ()
{
  gint total = 0;

  printf ("sizeof (special_case_table) = %d\n", 
           sizeof (special_case_table));
  total += sizeof (special_case_table);

  printf (" = %d bytes in special case table\n", sizeof (special_case_table));

  printf ("sizeof (casefold_table) = %d\n", 
           sizeof (casefold_table));
  total += sizeof (casefold_table);

  printf (" = %d bytes for casefold table\n", sizeof (casefold_table));

  printf ("sizeof (type_data) = %d\n", 
           sizeof (type_data));
  total += sizeof (type_data);

  printf ("sizeof (type_table_part1) = %d\n", 
           sizeof (type_table_part1));
  total += sizeof (type_table_part1);

  printf ("sizeof (type_table_part2) = %d\n", 
           sizeof (type_table_part2));
  total += sizeof (type_table_part2);

  printf ("sizeof (attr_data) = %d\n", 
           sizeof (attr_data));
  total += sizeof (attr_data);

  printf ("sizeof (attr_table_part1) = %d\n", 
           sizeof (attr_table_part1));
  total += sizeof (attr_table_part1);

  printf ("sizeof (attr_table_part2) = %d\n", 
           sizeof (attr_table_part2));
  total += sizeof (attr_table_part2);

  printf ("sizeof (title_table) = %d\n", 
           sizeof (title_table));
  total += sizeof (title_table);

  printf (" = %d bytes in tables\n", 
           sizeof (type_data) + sizeof (type_table_part1)
           + sizeof (type_table_part2) + sizeof (attr_data)
           + sizeof (attr_table_part1) + sizeof (attr_table_part2)
           + sizeof (title_table));

  printf ("sizeof (cclass_data) = %d\n", 
           sizeof (cclass_data));
  total += sizeof (cclass_data);

  printf ("sizeof (combining_class_table_part1) = %d\n", 
           sizeof (combining_class_table_part1));
  total += sizeof (combining_class_table_part1);

  printf ("sizeof (combining_class_table_part2) = %d\n", 
           sizeof (combining_class_table_part2));
  total += sizeof (combining_class_table_part2);

  printf ("sizeof (decomp_table) = %d\n", 
           sizeof (decomp_table));
  total += sizeof (decomp_table);

  printf ("sizeof (decomp_expansion_string) = %d\n", 
           sizeof (decomp_expansion_string));
  total += sizeof (decomp_expansion_string);

  printf (" = %d bytes in decomp tables\n", 
           sizeof (cclass_data) + sizeof (combining_class_table_part1)
           + sizeof (combining_class_table_part2) + sizeof (decomp_table)
           + sizeof (decomp_expansion_string));

  printf ("sizeof (compose_data) = %d\n", 
           sizeof (compose_data));
  total += sizeof (compose_data);

  printf ("sizeof (compose_table) = %d\n", 
           sizeof (compose_table));
  total += sizeof (compose_table);

  printf ("sizeof (compose_first_single) = %d\n", 
           sizeof (compose_first_single));
  total += sizeof (compose_first_single);

  printf ("sizeof (compose_second_single) = %d\n", 
           sizeof (compose_second_single));
  total += sizeof (compose_second_single);

  printf ("sizeof (compose_array) = %d\n", 
           sizeof (compose_array));
  total += sizeof (compose_array);

  printf (" = %d bytes in compose tables\n", 
           sizeof (compose_data) + sizeof (compose_table)
           + sizeof (compose_first_single) + sizeof (compose_second_single)
           + sizeof (compose_array));

  printf ("sizeof (break_property_data) = %d\n", 
           sizeof (break_property_data));
  total += sizeof (break_property_data);

  printf ("sizeof (break_property_table_part1) = %d\n", 
           sizeof (break_property_table_part1));
  total += sizeof (break_property_table_part1);

  printf ("sizeof (break_property_table_part2) = %d\n", 
           sizeof (break_property_table_part2));
  total += sizeof (break_property_table_part2);

  printf (" = %d bytes in break tables\n", sizeof (break_property_data) 
                                         + sizeof (break_property_table_part1)
                                         + sizeof (break_property_table_part2));

  printf ("\nTOTAL: %d\n", total);

  return 0;
}
