cleanup builtin handling and put it into an own file. Also implement a bunch of entit...
[cparser] / lang_features.h
index ad88c36..b51b8cb 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of cparser.
- * Copyright (C) 2007-2008 Matthias Braun <matze@braunis.de>
+ * Copyright (C) 2007-2009 Matthias Braun <matze@braunis.de>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -22,6 +22,8 @@
 
 #include "type.h"
 
+#define BITS_PER_BYTE    8
+
 typedef enum lang_features_t {
        _C89  = 1U << 0,
        _ANSI = 1U << 1,
@@ -33,7 +35,7 @@ typedef enum lang_features_t {
 } lang_features_t;
 
 /* the current C mode/dialect */
-extern lang_features_t c_mode;
+extern unsigned int c_mode;
 
 /* the 'machine size', 16, 32 or 64 bit */
 extern unsigned int machine_size;