Line |
Branch |
Exec |
Source |
1 |
|
|
#include <gio/gio.h> |
2 |
|
|
|
3 |
|
|
#if defined (__ELF__) && ( __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6)) |
4 |
|
|
# define SECTION __attribute__ ((section (".gresource.tecla"), aligned (sizeof(void *) > 8 ? sizeof(void *) : 8))) |
5 |
|
|
#else |
6 |
|
|
# define SECTION |
7 |
|
|
#endif |
8 |
|
|
|
9 |
|
|
static const SECTION union { const guint8 data[2405]; const double alignment; void * const ptr;} tecla_resource_data = { |
10 |
|
|
"\107\126\141\162\151\141\156\164\000\000\000\000\000\000\000\000" |
11 |
|
|
"\030\000\000\000\344\000\000\000\000\000\000\050\007\000\000\000" |
12 |
|
|
"\000\000\000\000\002\000\000\000\003\000\000\000\005\000\000\000" |
13 |
|
|
"\005\000\000\000\005\000\000\000\005\000\000\000\005\261\276\204" |
14 |
|
|
"\003\000\000\000\344\000\000\000\015\000\166\000\370\000\000\000" |
15 |
|
|
"\252\002\000\000\042\374\275\260\003\000\000\000\252\002\000\000" |
16 |
|
|
"\017\000\166\000\300\002\000\000\203\010\000\000\113\120\220\013" |
17 |
|
|
"\004\000\000\000\203\010\000\000\004\000\114\000\210\010\000\000" |
18 |
|
|
"\214\010\000\000\050\361\215\236\006\000\000\000\214\010\000\000" |
19 |
|
|
"\006\000\114\000\224\010\000\000\240\010\000\000\324\265\002\000" |
20 |
|
|
"\377\377\377\377\240\010\000\000\001\000\114\000\244\010\000\000" |
21 |
|
|
"\250\010\000\000\336\065\354\055\003\000\000\000\250\010\000\000" |
22 |
|
|
"\015\000\166\000\270\010\000\000\127\011\000\000\260\267\044\060" |
23 |
|
|
"\002\000\000\000\127\011\000\000\006\000\114\000\140\011\000\000" |
24 |
|
|
"\144\011\000\000\164\145\143\154\141\055\166\151\145\167\056\165" |
25 |
|
|
"\151\000\000\000\000\000\000\000\242\001\000\000\000\000\000\000" |
26 |
|
|
"\074\077\170\155\154\040\166\145\162\163\151\157\156\075\042\061" |
27 |
|
|
"\056\060\042\040\145\156\143\157\144\151\156\147\075\042\125\124" |
28 |
|
|
"\106\055\070\042\077\076\012\074\151\156\164\145\162\146\141\143" |
29 |
|
|
"\145\076\074\164\145\155\160\154\141\164\145\040\143\154\141\163" |
30 |
|
|
"\163\075\042\124\145\143\154\141\126\151\145\167\042\040\160\141" |
31 |
|
|
"\162\145\156\164\075\042\107\164\153\127\151\144\147\145\164\042" |
32 |
|
|
"\076\074\143\150\151\154\144\076\074\157\142\152\145\143\164\040" |
33 |
|
|
"\143\154\141\163\163\075\042\107\164\153\101\163\160\145\143\164" |
34 |
|
|
"\106\162\141\155\145\042\076\074\143\150\151\154\144\076\074\157" |
35 |
|
|
"\142\152\145\143\164\040\143\154\141\163\163\075\042\107\164\153" |
36 |
|
|
"\107\162\151\144\042\040\151\144\075\042\147\162\151\144\042\076" |
37 |
|
|
"\074\160\162\157\160\145\162\164\171\040\156\141\155\145\075\042" |
38 |
|
|
"\143\157\154\165\155\156\055\150\157\155\157\147\145\156\145\157" |
39 |
|
|
"\165\163\042\076\164\162\165\145\074\057\160\162\157\160\145\162" |
40 |
|
|
"\164\171\076\074\160\162\157\160\145\162\164\171\040\156\141\155" |
41 |
|
|
"\145\075\042\143\157\154\165\155\156\055\163\160\141\143\151\156" |
42 |
|
|
"\147\042\076\066\074\057\160\162\157\160\145\162\164\171\076\074" |
43 |
|
|
"\160\162\157\160\145\162\164\171\040\156\141\155\145\075\042\162" |
44 |
|
|
"\157\167\055\150\157\155\157\147\145\156\145\157\165\163\042\076" |
45 |
|
|
"\164\162\165\145\074\057\160\162\157\160\145\162\164\171\076\074" |
46 |
|
|
"\160\162\157\160\145\162\164\171\040\156\141\155\145\075\042\162" |
47 |
|
|
"\157\167\055\163\160\141\143\151\156\147\042\076\066\074\057\160" |
48 |
|
|
"\162\157\160\145\162\164\171\076\074\057\157\142\152\145\143\164" |
49 |
|
|
"\076\074\057\143\150\151\154\144\076\074\057\157\142\152\145\143" |
50 |
|
|
"\164\076\074\057\143\150\151\154\144\076\074\057\164\145\155\160" |
51 |
|
|
"\154\141\164\145\076\074\057\151\156\164\145\162\146\141\143\145" |
52 |
|
|
"\076\012\000\000\050\165\165\141\171\051\164\145\143\154\141\055" |
53 |
|
|
"\167\151\156\144\157\167\056\165\151\000\000\000\000\000\000\000" |
54 |
|
|
"\263\005\000\000\000\000\000\000\074\077\170\155\154\040\166\145" |
55 |
|
|
"\162\163\151\157\156\075\042\061\056\060\042\040\145\156\143\157" |
56 |
|
|
"\144\151\156\147\075\042\125\124\106\055\070\042\077\076\012\074" |
57 |
|
|
"\151\156\164\145\162\146\141\143\145\076\074\162\145\161\165\151" |
58 |
|
|
"\162\145\163\040\154\151\142\075\042\147\164\153\042\040\166\145" |
59 |
|
|
"\162\163\151\157\156\075\042\064\056\060\042\057\076\074\157\142" |
60 |
|
|
"\152\145\143\164\040\143\154\141\163\163\075\042\101\144\167\127" |
61 |
|
|
"\151\156\144\157\167\042\040\151\144\075\042\167\151\156\144\157" |
62 |
|
|
"\167\042\076\074\143\150\151\154\144\076\074\157\142\152\145\143" |
63 |
|
|
"\164\040\143\154\141\163\163\075\042\107\164\153\123\150\157\162" |
64 |
|
|
"\164\143\165\164\103\157\156\164\162\157\154\154\145\162\042\076" |
65 |
|
|
"\074\160\162\157\160\145\162\164\171\040\156\141\155\145\075\042" |
66 |
|
|
"\163\143\157\160\145\042\076\155\141\156\141\147\145\144\074\057" |
67 |
|
|
"\160\162\157\160\145\162\164\171\076\074\143\150\151\154\144\076" |
68 |
|
|
"\074\157\142\152\145\143\164\040\143\154\141\163\163\075\042\107" |
69 |
|
|
"\164\153\123\150\157\162\164\143\165\164\042\076\074\160\162\157" |
70 |
|
|
"\160\145\162\164\171\040\156\141\155\145\075\042\164\162\151\147" |
71 |
|
|
"\147\145\162\042\076\105\163\143\141\160\145\074\057\160\162\157" |
72 |
|
|
"\160\145\162\164\171\076\074\160\162\157\160\145\162\164\171\040" |
73 |
|
|
"\156\141\155\145\075\042\141\143\164\151\157\156\042\076\141\143" |
74 |
|
|
"\164\151\157\156\050\167\151\156\144\157\167\056\143\154\157\163" |
75 |
|
|
"\145\051\074\057\160\162\157\160\145\162\164\171\076\074\057\157" |
76 |
|
|
"\142\152\145\143\164\076\074\057\143\150\151\154\144\076\074\143" |
77 |
|
|
"\150\151\154\144\076\074\157\142\152\145\143\164\040\143\154\141" |
78 |
|
|
"\163\163\075\042\107\164\153\123\150\157\162\164\143\165\164\042" |
79 |
|
|
"\076\074\160\162\157\160\145\162\164\171\040\156\141\155\145\075" |
80 |
|
|
"\042\164\162\151\147\147\145\162\042\076\046\154\164\073\143\164" |
81 |
|
|
"\162\154\046\147\164\073\121\074\057\160\162\157\160\145\162\164" |
82 |
|
|
"\171\076\074\160\162\157\160\145\162\164\171\040\156\141\155\145" |
83 |
|
|
"\075\042\141\143\164\151\157\156\042\076\141\143\164\151\157\156" |
84 |
|
|
"\050\167\151\156\144\157\167\056\143\154\157\163\145\051\074\057" |
85 |
|
|
"\160\162\157\160\145\162\164\171\076\074\057\157\142\152\145\143" |
86 |
|
|
"\164\076\074\057\143\150\151\154\144\076\074\057\157\142\152\145" |
87 |
|
|
"\143\164\076\074\057\143\150\151\154\144\076\074\143\150\151\154" |
88 |
|
|
"\144\076\074\157\142\152\145\143\164\040\143\154\141\163\163\075" |
89 |
|
|
"\042\101\144\167\124\157\157\154\142\141\162\126\151\145\167\042" |
90 |
|
|
"\076\074\143\150\151\154\144\040\164\171\160\145\075\042\164\157" |
91 |
|
|
"\160\042\076\074\157\142\152\145\143\164\040\143\154\141\163\163" |
92 |
|
|
"\075\042\101\144\167\110\145\141\144\145\162\102\141\162\042\057" |
93 |
|
|
"\076\074\057\143\150\151\154\144\076\074\160\162\157\160\145\162" |
94 |
|
|
"\164\171\040\156\141\155\145\075\042\143\157\156\164\145\156\164" |
95 |
|
|
"\042\076\074\157\142\152\145\143\164\040\143\154\141\163\163\075" |
96 |
|
|
"\042\107\164\153\101\163\160\145\143\164\106\162\141\155\145\042" |
97 |
|
|
"\076\074\143\150\151\154\144\076\074\157\142\152\145\143\164\040" |
98 |
|
|
"\143\154\141\163\163\075\042\107\164\153\102\157\170\042\076\074" |
99 |
|
|
"\143\150\151\154\144\076\074\157\142\152\145\143\164\040\143\154" |
100 |
|
|
"\141\163\163\075\042\124\145\143\154\141\126\151\145\167\042\040" |
101 |
|
|
"\151\144\075\042\166\151\145\167\042\076\074\160\162\157\160\145" |
102 |
|
|
"\162\164\171\040\156\141\155\145\075\042\166\145\170\160\141\156" |
103 |
|
|
"\144\042\076\164\162\165\145\074\057\160\162\157\160\145\162\164" |
104 |
|
|
"\171\076\074\057\157\142\152\145\143\164\076\074\057\143\150\151" |
105 |
|
|
"\154\144\076\074\143\150\151\154\144\076\074\157\142\152\145\143" |
106 |
|
|
"\164\040\143\154\141\163\163\075\042\107\164\153\102\157\170\042" |
107 |
|
|
"\040\151\144\075\042\154\145\166\145\154\163\042\076\074\160\162" |
108 |
|
|
"\157\160\145\162\164\171\040\156\141\155\145\075\042\150\141\154" |
109 |
|
|
"\151\147\156\042\076\143\145\156\164\145\162\074\057\160\162\157" |
110 |
|
|
"\160\145\162\164\171\076\074\160\162\157\160\145\162\164\171\040" |
111 |
|
|
"\156\141\155\145\075\042\163\160\141\143\151\156\147\042\076\066" |
112 |
|
|
"\074\057\160\162\157\160\145\162\164\171\076\074\160\162\157\160" |
113 |
|
|
"\145\162\164\171\040\156\141\155\145\075\042\157\162\151\145\156" |
114 |
|
|
"\164\141\164\151\157\156\042\076\150\157\162\151\172\157\156\164" |
115 |
|
|
"\141\154\074\057\160\162\157\160\145\162\164\171\076\074\057\157" |
116 |
|
|
"\142\152\145\143\164\076\074\057\143\150\151\154\144\076\074\160" |
117 |
|
|
"\162\157\160\145\162\164\171\040\156\141\155\145\075\042\157\162" |
118 |
|
|
"\151\145\156\164\141\164\151\157\156\042\076\166\145\162\164\151" |
119 |
|
|
"\143\141\154\074\057\160\162\157\160\145\162\164\171\076\074\160" |
120 |
|
|
"\162\157\160\145\162\164\171\040\156\141\155\145\075\042\163\160" |
121 |
|
|
"\141\143\151\156\147\042\076\061\070\074\057\160\162\157\160\145" |
122 |
|
|
"\162\164\171\076\074\160\162\157\160\145\162\164\171\040\156\141" |
123 |
|
|
"\155\145\075\042\166\145\170\160\141\156\144\042\076\164\162\165" |
124 |
|
|
"\145\074\057\160\162\157\160\145\162\164\171\076\074\057\157\142" |
125 |
|
|
"\152\145\143\164\076\074\057\143\150\151\154\144\076\074\160\162" |
126 |
|
|
"\157\160\145\162\164\171\040\156\141\155\145\075\042\155\141\162" |
127 |
|
|
"\147\151\156\055\163\164\141\162\164\042\076\061\070\074\057\160" |
128 |
|
|
"\162\157\160\145\162\164\171\076\074\160\162\157\160\145\162\164" |
129 |
|
|
"\171\040\156\141\155\145\075\042\155\141\162\147\151\156\055\145" |
130 |
|
|
"\156\144\042\076\061\070\074\057\160\162\157\160\145\162\164\171" |
131 |
|
|
"\076\074\160\162\157\160\145\162\164\171\040\156\141\155\145\075" |
132 |
|
|
"\042\155\141\162\147\151\156\055\164\157\160\042\076\066\074\057" |
133 |
|
|
"\160\162\157\160\145\162\164\171\076\074\160\162\157\160\145\162" |
134 |
|
|
"\164\171\040\156\141\155\145\075\042\155\141\162\147\151\156\055" |
135 |
|
|
"\142\157\164\164\157\155\042\076\061\070\074\057\160\162\157\160" |
136 |
|
|
"\145\162\164\171\076\074\057\157\142\152\145\143\164\076\074\057" |
137 |
|
|
"\160\162\157\160\145\162\164\171\076\074\057\157\142\152\145\143" |
138 |
|
|
"\164\076\074\057\143\150\151\154\144\076\074\160\162\157\160\145" |
139 |
|
|
"\162\164\171\040\156\141\155\145\075\042\144\145\146\141\165\154" |
140 |
|
|
"\164\055\167\151\144\164\150\042\076\070\060\060\074\057\160\162" |
141 |
|
|
"\157\160\145\162\164\171\076\074\160\162\157\160\145\162\164\171" |
142 |
|
|
"\040\156\141\155\145\075\042\144\145\146\141\165\154\164\055\150" |
143 |
|
|
"\145\151\147\150\164\042\076\064\060\060\074\057\160\162\157\160" |
144 |
|
|
"\145\162\164\171\076\074\057\157\142\152\145\143\164\076\074\057" |
145 |
|
|
"\151\156\164\145\162\146\141\143\145\076\012\000\000\050\165\165" |
146 |
|
|
"\141\171\051\157\162\147\057\000\006\000\000\000\164\145\143\154" |
147 |
|
|
"\141\057\000\000\005\000\000\000\000\000\000\000\001\000\000\000" |
148 |
|
|
"\057\000\000\000\002\000\000\000\164\145\143\154\141\055\153\145" |
149 |
|
|
"\171\056\143\163\163\000\000\000\217\000\000\000\000\000\000\000" |
150 |
|
|
"\142\165\164\164\157\156\056\164\145\143\154\141\055\153\145\171" |
151 |
|
|
"\040\173\012\040\040\040\040\146\157\156\164\055\167\145\151\147" |
152 |
|
|
"\150\164\072\040\064\060\060\073\012\175\012\012\142\165\164\164" |
153 |
|
|
"\157\156\056\164\145\143\154\141\055\153\145\171\072\163\145\154" |
154 |
|
|
"\145\143\164\145\144\040\173\012\040\040\040\040\142\141\143\153" |
155 |
|
|
"\147\162\157\165\156\144\055\143\157\154\157\162\072\040\100\141" |
156 |
|
|
"\143\143\145\156\164\137\142\147\137\143\157\154\157\162\073\012" |
157 |
|
|
"\040\040\040\040\143\157\154\157\162\072\040\100\141\143\143\145" |
158 |
|
|
"\156\164\137\146\147\137\143\157\154\157\162\073\012\175\012\000" |
159 |
|
|
"\000\050\165\165\141\171\051\147\156\157\155\145\057\000\000\000" |
160 |
|
|
"\003\000\000\000" }; |
161 |
|
|
|
162 |
|
|
static GStaticResource static_resource = { tecla_resource_data.data, sizeof (tecla_resource_data.data) - 1 /* nul terminator */, NULL, NULL, NULL }; |
163 |
|
|
|
164 |
|
|
G_GNUC_INTERNAL |
165 |
|
|
GResource *tecla_get_resource (void); |
166 |
|
✗ |
GResource *tecla_get_resource (void) |
167 |
|
|
{ |
168 |
|
✗ |
return g_static_resource_get_resource (&static_resource); |
169 |
|
|
} |
170 |
|
|
/* GLIB - Library of useful routines for C programming |
171 |
|
|
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
172 |
|
|
* |
173 |
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later |
174 |
|
|
* |
175 |
|
|
* This library is free software; you can redistribute it and/or |
176 |
|
|
* modify it under the terms of the GNU Lesser General Public |
177 |
|
|
* License as published by the Free Software Foundation; either |
178 |
|
|
* version 2.1 of the License, or (at your option) any later version. |
179 |
|
|
* |
180 |
|
|
* This library is distributed in the hope that it will be useful, |
181 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
182 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
183 |
|
|
* Lesser General Public License for more details. |
184 |
|
|
* |
185 |
|
|
* You should have received a copy of the GNU Lesser General Public |
186 |
|
|
* License along with this library; if not, see <http://www.gnu.org/licenses/>. |
187 |
|
|
*/ |
188 |
|
|
|
189 |
|
|
/* |
190 |
|
|
* Modified by the GLib Team and others 1997-2000. See the AUTHORS |
191 |
|
|
* file for a list of people on the GLib Team. See the ChangeLog |
192 |
|
|
* files for a list of changes. These files are distributed with |
193 |
|
|
* GLib at ftp://ftp.gtk.org/pub/gtk/. |
194 |
|
|
*/ |
195 |
|
|
|
196 |
|
|
#ifndef __G_CONSTRUCTOR_H__ |
197 |
|
|
#define __G_CONSTRUCTOR_H__ |
198 |
|
|
|
199 |
|
|
/* |
200 |
|
|
If G_HAS_CONSTRUCTORS is true then the compiler support *both* constructors and |
201 |
|
|
destructors, in a usable way, including e.g. on library unload. If not you're on |
202 |
|
|
your own. |
203 |
|
|
|
204 |
|
|
Some compilers need #pragma to handle this, which does not work with macros, |
205 |
|
|
so the way you need to use this is (for constructors): |
206 |
|
|
|
207 |
|
|
#ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA |
208 |
|
|
#pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(my_constructor) |
209 |
|
|
#endif |
210 |
|
|
G_DEFINE_CONSTRUCTOR(my_constructor) |
211 |
|
|
static void my_constructor(void) { |
212 |
|
|
... |
213 |
|
|
} |
214 |
|
|
|
215 |
|
|
*/ |
216 |
|
|
|
217 |
|
|
#ifndef __GTK_DOC_IGNORE__ |
218 |
|
|
|
219 |
|
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) |
220 |
|
|
|
221 |
|
|
#define G_HAS_CONSTRUCTORS 1 |
222 |
|
|
|
223 |
|
|
#define G_DEFINE_CONSTRUCTOR(_func) static void __attribute__((constructor)) _func (void); |
224 |
|
|
#define G_DEFINE_DESTRUCTOR(_func) static void __attribute__((destructor)) _func (void); |
225 |
|
|
|
226 |
|
|
#elif defined (_MSC_VER) |
227 |
|
|
|
228 |
|
|
/* |
229 |
|
|
* Only try to include gslist.h if not already included via glib.h, |
230 |
|
|
* so that items using gconstructor.h outside of GLib (such as |
231 |
|
|
* GResources) continue to build properly. |
232 |
|
|
*/ |
233 |
|
|
#ifndef __G_LIB_H__ |
234 |
|
|
#include "gslist.h" |
235 |
|
|
#endif |
236 |
|
|
|
237 |
|
|
#include <stdlib.h> |
238 |
|
|
|
239 |
|
|
#define G_HAS_CONSTRUCTORS 1 |
240 |
|
|
|
241 |
|
|
/* We do some weird things to avoid the constructors being optimized |
242 |
|
|
* away on VS2015 if WholeProgramOptimization is enabled. First we |
243 |
|
|
* make a reference to the array from the wrapper to make sure its |
244 |
|
|
* references. Then we use a pragma to make sure the wrapper function |
245 |
|
|
* symbol is always included at the link stage. Also, the symbols |
246 |
|
|
* need to be extern (but not dllexport), even though they are not |
247 |
|
|
* really used from another object file. |
248 |
|
|
*/ |
249 |
|
|
|
250 |
|
|
/* We need to account for differences between the mangling of symbols |
251 |
|
|
* for x86 and x64/ARM/ARM64 programs, as symbols on x86 are prefixed |
252 |
|
|
* with an underscore but symbols on x64/ARM/ARM64 are not. |
253 |
|
|
*/ |
254 |
|
|
#ifdef _M_IX86 |
255 |
|
|
#define G_MSVC_SYMBOL_PREFIX "_" |
256 |
|
|
#else |
257 |
|
|
#define G_MSVC_SYMBOL_PREFIX "" |
258 |
|
|
#endif |
259 |
|
|
|
260 |
|
|
#define G_DEFINE_CONSTRUCTOR(_func) G_MSVC_CTOR (_func, G_MSVC_SYMBOL_PREFIX) |
261 |
|
|
#define G_DEFINE_DESTRUCTOR(_func) G_MSVC_DTOR (_func, G_MSVC_SYMBOL_PREFIX) |
262 |
|
|
|
263 |
|
|
#define G_MSVC_CTOR(_func,_sym_prefix) \ |
264 |
|
|
static void _func(void); \ |
265 |
|
|
extern int (* _array ## _func)(void); \ |
266 |
|
|
int _func ## _wrapper(void); \ |
267 |
|
|
int _func ## _wrapper(void) { _func(); g_slist_find (NULL, _array ## _func); return 0; } \ |
268 |
|
|
__pragma(comment(linker,"/include:" _sym_prefix # _func "_wrapper")) \ |
269 |
|
|
__pragma(section(".CRT$XCU",read)) \ |
270 |
|
|
__declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _wrapper; |
271 |
|
|
|
272 |
|
|
#define G_MSVC_DTOR(_func,_sym_prefix) \ |
273 |
|
|
static void _func(void); \ |
274 |
|
|
extern int (* _array ## _func)(void); \ |
275 |
|
|
int _func ## _constructor(void); \ |
276 |
|
|
int _func ## _constructor(void) { atexit (_func); g_slist_find (NULL, _array ## _func); return 0; } \ |
277 |
|
|
__pragma(comment(linker,"/include:" _sym_prefix # _func "_constructor")) \ |
278 |
|
|
__pragma(section(".CRT$XCU",read)) \ |
279 |
|
|
__declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _constructor; |
280 |
|
|
|
281 |
|
|
#elif defined(__SUNPRO_C) |
282 |
|
|
|
283 |
|
|
/* This is not tested, but i believe it should work, based on: |
284 |
|
|
* http://opensource.apple.com/source/OpenSSL098/OpenSSL098-35/src/fips/fips_premain.c |
285 |
|
|
*/ |
286 |
|
|
|
287 |
|
|
#define G_HAS_CONSTRUCTORS 1 |
288 |
|
|
|
289 |
|
|
#define G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA 1 |
290 |
|
|
#define G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA 1 |
291 |
|
|
|
292 |
|
|
#define G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(_func) \ |
293 |
|
|
init(_func) |
294 |
|
|
#define G_DEFINE_CONSTRUCTOR(_func) \ |
295 |
|
|
static void _func(void); |
296 |
|
|
|
297 |
|
|
#define G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(_func) \ |
298 |
|
|
fini(_func) |
299 |
|
|
#define G_DEFINE_DESTRUCTOR(_func) \ |
300 |
|
|
static void _func(void); |
301 |
|
|
|
302 |
|
|
#else |
303 |
|
|
|
304 |
|
|
/* constructors not supported for this compiler */ |
305 |
|
|
|
306 |
|
|
#endif |
307 |
|
|
|
308 |
|
|
#endif /* __GTK_DOC_IGNORE__ */ |
309 |
|
|
#endif /* __G_CONSTRUCTOR_H__ */ |
310 |
|
|
|
311 |
|
|
#ifdef G_HAS_CONSTRUCTORS |
312 |
|
|
|
313 |
|
|
#ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA |
314 |
|
|
#pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(teclaresource_constructor) |
315 |
|
|
#endif |
316 |
|
|
G_DEFINE_CONSTRUCTOR(teclaresource_constructor) |
317 |
|
|
#ifdef G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA |
318 |
|
|
#pragma G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(teclaresource_destructor) |
319 |
|
|
#endif |
320 |
|
|
G_DEFINE_DESTRUCTOR(teclaresource_destructor) |
321 |
|
|
|
322 |
|
|
#else |
323 |
|
|
#warning "Constructor not supported on this compiler, linking in resources will not work" |
324 |
|
|
#endif |
325 |
|
|
|
326 |
|
✗ |
static void teclaresource_constructor (void) |
327 |
|
|
{ |
328 |
|
✗ |
g_static_resource_init (&static_resource); |
329 |
|
✗ |
} |
330 |
|
|
|
331 |
|
✗ |
static void teclaresource_destructor (void) |
332 |
|
|
{ |
333 |
|
✗ |
g_static_resource_fini (&static_resource); |
334 |
|
✗ |
} |
335 |
|
|
|