File tree Expand file tree Collapse file tree 2 files changed +0
-35
lines changed Expand file tree Collapse file tree 2 files changed +0
-35
lines changed Original file line number Diff line number Diff line change 1818open  Misc 
1919open  Parsetree 
2020
21- type  boxed_integer  = Pbigint  | Pint32  | Pint64 
22- 
2321type  description  = {
2422  prim_name : string ;  (*  Name of primitive  or C function *) 
2523  prim_arity : int ;  (*  Number of arguments *) 
@@ -32,24 +30,6 @@ type description = {
3230let  coerce  : (description -> description -> bool) ref  = 
3331  ref  (fun  (p1  : description ) (p2  : description ) -> p1 =  p2)
3432
35- let  simple  ~name   ~arity   ~alloc   = 
36-   {
37-     prim_name =  name;
38-     prim_arity =  arity;
39-     prim_alloc =  alloc;
40-     prim_native_name =  " "  ;
41-     prim_from_constructor =  false ;
42-   }
43- 
44- let  make  ~name   ~alloc   ~native_name   ~arity   = 
45-   {
46-     prim_name =  name;
47-     prim_arity =  arity;
48-     prim_alloc =  alloc;
49-     prim_native_name =  native_name;
50-     prim_from_constructor =  false ;
51-   }
52- 
5333let  parse_declaration  valdecl  ~arity   ~from_constructor   = 
5434  let  name, native_name = 
5535    match  valdecl.pval_prim with 
@@ -73,8 +53,3 @@ let print p osig_val_decl =
7353    else  [p.prim_name]
7454  in 
7555  {osig_val_decl with  oval_prims =  prims; oval_attributes =  [] }
76- 
77- let  native_name  p  = 
78-   if  p.prim_native_name <>  " "   then  p.prim_native_name else  p.prim_name
79- 
80- let  byte_name  p  =  p.prim_name
Original file line number Diff line number Diff line change 1515
1616(*  Description of primitive functions *) 
1717
18- type  boxed_integer  = Pbigint  | Pint32  | Pint64 
19- 
2018type  description  = private  {
2119  prim_name : string ;  (*  Name of primitive  or C function *) 
2220  prim_arity : int ;  (*  Number of arguments *) 
@@ -28,11 +26,6 @@ type description = private {
2826
2927(*  Invariant [List.length d.prim_native_repr_args = d.prim_arity] *) 
3028
31- val  simple  : name :string   -> arity :int   -> alloc :bool   -> description 
32- 
33- val  make  :
34-   name :string   -> alloc :bool   -> native_name :string   -> arity :int   -> description 
35- 
3629val  parse_declaration  :
3730  Parsetree .value_description  ->
3831  arity :int   ->
@@ -41,7 +34,4 @@ val parse_declaration :
4134
4235val  print  : description  -> Outcometree .out_val_decl  -> Outcometree .out_val_decl 
4336
44- val  native_name  : description  -> string 
45- val  byte_name  : description  -> string 
46- 
4737val  coerce  : (description  -> description  -> bool ) ref 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments