Lhogho  0.0.028
 All Data Structures Files Functions Variables Typedefs Macros Pages
mems.h
Go to the documentation of this file.
1 //
2 // Project: Lhogho
3 // File: mems.h
4 //
5 // Copyright (C) 2007 P.Boytchev
6 //
7 // Revision history:
8 // 2007-06-19 - file created
9 //
10 //
11 // This program is free software; you can redistribute it and/or modify
12 // it under the terms of the GNU General Public License as published by
13 // the Free Software Foundation; either version 2 of the License, or
14 // (at your option) any later version.
15 //
16 // This program is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program; if not, write to the Free Software
23 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 //
25 
26 #ifndef LHOGHO_MEMS_H
27 #define LHOGHO_MEMS_H
28 
29 
30 
31 #define FORMAT_MEM TEXT("{Mem@%0x}")
32 #define MEMORY(x) ((x)->unode.v[2]) // pointer to actual memory
33 #define ATOMS(x) ((x)->unode.a[3]) // pointer to extra atoms
34 #define IS_MEM(x) (ID(x)==MEM_ID)
35 
36 
37 #define MEM_STRUCT_SIZE 0
38 #define MEM_STRUCT_PACK 1
39 #define MEM_STRUCT_UNPACK 2
40 
41 
42 extern atom_t new_mem( uint_t size );
43 extern void delete_mem( atom_t a );
44 extern void dump_mem( atom_t a, int level );
45 
46 #endif //LHOGHO_MEMS_H

[ HOME | INDEX | ATOMS | VARS | REFERENCE ]
Lhogho Developer's Documentation
Wed Jul 10 2013