Support c_char type
diff --git a/syntax/atom.rs b/syntax/atom.rs
index 7d0ef6b..d4ad78f 100644
--- a/syntax/atom.rs
+++ b/syntax/atom.rs
@@ -5,6 +5,7 @@
#[derive(Copy, Clone, PartialEq)]
pub enum Atom {
Bool,
+ Char, // C char, not Rust char
U8,
U16,
U32,
@@ -30,6 +31,7 @@
use self::Atom::*;
match s {
"bool" => Some(Bool),
+ "c_char" => Some(Char),
"u8" => Some(U8),
"u16" => Some(U16),
"u32" => Some(U32),
@@ -60,6 +62,7 @@
use self::Atom::*;
match self {
Bool => "bool",
+ Char => "c_char",
U8 => "u8",
U16 => "u16",
U32 => "u32",