init.c
1 /*
2  shm-arena shared memory arena
3  Copyright (C) 2006-2008 Lance Arsenault (LGPL v3)
4 
5 
6  This file is part of shm-arena.
7 
8  shm-arena is free software; you can redistribute it and/or modify
9  it under the terms of the GNU Lesser General Public License as
10  published by the Free Software Foundation; either version 3 of the
11  License, or (at your option) any later version.
12 
13  shm-arena is distributed in the hope that it will be useful, but
14  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 program. If not, see
20  <http://www.gnu.org/licenses/>.
21 */
22 
27 #ifdef WITH_SPEW
28 
29 #include "config.h"
30 #include <stdio.h>
31 #include "spew.h"
32 
33 
35 __attribute__ ((constructor))
36 void _shm_init(void)
37 {
38  _shm_spew_init();
39  SPEW(_DEBUG, "%s()", __func__);
40 }
41 #endif
42 
43 
44 #if 0 /* don't need this yet */
45 
47 void __attribute__ ((destructor)) _shm_finish(void);
48 {
49 
50 }
51 #endif

Shared Memory Arena version RC-0.0.25