Files

19 lines
461 B
Plaintext
Raw Permalink Normal View History

2020-07-09 14:36:59 -04:00
import ada.wrappers;
import ada.transformations;
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()
and p_type_expression ().filter ("Interfaces.C.Strings.chars_ptr")
and not p_defining_name ().filter ("leaveMeAlone")
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"
and p_returns ().filter ("Interfaces.C.Strings.chars_ptr")))
walk chars_into_string ();