Formalize buffer var allocations
[profile/ivi/org.tizen.video-player.git] / src / main.cc
index b3b12d0..4bf809e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007,2008,2009  Red Hat, Inc.
+ * Copyright © 2007,2008,2009  Red Hat, Inc.
  *
  *  This is part of HarfBuzz, a text shaping library.
  *
@@ -35,6 +35,9 @@
 #include <stdlib.h>
 #include <stdio.h>
 
+HB_BEGIN_DECLS
+
+
 int
 main (int argc, char **argv)
 {
@@ -126,7 +129,7 @@ main (int argc, char **argv)
                   ? "      Default Language System\n"
                   : "      Language System %2d of %2d: %.4s\n", n_langsys, num_langsys,
                    (const char *)script.get_lang_sys_tag (n_langsys));
-           if (langsys.get_required_feature_index () == NO_INDEX)
+           if (langsys.get_required_feature_index () == Index::NOT_FOUND_INDEX)
              printf ("        No required feature\n");
 
            int num_features = langsys.get_feature_count ();
@@ -158,8 +161,8 @@ main (int argc, char **argv)
        printf ("    %d lookup(s) found in table\n", num_lookups);
        for (int n_lookup = 0; n_lookup < num_lookups; n_lookup++) {
          const Lookup &lookup = g.get_lookup (n_lookup);
-         printf ("    Lookup %2d of %2d: type %d, flags 0x%04X\n", n_lookup, num_lookups,
-                 lookup.get_type(), lookup.get_flag());
+         printf ("    Lookup %2d of %2d: type %d, props 0x%04X\n", n_lookup, num_lookups,
+                 lookup.get_type(), lookup.get_props());
        }
 
        }
@@ -188,3 +191,6 @@ main (int argc, char **argv)
 
   return 0;
 }
+
+
+HB_END_DECLS