Debian Codegraph @

src/common/rcm.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 2004 Dizzy
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
19 #include "common/setup_before.h"cxx . . $ `<file>/src/common/setup_before.h`/
20 #include "common/rcm.h"cxx . . $ `<file>/src/common/rcm.h`/
21
22 #include <cassert>
23
24 #include "common/xalloc.h"cxx . . $ `<file>/src/common/xalloc.h`/
25 #include "common/elist.h"cxx . . $ `<file>/src/common/elist.h`/
26 #include "common/setup_after.h"cxx . . $ `<file>/src/common/setup_after.h`/
27
28 namespace pvpgncxx . . $ pvpgn/
29 {
30
31 extern void rcm_initcxx . . $ pvpgn/rcm_init(4e7ec8a10da33803).(t_rcmcxx . . $ pvpgn/t_rcm# *rcm)
32 {
33 assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(rcm);
34
35 elist_initcxx . . $ `src/common/elist.h:193:9`!(&rcm->refs);
36 rcm->countcxx . . $ pvpgn/$anonymous_type_f1a35baf0b4bd22c_0#count. = 0;
37 }
38
39 extern void rcm_regref_initcxx . . $ pvpgn/rcm_regref_init(93d760c169d7201f).(t_rcm_regrefcxx . . $ pvpgn/t_rcm_regref# *regref, t_chref_cbcxx . . $ pvpgn/t_chref_cb# cb, void *data)
40 {
41 assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(regref);
42
43 elist_initcxx . . $ `src/common/elist.h:193:9`!(&regref->refs_link);
44 regref->chrefcxx . . $ pvpgn/$anonymous_type_f1a35baf0b4bd22c_1#chref. = cb;
45 regref->datacxx . . $ pvpgn/$anonymous_type_f1a35baf0b4bd22c_1#data. = data;
46 }
47
48 extern void rcm_getcxx . . $ pvpgn/rcm_get(549b400a20fa1303).(t_rcmcxx . . $ pvpgn/t_rcm# *rcm, t_rcm_regrefcxx . . $ pvpgn/t_rcm_regref# *regref)
49 {
50 assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(rcm);
51 assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(regref);
52
53 rcm->countcxx . . $ pvpgn/$anonymous_type_f1a35baf0b4bd22c_0#count.++;
54 elist_add_tailcxx . . $ pvpgn/elist_add_tail(3e860e19053b2cfa).(&rcm->refscxx . . $ pvpgn/$anonymous_type_f1a35baf0b4bd22c_0#refs., &regref->refs_linkcxx . . $ pvpgn/$anonymous_type_f1a35baf0b4bd22c_1#refs_link.);
55 }
56
57 extern void rcm_putcxx . . $ pvpgn/rcm_put(549b400a20fa1303).(t_rcmcxx . . $ pvpgn/t_rcm# *rcm, t_rcm_regrefcxx . . $ pvpgn/t_rcm_regref# *regref)
58 {
59 assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(rcm);
60 assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(regref);
61 assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(rcm->count); /* might use eventlog but I want this stopped fast */
62
63 rcm->countcxx . . $ pvpgn/$anonymous_type_f1a35baf0b4bd22c_0#count.--;
64 elist_delcxx . . $ pvpgn/elist_del(c14d3311d3358512).(&regref->refs_linkcxx . . $ pvpgn/$anonymous_type_f1a35baf0b4bd22c_1#refs_link.);
65 }
66
67 extern void rcm_chrefcxx . . $ pvpgn/rcm_chref(2947fde9a44a0de7).(t_rcmcxx . . $ pvpgn/t_rcm# *rcm, void *newref)
68 {
69 t_elistcxx . . $ pvpgn/t_elist# *curr, *save;
70 t_rcm_regrefcxx . . $ pvpgn/t_rcm_regref# *regref;
71
72 assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(rcm);
73
74 elist_for_each_safecxx . . $ `src/common/elist.h:238:9`!(curr, &rcm->refs, save) {
75 regref = elist_entrycxx . . $ `src/common/elist.h:228:9`!(curr, t_rcm_regref, refs_link);
76 if (regref->chrefcxx . . $ pvpgn/$anonymous_type_f1a35baf0b4bd22c_1#chref.) regref->chrefcxx . . $ pvpgn/$anonymous_type_f1a35baf0b4bd22c_1#chref.(regref->datacxx . . $ pvpgn/$anonymous_type_f1a35baf0b4bd22c_1#data., newref);
77 }
78 }
79
80 }