permit multiline comments and strings in macros
[bpt/coccinelle.git] / parsing_c / lexer_parser.mli
index 37befe7..1f2527a 100644 (file)
@@ -21,14 +21,15 @@ val del_scope : unit -> unit
 
 val is_typedef : string -> bool
 
-val lexer_reset_typedef : unit -> unit
+val lexer_reset_typedef :
+    (string, identkind) Common.scoped_h_env option (* known typedefs *) -> unit
 
 val _old_state : (string, identkind) Common.scoped_h_env ref
 val save_typedef_state : unit -> unit
 val restore_typedef_state : unit -> unit
 
 
-type context = 
+type context =
   | InTopLevel
   | InFunction
   | InStruct
@@ -36,7 +37,7 @@ type context =
   | InInitializer
   | InEnum
 
-type lexer_hint = { 
+type lexer_hint = {
   mutable context_stack: context Common.stack;
  }