Release of coccinelle 1.0.0-rc9
[bpt/coccinelle.git] / parsing_cocci / type_cocci.ml
index 408fba2..ead32f6 100644 (file)
  *)
 
 
-(*
- * Copyright 2010, INRIA, University of Copenhagen
- * Julia Lawall, Rene Rydhof Hansen, Gilles Muller, Nicolas Palix
- * Copyright 2005-2009, Ecole des Mines de Nantes, University of Copenhagen
- * Yoann Padioleau, Julia Lawall, Rene Rydhof Hansen, Henrik Stuart, Gilles Muller, Nicolas Palix
- * This file is part of Coccinelle.
- *
- * Coccinelle is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, according to version 2 of the License.
- *
- * Coccinelle is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Coccinelle.  If not, see <http://www.gnu.org/licenses/>.
- *
- * The authors reserve the right to distribute this or future versions of
- * Coccinelle under other licenses.
- *)
-
-
 (* for metavariables in general, but here because needed for metatypes *)
 type inherited = bool (* true if inherited *)
 type keep_binding = Unitary (* need no info *)
@@ -73,9 +49,10 @@ and name =
 
 and tagged_string = string
 
-and baseType = VoidType | CharType | ShortType | IntType | DoubleType
-| FloatType | LongType | LongLongType | BoolType
-| SizeType | SSizeType | PtrDiffType
+and baseType = VoidType | CharType | ShortType | ShortIntType | IntType
+| DoubleType | LongDoubleType | FloatType
+| LongType | LongIntType | LongLongType | LongLongIntType
+| SizeType | SSizeType | PtrDiffType | BoolType
 
 and structUnion = Struct | Union
 
@@ -120,11 +97,15 @@ and baseType = function
     VoidType -> "void "
   | CharType -> "char "
   | ShortType -> "short "
+  | ShortIntType -> "short int "
   | IntType -> "int "
   | DoubleType -> "double "
+  | LongDoubleType -> "long double "
   | FloatType -> "float "
   | LongType -> "long "
+  | LongIntType -> "long int "
   | LongLongType -> "long long "
+  | LongLongIntType -> "long long int "
   | BoolType -> "bool "
   | SizeType -> "size_t "
   | SSizeType -> "ssize_t "