Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(773)

Side by Side Diff: third_party/harfbuzz-ng/src/hb-gobject-enums.cc.tmpl

Issue 70193010: Update harfbuzz-ng to 0.9.24 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /*** BEGIN file-header ***/ 1 /*** BEGIN file-header ***/
2 /* 2 /*
3 * Copyright © 2011 Google, Inc. 3 * Copyright © 2011 Google, Inc.
4 * 4 *
5 * This is part of HarfBuzz, a text shaping library. 5 * This is part of HarfBuzz, a text shaping library.
6 * 6 *
7 * Permission is hereby granted, without written agreement and without 7 * Permission is hereby granted, without written agreement and without
8 * license or royalty fees, to use, copy, modify, and distribute this 8 * license or royalty fees, to use, copy, modify, and distribute this
9 * software and its documentation for any purpose, provided that the 9 * software and its documentation for any purpose, provided that the
10 * above copyright notice and the following two paragraphs appear in 10 * above copyright notice and the following two paragraphs appear in
(...skipping 27 matching lines...) Expand all
38 38
39 #include "hb-gobject.h" 39 #include "hb-gobject.h"
40 40
41 /*** END file-header ***/ 41 /*** END file-header ***/
42 42
43 /*** BEGIN file-production ***/ 43 /*** BEGIN file-production ***/
44 /* enumerations from "@filename@" */ 44 /* enumerations from "@filename@" */
45 /*** END file-production ***/ 45 /*** END file-production ***/
46 46
47 /*** BEGIN value-header ***/ 47 /*** BEGIN value-header ***/
48 inline static /* TODO(behdad) disable these for now until we fix them... */
49 GType 48 GType
50 @enum_name@_get_type (void) 49 @enum_name@_get_type (void)
51 { 50 {
52 static volatile gsize g_define_type_id__volatile = 0; 51 static gsize type_id = 0;
53 52
54 if (g_once_init_enter (&g_define_type_id__volatile)) 53 if (g_once_init_enter (&type_id))
55 { 54 {
56 static const G@Type@Value values[] = { 55 static const G@Type@Value values[] = {
57 /*** END value-header ***/ 56 /*** END value-header ***/
58 57
59 /*** BEGIN value-production ***/ 58 /*** BEGIN value-production ***/
60 { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, 59 { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
61 /*** END value-production ***/ 60 /*** END value-production ***/
62 61
63 /*** BEGIN value-tail ***/ 62 /*** BEGIN value-tail ***/
64 { 0, NULL, NULL } 63 { 0, NULL, NULL }
65 }; 64 };
66 GType g_define_type_id = 65 GType id =
67 g_@type@_register_static (g_intern_static_string ("@EnumName@"), values) ; 66 g_@type@_register_static (g_intern_static_string ("@EnumName@"), values) ;
68 g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); 67 g_once_init_leave (&type_id, id);
69 } 68 }
70 69
71 return g_define_type_id__volatile; 70 return type_id;
72 } 71 }
73 72
74 /*** END value-tail ***/ 73 /*** END value-tail ***/
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-gobject.h ('k') | third_party/harfbuzz-ng/src/hb-gobject-structs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698