Release coccinelle-0.2.3rc2
[bpt/coccinelle.git] / parsing_c / unparse_cocci.mli
dissimilarity index 62%
index 3db061d..73200a4 100644 (file)
@@ -1,11 +1,18 @@
-exception CantBeInPlus
-
-type pos = Before | After | InPlace
-
-val pp_list_list_any :
-  Ast_c.metavars_binding * 
-  (string -> unit) (* pr cocci *) * Pretty_print_c.pr_elem_func (* pr c *) *
-    (unit -> unit) (* pr space *) *
-    (unit -> unit) (* indent *) * (unit -> unit) (* unindent *) -> 
-  Ast_cocci.anything list list -> pos ->
-  unit
+exception CantBeInPlus
+
+type pos = Before | After | InPlace
+type nlhint = StartBox | EndBox | SpaceOrNewline of string ref
+
+val pp_list_list_any :
+  Ast_c.metavars_binding list *
+  (* pr cocci *)
+  (string -> int (*line*) -> int (*lcol*) -> int (*rcol*) -> nlhint option
+    -> unit) *
+    (Ast_c.info -> unit) (* pr c *) *
+    (unit -> unit) (* pr C space *) *
+    (unit -> unit) (* pr space *) *
+    (string -> unit) (* pr arity *) *
+    (int (*line*) -> int (*lcol*) -> unit) (* pr barrier *) *
+    (unit -> unit) (* indent *) * (bool -> unit) (* unindent *) ->
+  bool (*true if generating*) -> Ast_cocci.anything list list -> pos ->
+  unit