Debian Codegraph @

src/OVAL/probes/SEAP/seap-error.c

raw symbols SCIP
1 /*
2 * Copyright 2009 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * Authors:
20 * "Daniel Kopecek" <[email protected]>
21 */
22
23 #include <config.h>cxx . . $ `<file>/build/config.h`/
24 #include "public/sexp.h"cxx . . $ `<file>/src/OVAL/probes/SEAP/public/sexp.h`/
25 #include "_seap-error.h"cxx . . $ `<file>/src/OVAL/probes/SEAP/_seap-error.h`/
26
27 SEAP_err_tcxx . . $ SEAP_err_t# *SEAP_error_newcxx . . $ SEAP_error_new(9133a26172ffc4d4).(void)
28 {
29 SEAP_err_tcxx . . $ SEAP_err_t# *e = malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(SEAP_err_tcxx . . $ SEAP_err_t#));
30
31 e->idcxx . . $ SEAP_err#id. = 0;
32 e->codecxx . . $ SEAP_err#code. = 0;
33 e->typecxx . . $ SEAP_err#type. = 0;
34 e->datacxx . . $ SEAP_err#data. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
35
36 return (e);
37 }
38
39 SEAP_err_tcxx . . $ SEAP_err_t# *SEAP_error_clonecxx . . $ SEAP_error_clone(ad94040245d9f919).(SEAP_err_tcxx . . $ SEAP_err_t# *e)
40 {
41 SEAP_err_tcxx . . $ SEAP_err_t# *n = SEAP_error_newcxx . . $ SEAP_error_new(9133a26172ffc4d4).();
42
43 n->idcxx . . $ SEAP_err#id. = e->idcxx . . $ SEAP_err#id.;
44 n->codecxx . . $ SEAP_err#code. = e->codecxx . . $ SEAP_err#code.;
45 n->typecxx . . $ SEAP_err#type. = e->typecxx . . $ SEAP_err#type.;
46 n->datacxx . . $ SEAP_err#data. = e->datacxx . . $ SEAP_err#data. ? SEXP_refcxx . . $ SEXP_ref(2f7f980afaaae0f0).(e->datacxx . . $ SEAP_err#data.) : NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
47
48 return (n);
49 }
50
51 void SEAP_error_freecxx . . $ SEAP_error_free(7b4adf922bbc6529).(SEAP_err_tcxx . . $ SEAP_err_t# *e)
52 {
53 if (e->datacxx . . $ SEAP_err#data. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
54 SEXP_freecxx . . $ SEXP_free(c6b28547479798f4).(e->datacxx . . $ SEAP_err#data.);
55 freecxx . . $ free(5d22bdacc48458e8).(e);
56 return;
57 }