Debian Codegraph @

c2hs/c/CBuiltin.hs

raw symbols SCIP
1 -- C->Haskell Compiler: C builtin information
2 --
3 -- Author : Manuel M. T. Chakravarty
4 -- Created: 12 February 01
5 --
6 -- Version $Revision: 1.1 $
7 --
8 -- Copyright (c) 2001 Manuel M. T. Chakravarty
9 --
10 -- This file 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 file 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 --- DESCRIPTION ---------------------------------------------------------------
21 --
22 -- This module provides information about builtin entities.
23 --
24 --- DOCU ----------------------------------------------------------------------
25 --
26 -- language: Haskell 98
27 --
28 -- Currently, only builtin type names are supported. The only builtin type
29 -- name is `__builtin_va_list', which is a builtin of GNU C.
30 --
31 --- TODO ----------------------------------------------------------------------
32 --
33
34 module CBuiltin (
35 builtinTypeNames
36 ) where
37
38 import Position (Position, Pos(..), builtinPos)
39 import Idents (Ident, onlyPosIdent)
40
41 import CAttrs (CObj(BuiltinCO))
42
43
44 -- predefined type names
45 --
46 builtinTypeNames :: [(Ident, CObj)]
47 builtinTypeNames = [(onlyPosIdent builtinPos "__builtin_va_list", BuiltinCO)]