Skip to content

Commit

Permalink
Merge pull request #3564 from mtzguido/locate
Browse files Browse the repository at this point in the history
Some refactoring about include paths, finding, locate, etc
  • Loading branch information
mtzguido authored Oct 14, 2024
2 parents 0cd990c + 2e37a9e commit 84d9ea8
Show file tree
Hide file tree
Showing 23 changed files with 308 additions and 281 deletions.
3 changes: 3 additions & 0 deletions ocaml/fstar-lib/FStarC_Compiler_Util.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1163,3 +1163,6 @@ let array_of_list (l:'a list) = FStar_ImmutableArray_Base.of_list l
let array_length (l:'a FStar_ImmutableArray_Base.t) = FStar_ImmutableArray_Base.length l

let array_index (l:'a FStar_ImmutableArray_Base.t) (i:Z.t) = FStar_ImmutableArray_Base.index l i

let putenv k v = Unix.putenv k v
let execvp c args = Unix.execvp c (Array.of_list args)
2 changes: 1 addition & 1 deletion ocaml/fstar-lib/FStarC_Extraction_ML_PrintML.ml
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ let print (out_dir: string option) (ext: string) (ml: mllib) =
let new_doc = FStarC_Extraction_ML_Code.doc_of_mllib ml in
iter (fun (n, d) ->
FStarC_Compiler_Util.write_file
(FStarC_Options.prepend_output_dir (BatString.concat "" [n;ext]))
(FStarC_Find.prepend_output_dir (BatString.concat "" [n;ext]))
(FStarC_Extraction_ML_Code.pretty (Prims.parse_int "120") d)
) new_doc
| _ -> failwith "Unrecognized extension"
4 changes: 2 additions & 2 deletions ocaml/fstar-lib/generated/FStarC_Compiler_Plugins.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 121 additions & 3 deletions ocaml/fstar-lib/generated/FStarC_Find.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 11 additions & 27 deletions ocaml/fstar-lib/generated/FStarC_Main.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

116 changes: 4 additions & 112 deletions ocaml/fstar-lib/generated/FStarC_Options.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 84d9ea8

Please sign in to comment.