Bug Summary

File:_build/../libbean/bean-utils.c
Warning:line 275, column 11
This statement is never executed

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -cc1 -triple x86_64-pc-linux-gnu -O2 -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name bean-utils.c -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/rootdir/_build -fcoverage-compilation-dir=/rootdir/_build -resource-dir /usr/lib/llvm-21/lib/clang/21 -I libbean/libean-2.0.so.0.100.0.p -I libbean -I ../libbean -I . -I .. -I /usr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I /usr/include/sysprof-6 -I /usr/include/libmount -I /usr/include/blkid -D _FILE_OFFSET_BITS=64 -D HAVE_CONFIG_H -D G_LOG_DOMAIN="libbean" -D DATADIR="/usr/local/share" -D LIBDIR="/usr/local/lib/x86_64-linux-gnu" -internal-isystem /usr/lib/llvm-21/lib/clang/21/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/15/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -ferror-limit 19 -fvisibility=hidden -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcolor-diagnostics -vectorize-loops -vectorize-slp -analyzer-checker deadcode.DeadStores -analyzer-checker security.ArrayBound -analyzer-checker unix.cstring.NotNullTerminated -analyzer-checker alpha.deadcode.UnreachableCode -analyzer-checker alpha.core.CastToStruct -analyzer-checker alpha.security.ReturnPtrRange -analyzer-checker alpha.unix.SimpleStream -analyzer-checker alpha.unix.cstring.BufferOverlap -analyzer-checker alpha.unix.cstring.OutOfBounds -analyzer-checker alpha.core.FixedAddr -analyzer-output=html -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /rootdir/html-report/2025-12-27-002155-10445-1 -x c ../libbean/bean-utils.c
1/*
2 * bean-utils.c
3 * This file is part of libbean
4 *
5 * Copyright (C) 2010 Steve Frécinaux
6 * Copyright (C) 2011-2017 Garrett Regier
7 *
8 * libbean is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * libbean is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22
23#ifdef HAVE_CONFIG_H1
24#include <config.h>
25#endif
26
27#include <string.h>
28
29#include <gobject/gvaluecollector.h>
30
31#include "bean-utils.h"
32
33static const gchar *all_plugin_loaders[] = {
34 "c", "lua5.1", "python", "python3"
35};
36
37static const gchar *all_plugin_loader_modules[] = {
38 "cloader", "lua51loader", "pythonloader", "python3loader"
39};
40
41static const gint conflicting_plugin_loaders[BEAN_UTILS_N_LOADERS4][2] = {
42 { -1, -1 }, /* c => {} */
43 { -1, -1 }, /* lua5.1 => {} */
44 { 3, -1 }, /* python => { python3 } */
45 { 2, -1 } /* python3 => { python } */
46};
47
48G_STATIC_ASSERT (G_N_ELEMENTS (all_plugin_loaders) == BEAN_UTILS_N_LOADERS)_Static_assert ((sizeof (all_plugin_loaders) / sizeof ((all_plugin_loaders
)[0])) == 4, "Expression evaluates to false")
;
49G_STATIC_ASSERT (G_N_ELEMENTS (all_plugin_loader_modules) == BEAN_UTILS_N_LOADERS)_Static_assert ((sizeof (all_plugin_loader_modules) / sizeof (
(all_plugin_loader_modules)[0])) == 4, "Expression evaluates to false"
)
;
50G_STATIC_ASSERT (G_N_ELEMENTS (conflicting_plugin_loaders) == BEAN_UTILS_N_LOADERS)_Static_assert ((sizeof (conflicting_plugin_loaders) / sizeof
((conflicting_plugin_loaders)[0])) == 4, "Expression evaluates to false"
)
;
51
52static
53G_DEFINE_QUARK (bean-extension-base-class-and-interfaces-cache,GQuark exten_type_cache_quark (void) { static GQuark q; if (__builtin_expect
(__extension__ ({ int _g_boolean_var_23 = 0; if (q == 0) _g_boolean_var_23
= 1; _g_boolean_var_23; }), 0)) q = g_quark_from_static_string
("bean-extension-base-class-and-interfaces-cache"); return q
; }
54 exten_type_cache)GQuark exten_type_cache_quark (void) { static GQuark q; if (__builtin_expect
(__extension__ ({ int _g_boolean_var_23 = 0; if (q == 0) _g_boolean_var_23
= 1; _g_boolean_var_23; }), 0)) q = g_quark_from_static_string
("bean-extension-base-class-and-interfaces-cache"); return q
; }
55
56static void
57add_all_prerequisites (GType iface_type,
58 GType *base_type,
59 GPtrArray *ifaces)
60{
61 GType *prereq;
62 guint n_prereq;
63 guint i;
64
65 g_ptr_array_add (ifaces, g_type_default_interface_ref (iface_type));
66
67 prereq = g_type_interface_prerequisites (iface_type, &n_prereq);
68
69 for (i = 0; i < n_prereq; ++i)
70 {
71 if (G_TYPE_IS_INTERFACE (prereq[i])((g_type_fundamental (prereq[i])) == ((GType) ((2) << (
2))))
)
72 {
73 add_all_prerequisites (prereq[i], base_type, ifaces);
74 continue;
75 }
76
77 if (!G_TYPE_IS_OBJECT (prereq[i])((g_type_fundamental (prereq[i])) == ((GType) ((20) << (
2))))
)
78 continue;
79
80 if (*base_type != G_TYPE_INVALID((GType) ((0) << (2))))
81 {
82 /* We already have the descendant GType */
83 if (g_type_is_a (*base_type, prereq[i])((*base_type) == (prereq[i]) || (g_type_is_a) ((*base_type), (
prereq[i])))
)
84 continue;
85
86 /* Neither GType are descendant of the other, this is an
87 * error and GObject will not be able to create an object
88 */
89 g_warn_if_fail (g_type_is_a (prereq[i], *base_type))do { if (__builtin_expect (__extension__ ({ int _g_boolean_var_24
= 0; if (((prereq[i]) == (*base_type) || (g_type_is_a) ((prereq
[i]), (*base_type)))) _g_boolean_var_24 = 1; _g_boolean_var_24
; }), 1)) ; else g_warn_message ("libbean", "../libbean/bean-utils.c"
, 89, ((const char*) (__func__)), "g_type_is_a (prereq[i], *base_type)"
); } while (0)
;
90 }
91
92 *base_type = prereq[i];
93 }
94
95 g_free (prereq);
96}
97
98static gpointer *
99find_base_class_and_interfaces (GType exten_type)
100{
101 GPtrArray *results;
102 GType base_type = G_TYPE_INVALID((GType) ((0) << (2)));
103 static GMutex cache_lock;
104 gpointer *data, *cached_data;
105
106 results = g_ptr_array_new ();
107
108 /* This is used for the GObjectClass of the base_type */
109 g_ptr_array_add (results, NULL((void*)0));
110
111 if (G_TYPE_IS_INTERFACE (exten_type)((g_type_fundamental (exten_type)) == ((GType) ((2) << (
2))))
)
112 {
113 add_all_prerequisites (exten_type, &base_type, results);
114 }
115 else
116 {
117 gint i;
118 GType *interfaces;
119
120 interfaces = g_type_interfaces (exten_type, NULL((void*)0));
121 for (i = 0; interfaces[i] != G_TYPE_INVALID((GType) ((0) << (2))); ++i)
122 add_all_prerequisites (interfaces[i], &base_type, results);
123
124 base_type = exten_type;
125
126 g_free (interfaces);
127 }
128
129 if (base_type != G_TYPE_INVALID((GType) ((0) << (2))))
130 g_ptr_array_index (results, 0)((results)->pdata)[0] = g_type_class_ref (base_type);
131
132 g_ptr_array_add (results, NULL((void*)0));
133 data = g_ptr_array_free (results, FALSE(0));
134
135 g_mutex_lock (&cache_lock);
136 cached_data = g_type_get_qdata (exten_type, exten_type_cache_quark ());
137
138 if (cached_data != NULL((void*)0))
139 {
140 g_free (data);
141 data = cached_data;
142 }
143 else
144 {
145 g_type_set_qdata (exten_type, exten_type_cache_quark (), data);
146 }
147
148 g_mutex_unlock (&cache_lock);
149 return data;
150}
151
152static inline gpointer *
153get_base_class_and_interfaces (GType exten_type,
154 GObjectClass **base_class)
155{
156 gpointer *data;
157
158 data = g_type_get_qdata (exten_type, exten_type_cache_quark ());
159 if (G_UNLIKELY (data == NULL)(__builtin_expect (__extension__ ({ int _g_boolean_var_25 = 0
; if (data == ((void*)0)) _g_boolean_var_25 = 1; _g_boolean_var_25
; }), 0))
)
160 data = find_base_class_and_interfaces (exten_type);
161
162 *base_class = data[0];
163 return &data[1];
164}
165
166static inline GParamSpec *
167find_param_spec_for_prerequisites (const gchar *name,
168 GObjectClass *base_class,
169 gpointer *ifaces)
170{
171 guint i;
172 GParamSpec *pspec = NULL((void*)0);
173
174 if (base_class != NULL((void*)0))
175 pspec = g_object_class_find_property (base_class, name);
176
177 for (i = 0; ifaces[i] != NULL((void*)0) && pspec == NULL((void*)0); ++i)
178 pspec = g_object_interface_find_property (ifaces[i], name);
179
180 return pspec;
181}
182
183gboolean
184bean_utils_properties_array_to_parameter_list (GType exten_type,
185 guint n_properties,
186 const gchar **prop_names,
187 const GValue *prop_values,
188 GParameter *parameters)
189{
190 guint i;
191 gpointer *ifaces;
192 GObjectClass *base_class;
193
194 g_return_val_if_fail (n_properties == 0 || prop_names != NULL, FALSE)do { if ((__builtin_expect (__extension__ ({ int _g_boolean_var_26
= 0; if (n_properties == 0 || prop_names != ((void*)0)) _g_boolean_var_26
= 1; _g_boolean_var_26; }), 1))) { } else { g_return_if_fail_warning
("libbean", ((const char*) (__func__)), "n_properties == 0 || prop_names != NULL"
); return ((0)); } } while (0)
;
195 g_return_val_if_fail (n_properties == 0 || prop_values != NULL, FALSE)do { if ((__builtin_expect (__extension__ ({ int _g_boolean_var_27
= 0; if (n_properties == 0 || prop_values != ((void*)0)) _g_boolean_var_27
= 1; _g_boolean_var_27; }), 1))) { } else { g_return_if_fail_warning
("libbean", ((const char*) (__func__)), "n_properties == 0 || prop_values != NULL"
); return ((0)); } } while (0)
;
196 g_return_val_if_fail (n_properties == 0 || parameters != NULL, FALSE)do { if ((__builtin_expect (__extension__ ({ int _g_boolean_var_28
= 0; if (n_properties == 0 || parameters != ((void*)0)) _g_boolean_var_28
= 1; _g_boolean_var_28; }), 1))) { } else { g_return_if_fail_warning
("libbean", ((const char*) (__func__)), "n_properties == 0 || parameters != NULL"
); return ((0)); } } while (0)
;
197
198 ifaces = get_base_class_and_interfaces (exten_type, &base_class);
199 memset (parameters, 0, sizeof (GParameter) * n_properties);
200 for (i = 0; i < n_properties; i++)
201 {
202 GParamSpec *pspec;
203 if (prop_names[i] == NULL((void*)0))
204 {
205 g_warning ("The property name at index %u should not be NULL.", i);
206 goto error;
207 }
208 if (!G_IS_VALUE (&prop_values[i])(((g_type_check_value ((GValue*) (&prop_values[i]))))))
209 {
210 g_warning ("The property value at index %u should be an initialized GValue.", i);
211 goto error;
212 }
213 pspec = find_param_spec_for_prerequisites (prop_names[i], base_class,
214 ifaces);
215 if (!pspec)
216 {
217 g_warning ("%s: type '%s' has no property named '%s'",
218 G_STRFUNC((const char*) (__func__)), g_type_name (exten_type), prop_names[i]);
219 goto error;
220 }
221
222 parameters[i].name = prop_names[i];
223
224 g_value_init (&parameters[i].value,
225 G_VALUE_TYPE (&prop_values[i])(((GValue*) (&prop_values[i]))->g_type));
226 g_value_copy (&prop_values[i], &parameters[i].value);
227 }
228 return TRUE(!(0));
229
230error:
231 n_properties = i;
232 for (i = 0; i < n_properties; i++)
233 g_value_unset (&parameters[i].value);
234 return FALSE(0);
235}
236
237gboolean
238bean_utils_valist_to_parameter_list (GType exten_type,
239 const gchar *first_property,
240 va_list args,
241 GParameter **params,
242 guint *n_params)
243{
244 gpointer *ifaces;
245 GObjectClass *base_class;
246 const gchar *name;
247 guint n_allocated_params;
248
249 g_return_val_if_fail (G_TYPE_IS_INTERFACE (exten_type) ||do { if ((__builtin_expect (__extension__ ({ int _g_boolean_var_29
= 0; if (((g_type_fundamental (exten_type)) == ((GType) ((2)
<< (2)))) || ((g_type_fundamental (exten_type)) == ((GType
) ((20) << (2))))) _g_boolean_var_29 = 1; _g_boolean_var_29
; }), 1))) { } else { g_return_if_fail_warning ("libbean", ((
const char*) (__func__)), "G_TYPE_IS_INTERFACE (exten_type) || G_TYPE_IS_OBJECT (exten_type)"
); return ((0)); } } while (0)
250 G_TYPE_IS_OBJECT (exten_type), FALSE)do { if ((__builtin_expect (__extension__ ({ int _g_boolean_var_29
= 0; if (((g_type_fundamental (exten_type)) == ((GType) ((2)
<< (2)))) || ((g_type_fundamental (exten_type)) == ((GType
) ((20) << (2))))) _g_boolean_var_29 = 1; _g_boolean_var_29
; }), 1))) { } else { g_return_if_fail_warning ("libbean", ((
const char*) (__func__)), "G_TYPE_IS_INTERFACE (exten_type) || G_TYPE_IS_OBJECT (exten_type)"
); return ((0)); } } while (0)
;
251
252 ifaces = get_base_class_and_interfaces (exten_type, &base_class);
253
254 *n_params = 0;
255 n_allocated_params = 16;
256 *params = g_new0 (GParameter, n_allocated_params)(GParameter *) (__extension__ ({ gsize __n = (gsize) (n_allocated_params
); gsize __s = sizeof (GParameter); gpointer __p; if (__s == 1
) __p = g_malloc0 (__n); else if (__builtin_constant_p (__n) &&
(__s == 0 || __n <= (9223372036854775807L *2UL+1UL) / __s
)) __p = g_malloc0 (__n * __s); else __p = g_malloc0_n (__n, __s
); __p; }))
;
257
258 name = first_property;
259 while (name)
260 {
261 gchar *error_msg = NULL((void*)0);
262 GParamSpec *pspec;
263
264 pspec = find_param_spec_for_prerequisites (name, base_class, ifaces);
265
266 if (!pspec)
267 {
268 g_warning ("%s: type '%s' has no property named '%s'",
269 G_STRFUNC((const char*) (__func__)), g_type_name (exten_type), name);
270 goto error;
271 }
272
273 if (*n_params >= n_allocated_params)
274 {
275 n_allocated_params += 16;
This statement is never executed
276 *params = g_renew (GParameter, *params, n_allocated_params)(GParameter *) (__extension__ ({ gsize __n = (gsize) (n_allocated_params
); gsize __s = sizeof (GParameter); gpointer __p = (gpointer)
(*params); if (__s == 1) __p = g_realloc (__p, __n); else if
(__builtin_constant_p (__n) && (__s == 0 || __n <=
(9223372036854775807L *2UL+1UL) / __s)) __p = g_realloc (__p
, __n * __s); else __p = g_realloc_n (__p, __n, __s); __p; })
)
;
277 memset (*params + (n_allocated_params - 16),
278 0, sizeof (GParameter) * 16);
279 }
280
281 (*params)[*n_params].name = name;
282 G_VALUE_COLLECT_INIT (&(*params)[*n_params].value, pspec->value_type,do { GTypeValueTable *g_vci_vtab; do { GValue *g_vci_val = (&
(*params)[*n_params].value); guint g_vci_flags = (0); const gchar
*g_vci_collect_format; GTypeCValue g_vci_cvalues[(8)] = { { 0
, }, }; guint g_vci_n_values = 0; g_vci_vtab = g_type_value_table_peek
(pspec->value_type); g_vci_collect_format = g_vci_vtab->
collect_format; g_vci_val->g_type = pspec->value_type; while
(*g_vci_collect_format) { GTypeCValue *g_vci_cvalue = g_vci_cvalues
+ g_vci_n_values++; switch (*g_vci_collect_format++) { case G_VALUE_COLLECT_INT
: g_vci_cvalue->v_int = __builtin_va_arg((args), gint); break
; case G_VALUE_COLLECT_LONG: g_vci_cvalue->v_long = __builtin_va_arg
((args), glong); break; case G_VALUE_COLLECT_INT64: g_vci_cvalue
->v_int64 = __builtin_va_arg((args), gint64); break; case G_VALUE_COLLECT_DOUBLE
: g_vci_cvalue->v_double = __builtin_va_arg((args), gdouble
); break; case G_VALUE_COLLECT_POINTER: g_vci_cvalue->v_pointer
= __builtin_va_arg((args), gpointer); break; default: do { g_assertion_message_expr
("libbean", "../libbean/bean-utils.c", 283, ((const char*) (
__func__)), ((void*)0)); } while (0); } } *(&error_msg) =
g_vci_vtab->collect_value (g_vci_val, g_vci_n_values, g_vci_cvalues
, g_vci_flags); } while (0); } while (0)
283 args, 0, &error_msg)do { GTypeValueTable *g_vci_vtab; do { GValue *g_vci_val = (&
(*params)[*n_params].value); guint g_vci_flags = (0); const gchar
*g_vci_collect_format; GTypeCValue g_vci_cvalues[(8)] = { { 0
, }, }; guint g_vci_n_values = 0; g_vci_vtab = g_type_value_table_peek
(pspec->value_type); g_vci_collect_format = g_vci_vtab->
collect_format; g_vci_val->g_type = pspec->value_type; while
(*g_vci_collect_format) { GTypeCValue *g_vci_cvalue = g_vci_cvalues
+ g_vci_n_values++; switch (*g_vci_collect_format++) { case G_VALUE_COLLECT_INT
: g_vci_cvalue->v_int = __builtin_va_arg((args), gint); break
; case G_VALUE_COLLECT_LONG: g_vci_cvalue->v_long = __builtin_va_arg
((args), glong); break; case G_VALUE_COLLECT_INT64: g_vci_cvalue
->v_int64 = __builtin_va_arg((args), gint64); break; case G_VALUE_COLLECT_DOUBLE
: g_vci_cvalue->v_double = __builtin_va_arg((args), gdouble
); break; case G_VALUE_COLLECT_POINTER: g_vci_cvalue->v_pointer
= __builtin_va_arg((args), gpointer); break; default: do { g_assertion_message_expr
("libbean", "../libbean/bean-utils.c", 283, ((const char*) (
__func__)), ((void*)0)); } while (0); } } *(&error_msg) =
g_vci_vtab->collect_value (g_vci_val, g_vci_n_values, g_vci_cvalues
, g_vci_flags); } while (0); } while (0)
;
284
285 (*n_params)++;
286
287 if (error_msg)
288 {
289 g_warning ("%s: %s", G_STRFUNC((const char*) (__func__)), error_msg);
290 g_free (error_msg);
291 goto error;
292 }
293
294 name = va_arg (args, gchar*)__builtin_va_arg(args, gchar*);
295 }
296
297 return TRUE(!(0));
298
299error:
300
301 for (; *n_params > 0; --(*n_params))
302 g_value_unset (&(*params)[*n_params].value);
303
304 g_free (*params);
305 return FALSE(0);
306}
307
308gint
309bean_utils_get_loader_id (const gchar *loader)
310{
311 gint i;
312 gsize len;
313 gchar lowercase[32];
314
315 len = strlen (loader);
316
317 /* No loader has a name that long */
318 if (len >= G_N_ELEMENTS (lowercase)(sizeof (lowercase) / sizeof ((lowercase)[0])))
319 return -1;
320
321 for (i = 0; i < len; ++i)
322 lowercase[i] = g_ascii_tolower (loader[i]);
323
324 lowercase[len] = '\0';
325
326 for (i = 0; i < G_N_ELEMENTS (all_plugin_loaders)(sizeof (all_plugin_loaders) / sizeof ((all_plugin_loaders)[0
]))
; ++i)
327 {
328 if (g_strcmp0 (lowercase, all_plugin_loaders[i]) == 0)
329 return i;
330 }
331
332 return -1;
333}
334
335const gchar *
336bean_utils_get_loader_from_id (gint loader_id)
337{
338 g_return_val_if_fail (loader_id >= 0, NULL)do { if ((__builtin_expect (__extension__ ({ int _g_boolean_var_30
= 0; if (loader_id >= 0) _g_boolean_var_30 = 1; _g_boolean_var_30
; }), 1))) { } else { g_return_if_fail_warning ("libbean", ((
const char*) (__func__)), "loader_id >= 0"); return (((void
*)0)); } } while (0)
;
339 g_return_val_if_fail (loader_id < BEAN_UTILS_N_LOADERS, NULL)do { if ((__builtin_expect (__extension__ ({ int _g_boolean_var_31
= 0; if (loader_id < 4) _g_boolean_var_31 = 1; _g_boolean_var_31
; }), 1))) { } else { g_return_if_fail_warning ("libbean", ((
const char*) (__func__)), "loader_id < BEAN_UTILS_N_LOADERS"
); return (((void*)0)); } } while (0)
;
340
341 return all_plugin_loaders[loader_id];
342}
343
344const gchar *
345bean_utils_get_loader_module_from_id (gint loader_id)
346{
347 g_return_val_if_fail (loader_id >= 0, NULL)do { if ((__builtin_expect (__extension__ ({ int _g_boolean_var_32
= 0; if (loader_id >= 0) _g_boolean_var_32 = 1; _g_boolean_var_32
; }), 1))) { } else { g_return_if_fail_warning ("libbean", ((
const char*) (__func__)), "loader_id >= 0"); return (((void
*)0)); } } while (0)
;
348 g_return_val_if_fail (loader_id < BEAN_UTILS_N_LOADERS, NULL)do { if ((__builtin_expect (__extension__ ({ int _g_boolean_var_33
= 0; if (loader_id < 4) _g_boolean_var_33 = 1; _g_boolean_var_33
; }), 1))) { } else { g_return_if_fail_warning ("libbean", ((
const char*) (__func__)), "loader_id < BEAN_UTILS_N_LOADERS"
); return (((void*)0)); } } while (0)
;
349
350 return all_plugin_loader_modules[loader_id];
351}
352
353const gint *
354bean_utils_get_conflicting_loaders_from_id (gint loader_id)
355{
356 g_return_val_if_fail (loader_id >= 0, NULL)do { if ((__builtin_expect (__extension__ ({ int _g_boolean_var_34
= 0; if (loader_id >= 0) _g_boolean_var_34 = 1; _g_boolean_var_34
; }), 1))) { } else { g_return_if_fail_warning ("libbean", ((
const char*) (__func__)), "loader_id >= 0"); return (((void
*)0)); } } while (0)
;
357 g_return_val_if_fail (loader_id < BEAN_UTILS_N_LOADERS, NULL)do { if ((__builtin_expect (__extension__ ({ int _g_boolean_var_35
= 0; if (loader_id < 4) _g_boolean_var_35 = 1; _g_boolean_var_35
; }), 1))) { } else { g_return_if_fail_warning ("libbean", ((
const char*) (__func__)), "loader_id < BEAN_UTILS_N_LOADERS"
); return (((void*)0)); } } while (0)
;
358
359 return conflicting_plugin_loaders[loader_id];
360}
361