~ubuntu-branches/ubuntu/maverick/vala/maverick

« back to all changes in this revision

Viewing changes to vala/valaprofile.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-04-02 10:10:55 UTC
  • mfrom: (1.4.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100402101055-qbx3okzv0tnp3wpp
Tags: 0.8.0-0ubuntu1
* New upstream release:
  - Infer type arguments when calling generic methods.
  - Support `in' operator for arrays.
  - Add experimental support for regular expression literals.
  - Add experimental support for chained relational expressions.
  - Add va_list support.
  - Add clutter-gtk-0.10 bindings (Gordon Allott).
  - Add gdl-1.0 bindings (Nicolas Joseph).
  - Add gstreamer-app-0.10 bindings (Sebastian Dröge).
  - Add gstreamer-cdda-0.10 bindings (Sebastian Dröge).
  - Add gudev-1.0 bindings (Jim Nelson).
  - Add libgda-report-4.0 bindings (Shawn Ferris).
  - Add libgvc (graphviz) bindings (Martin Olsson).
  - Add purple bindings (Adrien Bustany).
  - Many bug fixes and binding updates.
* debian/patches/99_ltmain_as-needed.patch: refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
/* valaprofile.vala
5
5
 *
6
 
 * Copyright (C) 2009  Jürg Billeter
 
6
 * Copyright (C) 2009-2010  Jürg Billeter
7
7
 *
8
8
 * This library is free software; you can redistribute it and/or
9
9
 * modify it under the terms of the GNU Lesser General Public
31
31
 
32
32
typedef enum  {
33
33
        VALA_PROFILE_POSIX,
34
 
        VALA_PROFILE_GOBJECT
 
34
        VALA_PROFILE_GOBJECT,
 
35
        VALA_PROFILE_DOVA
35
36
} ValaProfile;
36
37
 
37
38
 
40
41
 
41
42
 
42
43
 
43
 
 
44
44
GType vala_profile_get_type (void) {
45
 
        static GType vala_profile_type_id = 0;
46
 
        if (G_UNLIKELY (vala_profile_type_id == 0)) {
47
 
                static const GEnumValue values[] = {{VALA_PROFILE_POSIX, "VALA_PROFILE_POSIX", "posix"}, {VALA_PROFILE_GOBJECT, "VALA_PROFILE_GOBJECT", "gobject"}, {0, NULL, NULL}};
 
45
        static volatile gsize vala_profile_type_id__volatile = 0;
 
46
        if (g_once_init_enter (&vala_profile_type_id__volatile)) {
 
47
                static const GEnumValue values[] = {{VALA_PROFILE_POSIX, "VALA_PROFILE_POSIX", "posix"}, {VALA_PROFILE_GOBJECT, "VALA_PROFILE_GOBJECT", "gobject"}, {VALA_PROFILE_DOVA, "VALA_PROFILE_DOVA", "dova"}, {0, NULL, NULL}};
 
48
                GType vala_profile_type_id;
48
49
                vala_profile_type_id = g_enum_register_static ("ValaProfile", values);
 
50
                g_once_init_leave (&vala_profile_type_id__volatile, vala_profile_type_id);
49
51
        }
50
 
        return vala_profile_type_id;
 
52
        return vala_profile_type_id__volatile;
51
53
}
52
54
 
53
55