Anonymous committed e65269d

renamed sub_refs to process_body

Comments (0)

Files changed (1)

 (* read the body from inc, substitute the references from table refs *)
 (* if ref is not in refs, evaluate unknown_ref, print to outc *)
-let sub_refs inc outc refs unknown_ref =
+let process_body inc outc refs unknown_ref =
   let sub_ref l _ =
     let old_n = int_of_string (Str.matched_group 1 l) in
     try ref_of_int (Hashtbl.find refs old_n)
 let renumber_by_body inc outc =
   let refs = Hashtbl.create 1000000 in
   let new_ref old_n = ref_of_int (insert_ref refs old_n) in
-  sub_refs inc outc refs new_ref;
+  process_body inc outc refs new_ref;
   let foots = Array.make (Hashtbl.length refs) None in
   let add_foot l old_n =
   process_foots inc add_foot_ref ignore;
   seek_in inc 0;
-  sub_refs inc outc refs (function _ -> "[?]");
+  process_body inc outc refs (function _ -> "[?]");
   let print_foot l old_n =
     let n = Hashtbl.find refs old_n in
     output_string outc (ref_of_int n);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.