ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libcpjit/cpjit.h
Revision: 1.5
Committed: Tue Oct 11 20:38:09 2005 UTC (20 years, 11 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.4: +29 -12 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.2 /*
2 root 1.5 This file is AUTOMAGICALLY created by cpjit.h.PL. Modifications will
3     be lost.
4    
5 root 1.2 cpjit.h -- c portable jit in time compiler
6 root 1.4 Copyright (C) 2005 Marc Lehmann <cpjit.de>
7 root 1.2
8     This file is part of libcpjit.
9    
10     libcpjit is free software; you can redistribute it and/or modify
11     it under the terms of the GNU General Public License as published by
12     the Free Software Foundation; either version 2 of the License, or
13     (at your option) any later version.
14    
15     This program is distributed in the hope that it will be useful,
16     but WITHOUT ANY WARRANTY; without even the implied warranty of
17     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18     GNU General Public License for more details.
19    
20     You should have received a copy of the GNU General Public License
21     along with gvpe; if not, write to the Free Software
22     Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23     */
24 root 1.3
25     namespace cpjit
26     {
27    
28 root 1.5 // environment for persistent or temporary storage
29     struct env
30     {
31     };
32    
33     struct func_base
34     {
35     };
36    
37     struct funcbuilder_base
38     {
39     };
40    
41     template<typename R, typename A1>
42     struct function : func_base
43     {
44     function (env &e, id i)
45     : func_base (e, i, typestr<typename R>)
46     {
47     typename R
48     operator ()(A1 a1)
49     {
50     return ((typename R (*)(A1 a1)) ptr ())(a1);
51     }
52     };
53    
54 root 1.3 }