Lhogho  0.0.028
 All Data Structures Files Functions Variables Typedefs Macros Pages
external.h
Go to the documentation of this file.
1 //
2 // Project: Lhogho
3 // File: external.c
4 //
5 // Copyright (C) 2008 P.Boytchev
6 //
7 // Revision history:
8 // 2008-09-14 - 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 
27 #ifndef LHOGHO_EXTERNAL_H
28 #define LHOGHO_EXTERNAL_H
29 
30 #include "globals.h"
31 #include "atoms.h"
32 #include "lists.h"
33 #include "numbers.h"
34 #include "errors.h"
35 #include "external.h"
36 
37 #define C_TYPE_UNKNOWN 0
38 #define C_TYPE_STRUCT 1
39 #define C_TYPE_SIGNED 2
40 #define C_TYPE_UNSIGNED 3
41 #define C_TYPE_FLOAT 4
42 #define C_TYPE_VOID 5
43 #define C_TYPE_POINTER 6
44 #define C_TYPE_STRING 7
45 #define C_TYPE_ATOM 8
46 
47 
48 typedef struct typeid_rec {
50  int size;
51  int class;
56 } typeid_t;
57 extern typeid_t c_types[];
58 
59 extern int get_c_type( int static_link, atom_t parent, atom_t type );
60 extern atom_t traverse_pack( int static_link, atom_t parent, atom_t prototype, atom_t protodata, char* ptr, int mode );
61 
62 #endif //LHOGHO_EXTERNAL_H

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