File tree Expand file tree Collapse file tree 16 files changed +21
-36
lines changed
bchsummaries/so_functions Expand file tree Collapse file tree 16 files changed +21
-36
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,6 @@ object (self)
6262
6363 method get_name = fintf.fintf_name
6464
65- method get_lhsname = fintf.fintf_lhsname
66-
6765 method get_target = tgt
6866
6967 method get_app_address =
Original file line number Diff line number Diff line change @@ -2014,8 +2014,7 @@ object (self)
20142014 fintf_type_signature = fts;
20152015 fintf_bctype = None ;
20162016 fintf_parameter_locations = [] ;
2017- fintf_returntypes = [] ;
2018- fintf_lhsname = None
2017+ fintf_returntypes = []
20192018 } in
20202019 let fsem = default_function_semantics in
20212020 let fdoc = default_function_documentation in
@@ -2363,9 +2362,6 @@ object (self)
23632362 begin
23642363 v#write_xml ctnode;
23652364 ctnode#setAttribute " a" k;
2366- (match v#get_lhsname with
2367- | Some name -> ctnode#setAttribute " lhs" name
2368- | _ -> () );
23692365 ctnode
23702366 end ) calltargets)
23712367
Original file line number Diff line number Diff line change @@ -620,8 +620,7 @@ let read_xml_function_interface (node:xml_element_int):function_interface_t =
620620 fintf_type_signature = fts;
621621 fintf_bctype = Some bctype;
622622 fintf_parameter_locations = [] ;
623- fintf_returntypes = [] ;
624- fintf_lhsname = if has " lhsname" then Some (get " lhsname" ) else None
623+ fintf_returntypes = []
625624 }
626625
627626
@@ -899,8 +898,7 @@ let demangled_name_to_function_interface (dm: demangled_name_t) =
899898 fintf_type_signature = fts;
900899 fintf_parameter_locations = [] ;
901900 fintf_bctype = None ;
902- fintf_returntypes = [] ;
903- fintf_lhsname = None
901+ fintf_returntypes = []
904902 }
905903
906904
@@ -913,7 +911,6 @@ let default_function_interface
913911 ?(varargs =false )
914912 ?(locations =[] )
915913 ?(returntypes =[] )
916- ?(lhsname =None )
917914 (name :string ): function_interface_t =
918915 let fts = {
919916 fts_parameters = bc_fts_parameters;
@@ -932,8 +929,7 @@ let default_function_interface
932929 fintf_type_signature = fts;
933930 fintf_parameter_locations = locations;
934931 fintf_bctype = bctype;
935- fintf_returntypes = returntypes;
936- fintf_lhsname = lhsname
932+ fintf_returntypes = returntypes
937933 }
938934
939935
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ val default_function_interface:
102102 -> ?varargs : bool
103103 -> ?locations : parameter_location_t list
104104 -> ?returntypes : btype_t list
105- -> ?lhsname : string option
106105 -> string
107106 -> function_interface_t
108107
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ object (self)
390390 }
391391
392392 method index_function_interface (fintf : function_interface_t ) =
393- let tags = match fintf.fintf_lhsname with Some name -> [name] | _ -> [] in
393+ let tags = [] in
394394 let args = [
395395 bd#index_string fintf.fintf_name;
396396 (match fintf.fintf_jni_index with Some n -> n | _ -> (- 1 ));
@@ -408,17 +408,15 @@ object (self)
408408
409409 method get_function_interface (index : int ): function_interface_t =
410410 let name = " function-interface" in
411- let (tags , args) = function_interface_table#retrieve index in
411+ let (_ , args) = function_interface_table#retrieve index in
412412 let a = a name args in
413- let t = t name tags in
414413 { fintf_name = bd#get_string (a 0 );
415414 fintf_jni_index = if (a 1 ) = (- 1 ) then None else Some (a 1 );
416415 fintf_syscall_index = if (a 2 ) = (- 1 ) then None else Some (a 2 );
417416 fintf_type_signature = self#get_function_signature (a 3 );
418417 fintf_parameter_locations = self#get_parameter_location_list (a 4 );
419418 fintf_returntypes = (if (a 5 ) = (- 1 ) then [] else [bcd#get_typ (a 5 )]);
420- fintf_bctype = if (a 6 ) = (- 1 ) then None else Some (bcd#get_typ (a 6 ));
421- fintf_lhsname = match tags with [] -> None | _ -> Some (t 0 )
419+ fintf_bctype = if (a 6 ) = (- 1 ) then None else Some (bcd#get_typ (a 6 ))
422420 }
423421
424422 method index_function_semantics (fsem : function_semantics_t ) =
Original file line number Diff line number Diff line change @@ -2093,8 +2093,7 @@ type function_interface_t = {
20932093 fintf_type_signature : function_signature_t ;
20942094 fintf_parameter_locations : parameter_location_t list ;
20952095 fintf_returntypes : btype_t list ;
2096- fintf_bctype : btype_t option ;
2097- fintf_lhsname : string option
2096+ fintf_bctype : btype_t option
20982097 }
20992098
21002099
@@ -4737,7 +4736,6 @@ class type call_target_info_int =
47374736 (* accessors *)
47384737 method get_target : call_target_t
47394738 method get_name : string
4740- method get_lhsname : string option
47414739 method get_app_address : doubleword_int
47424740 method get_application_target : doubleword_int
47434741 method get_wrapped_app_address : doubleword_int
Original file line number Diff line number Diff line change @@ -523,8 +523,8 @@ object (self)
523523 (match ftype with
524524 | Error _ -> None
525525 | Ok ftype ->
526- let ixftype = bcd#index_typ ftype in
527- let ixctype = bcd#index_typ ty in
526+ let _ixftype = bcd#index_typ ftype in
527+ let _ixctype = bcd#index_typ ty in
528528 let _ =
529529 chlog#add
530530 " first field struct check"
@@ -568,7 +568,7 @@ object (self)
568568 STR cinfo.bcname;
569569 STR " : first field type: " ;
570570 STR (btype_to_string ftype)]) in
571- if s#fold (fun acc i -> acc & (i = ixftype || i = ixctype)) true then
571+ if s#fold (fun acc i -> acc && (i = ixftype || i = ixctype)) true then
572572 Some ftype
573573 else
574574 None )
Original file line number Diff line number Diff line change 9595
9696
9797let version = new version_info_t
98- ~version: " 0.6.0_20240830 "
99- ~date: " 2024-08-30 "
98+ ~version: " 0.6.0_20241003 "
99+ ~date: " 2024-10-03 "
100100 ~licensee: None
101101 ~maxfilesize: None
102102 ()
Original file line number Diff line number Diff line change 1111 <return >int value produced by interpreting the input characters as an int</return >
1212 </apidoc >
1313 </documentation >
14- <api adj =" 0" cc =" cdecl" name =" atoi" lhsname = " intval " >
14+ <api adj =" 0" cc =" cdecl" name =" atoi" >
1515 <returntype >int</returntype >
1616 <par loc =" stack" name =" str" rep =" hex" nr =" 1" >
1717 <type ><ptr >char</ptr ></type >
Original file line number Diff line number Diff line change 1111 <return >argument value converted from host ot network byte order</return >
1212 </apidoc >
1313 </documentation >
14- <api adj =" 0" cc =" cdecl" name =" htons" lhsname = " htonsval " >
14+ <api adj =" 0" cc =" cdecl" name =" htons" >
1515 <par loc =" stack" name =" hostshort" nr =" 1" >
1616 <type >uint16_t</type >
1717 </par >
You can’t perform that action at this time.
0 commit comments