~ubuntu-branches/ubuntu/hardy/vala/hardy

« back to all changes in this revision

Viewing changes to vala/valainterfacewriter.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge, Marc-Andre Lureau, Kumar Appaiah, Sebastian Dröge
  • Date: 2007-11-26 08:16:57 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071126081657-pbycv1holrkgalk3
Tags: 0.1.5-1
[ Marc-Andre Lureau ]
* New Upstream Version; closes: #452870.
* debian/libvala-dev.install
  + Rename gidlgen to vala-gen-instrospect
  + Remove deleted .pl files

[ Kumar Appaiah ]
* debian/control:
  + Add Homepage field.
  + Modify XS-Vcs-Git and XS-Vcs-Broswer to Vcs-Git and Vcs-Browser
    respectively, as dpkg now supports them.

[ Sebastian Dröge ]
* debian/libvala-dev.install,
  debian/rules:
  + Also ship vala-gen-project.
* debian/control:
  + Build depend on libgtk2.0-dev (>= 2.10.0) and libglib2.0-dev (>= 2.12.0).
* debian/patches/01_vala-gen-project-paths.patch,
  debian/rules:
  + Adjust the paths in vala-gen-project for the license files, etc.
    Needs again an automake-touch hack for timestamp issues.
* debian/control,
  debian/libvala-dev.install,
  debian/valac.install,
  debian/vala-utils.install:
  + Move vala-gen-introspect/vapigen to valac and vala-gen-project/vapicheck
    to vala-utils.
* debian/patches/01_vala-gen-project-paths.patch,
  debian/control:
  + Fix paths for COPYING and INSTALL files and depend on automake1.10 for
    this.

[ Kumar Appaiah ]
* debian/watch: Fix watch file to point to new download location.
  (Closes: #452870)

Show diffs side-by-side

added added

removed removed

Lines of Context:
561
561
        vala_interface_writer_write_string (self, (_tmp4 = g_strdup_printf ("[CCode (cprefix = \"%s\", cheader_filename = \"%s\")]", (_tmp3 = vala_enum_get_cprefix (en)), cheaders)));
562
562
        (_tmp4 = (g_free (_tmp4), NULL));
563
563
        (_tmp3 = (g_free (_tmp3), NULL));
 
564
        if (vala_enum_get_is_flags (en)) {
 
565
                vala_interface_writer_write_indent (self);
 
566
                vala_interface_writer_write_string (self, "[Flags]");
 
567
        }
 
568
        if (vala_enum_get_error_domain (en)) {
 
569
                vala_interface_writer_write_indent (self);
 
570
                vala_interface_writer_write_string (self, "[ErrorDomain]");
 
571
        }
564
572
        vala_interface_writer_write_indent (self);
565
573
        vala_interface_writer_write_string (self, "public enum ");
566
574
        vala_interface_writer_write_identifier (self, vala_symbol_get_name (VALA_SYMBOL (en)));
820
828
                char* _tmp3;
821
829
                char* _tmp4;
822
830
                _tmp3 = NULL;
823
 
                g_string_append_printf (ccode_params, "%scname = \"%s\"", separator, (_tmp3 = vala_method_get_cname (m)), NULL);
 
831
                g_string_append_printf (ccode_params, "%scname = \"%s\"", separator, (_tmp3 = vala_method_get_cname (m)));
824
832
                (_tmp3 = (g_free (_tmp3), NULL));
825
833
                _tmp4 = NULL;
826
834
                separator = (_tmp4 = g_strdup (", "), (separator = (g_free (separator), NULL)), _tmp4);
827
835
        }
828
836
        if (g_utf8_collate (vala_method_get_sentinel (m), VALA_METHOD_DEFAULT_SENTINEL) != 0) {
829
837
                char* _tmp5;
830
 
                g_string_append_printf (ccode_params, "%ssentinel = \"%s\"", separator, vala_method_get_sentinel (m), NULL);
 
838
                g_string_append_printf (ccode_params, "%ssentinel = \"%s\"", separator, vala_method_get_sentinel (m));
831
839
                _tmp5 = NULL;
832
840
                separator = (_tmp5 = g_strdup (", "), (separator = (g_free (separator), NULL)), _tmp5);
833
841
        }
995
1003
static void vala_interface_writer_write_identifier (ValaInterfaceWriter* self, const char* s) {
996
1004
        g_return_if_fail (VALA_IS_INTERFACE_WRITER (self));
997
1005
        g_return_if_fail (s != NULL);
998
 
        if (g_utf8_collate (s, "base") == 0 || g_utf8_collate (s, "class") == 0 || g_utf8_collate (s, "construct") == 0 || g_utf8_collate (s, "delegate") == 0 || g_utf8_collate (s, "do") == 0 || g_utf8_collate (s, "foreach") == 0 || g_utf8_collate (s, "in") == 0 || g_utf8_collate (s, "interface") == 0 || g_utf8_collate (s, "lock") == 0 || g_utf8_collate (s, "namespace") == 0 || g_utf8_collate (s, "new") == 0 || g_utf8_collate (s, "out") == 0 || g_utf8_collate (s, "ref") == 0 || g_utf8_collate (s, "signal") == 0) {
 
1006
        if (g_utf8_collate (s, "base") == 0 || g_utf8_collate (s, "break") == 0 || g_utf8_collate (s, "class") == 0 || g_utf8_collate (s, "construct") == 0 || g_utf8_collate (s, "delegate") == 0 || g_utf8_collate (s, "do") == 0 || g_utf8_collate (s, "foreach") == 0 || g_utf8_collate (s, "in") == 0 || g_utf8_collate (s, "interface") == 0 || g_utf8_collate (s, "lock") == 0 || g_utf8_collate (s, "namespace") == 0 || g_utf8_collate (s, "new") == 0 || g_utf8_collate (s, "out") == 0 || g_utf8_collate (s, "ref") == 0 || g_utf8_collate (s, "signal") == 0) {
999
1007
                fputc ('@', self->priv->stream);
1000
1008
        }
1001
1009
        vala_interface_writer_write_string (self, s);