lib/sod.h: New macro `SOD_INSTBASE' to find the allocated base address.
[sod] / pre-reorg / c-types.lisp
1 ;;; -*-lisp-*-
2 ;;;
3 ;;; Dealing with C types
4 ;;;
5 ;;; (c) 2008 Straylight/Edgeware
6 ;;;
7
8 ;;;----- Licensing notice ---------------------------------------------------
9 ;;;
10 ;;; This file is part of the Simple Object Definition system.
11 ;;;
12 ;;; SOD is free software; you can redistribute it and/or modify
13 ;;; it under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 2 of the License, or
15 ;;; (at your option) any later version.
16 ;;;
17 ;;; SOD is distributed in the hope that it will be useful,
18 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
21 ;;;
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with SOD; if not, write to the Free Software Foundation,
24 ;;; Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26 (cl:in-package #:sod)
27
28 ;;;--------------------------------------------------------------------------
29 ;;; Plain old C types.
30
31 ;; Class definition.
32
33 ;; Important protocol.
34
35 ;; Utility functions and macros.
36
37 ;; S-expression syntax machinery.
38
39 ;; Basic definitions.
40
41 ;; A handy utility.
42
43 ;;;--------------------------------------------------------------------------
44 ;;; Simple C types (e.g., built-in arithmetic types).
45
46 ;; Basic definitions.
47
48 (let ((cache (make-hash-table :test #'equal)))
49
50 ;;;--------------------------------------------------------------------------
51 ;;; Tag types (structs, unions and enums).
52
53 ;; Definitions.
54
55 ;;;--------------------------------------------------------------------------
56 ;;; Pointer types.
57
58 ;; Definitions.
59
60 (let ((cache (make-hash-table :test #'eql)))
61
62 ;; S-expression syntax.
63
64 ;;;--------------------------------------------------------------------------
65 ;;; Array types.
66
67 ;; Definitions.
68
69
70 ;;;--------------------------------------------------------------------------
71 ;;; Function types.
72
73 ;; Arguments.
74
75 ;; Definitions.
76
77 ;; S-expression syntax.
78
79 ;;;----- That's all, folks --------------------------------------------------