2020-07-09 14:36:59 -04:00
|
|
|
import ada.wrappers;
|
|
|
|
|
import ada.transformations;
|
|
|
|
|
|
2020-08-28 16:32:02 -04:00
|
|
|
walk wrap_ada_specs ();
|
2020-07-09 14:36:59 -04:00
|
|
|
|
2020-08-26 14:45:54 -04:00
|
|
|
match DefiningName (x"(.*)_h")
|
2020-07-09 14:36:59 -04:00
|
|
|
wrap w_DefiningName ("\1_Wrapped");
|
|
|
|
|
|
|
|
|
|
match ParamSpec()
|
2020-09-29 15:51:59 -04:00
|
|
|
and p_type_expression ().filter ("Interfaces.C.Strings.chars_ptr")
|
2020-09-05 23:06:09 -04:00
|
|
|
and not p_defining_name ().filter ("leaveMeAlone")
|
2020-08-28 16:32:02 -04:00
|
|
|
walk chars_into_string ();
|
2020-07-09 14:36:59 -04:00
|
|
|
|
|
|
|
|
match SubpDecl
|
|
|
|
|
(f_subp_spec
|
2020-08-26 14:45:54 -04:00
|
|
|
(x"^function"
|
2020-09-05 23:06:09 -04:00
|
|
|
and p_returns ().filter ("Interfaces.C.Strings.chars_ptr")))
|
2020-08-28 16:32:02 -04:00
|
|
|
walk chars_into_string ();
|