File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ include ../Makefile.head
44SOURCES = \
55 cabs.ml \
66 cxml.ml \
7+ cprint.ml \
78 clexer.mll \
89 cparser.mly \
910 ctoxml.ml \
10- cprint.ml \
1111 frontc.ml
1212
1313$(eval $(call ocaml_lib,frontc,$(SOURCES)))
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ and print_pointer typ =
254254 | CONST typ -> print_pointer typ; print " const "
255255 | VOLATILE typ -> print_pointer typ; print " volatile "
256256 | ARRAY (typ , _ ) -> print_pointer typ
257- | _ -> ()
257+ | _ -> print_base_type typ
258258
259259and print_array typ =
260260 match typ with
@@ -265,6 +265,10 @@ and print_array typ =
265265 print " ]"
266266 | _ -> ()
267267
268+ (* * Print a type.
269+ @param fct Function called to display the name of the.
270+ @param typ Type to display.
271+ *)
268272and print_type (fct : unit -> unit ) (typ : base_type ) =
269273 let base = get_base_type typ in
270274 match base with
@@ -695,6 +699,8 @@ and print_attribute attr =
695699 print_constant cst
696700 | GNU_EXTENSION ->
697701 print " __extension__"
702+ | GNU_INLINE ->
703+ print " __inline__"
698704
699705
700706(*
Original file line number Diff line number Diff line change @@ -306,6 +306,8 @@ and convert_gnu_attr attr =
306306 -> convert_const cst
307307 | GNU_EXTENSION
308308 -> Cxml. new_elt " extension" [] []
309+ | GNU_INLINE
310+ -> Cxml. new_elt " inline" [] []
309311 | GNU_CALL (id, attrs)
310312 -> Cxml. new_elt " call" [(" id" , id)] (List. map convert_gnu_attr attrs)
311313
You can’t perform that action at this time.
0 commit comments