mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-25 11:27:53 +02:00
.gitlab-ci
docs
fuzzing
gio
glib
gmodule
gobject
tests
gatomicarray.c
gatomicarray.h
gbinding.c
gbinding.h
gboxed.c
gboxed.h
gclosure.c
gclosure.h
genums.c
genums.h
glib-enumtypes.c.template
glib-enumtypes.h.template
glib-genmarshal.in
glib-mkenums.in
glib-types.h
gmarshal.c
gmarshal.h
gobject-autocleanups.h
gobject-query.c
gobject.c
gobject.h
gobject.rc.in
gobject.stp.in
gobject_gdb.py
gobject_probes.d
gobject_trace.h
gobjectnotifyqueue.c
gparam.c
gparam.h
gparamspecs.c
gparamspecs.h
gsignal.c
gsignal.h
gsourceclosure.c
gsourceclosure.h
gtype-private.h
gtype.c
gtype.h
gtypemodule.c
gtypemodule.h
gtypeplugin.c
gtypeplugin.h
gvalue.c
gvalue.h
gvaluearray.c
gvaluearray.h
gvaluecollector.h
gvaluetransform.c
gvaluetypes.c
gvaluetypes.h
libgobject-gdb.py.in
meson.build
gthread
m4macros
po
subprojects
tests
.clang-format
.dir-locals.el
.gitattributes
.gitignore
.gitlab-ci.yml
AUTHORS
CONTRIBUTING.md
COPYING
HACKING
INSTALL.in
NEWS
NEWS.pre-1-3
README
README.md
README.rationale
README.win32
README.win32.md
check-abis.sh
clang-format-diff.py
glib-gettextize.in
glib.doap
glib.supp
meson.build
meson_options.txt
msvc_recommended_pragmas.h
template-tap.test.in
template.test.in
http://isvolatileusefulwiththreads.in/c/ It’s possible that the variables here are only marked as volatile because they’re arguments to `g_once_*()`. Those arguments will be modified in a subsequent commit. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #600
39 lines
904 B
Plaintext
39 lines
904 B
Plaintext
/*** BEGIN file-header ***/
|
|
#include "config.h"
|
|
#include "glib-enumtypes.h"
|
|
#include <glib-object.h>
|
|
|
|
/*** END file-header ***/
|
|
|
|
/*** BEGIN file-production ***/
|
|
/* enumerations from "@filename@" */
|
|
/*** END file-production ***/
|
|
|
|
/*** BEGIN value-header ***/
|
|
GType
|
|
@enum_name@_get_type (void)
|
|
{
|
|
static gsize static_g_define_type_id = 0;
|
|
|
|
if (g_once_init_enter (&static_g_define_type_id))
|
|
{
|
|
static const G@Type@Value values[] = {
|
|
/*** END value-header ***/
|
|
|
|
/*** BEGIN value-production ***/
|
|
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },
|
|
/*** END value-production ***/
|
|
|
|
/*** BEGIN value-tail ***/
|
|
{ 0, NULL, NULL }
|
|
};
|
|
GType g_define_type_id =
|
|
g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
|
|
g_once_init_leave (&static_g_define_type_id, g_define_type_id);
|
|
}
|
|
|
|
return static_g_define_type_id;
|
|
}
|
|
|
|
/*** END value-tail ***/
|