-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Int constructor with num_of_int
This replaces the Num.Int constructor with Num.num_of_int function. This is to prepare removing dependency on Num and using Zarith. The script which was used for this patch is as follows (in bash, Linux): ``` set -x replace_all () { find . -not \( -path "./_opam" -type d -prune \) \ -not \( -type f -wholename "./RichterHilbertAxiomGeometry/Topology.ml" \) \ -type f -name "*.ml" -print0 | \ xargs --no-run-if-empty -0 sed -i -e "$1" find . -not \( -path "./_opam" -type d -prune \) \ -type f -name "*.hl" -print0 | \ xargs --no-run-if-empty -0 sed -i -e "$1" } replace_all 's/module Int /MODULE_INT_SAVED/g' replace_all 's/ Int / Num.num_of_int /g' replace_all 's/ Int(/ Num.num_of_int(/g' replace_all 's/(Int /(Num.num_of_int /g' replace_all 's/(Int(/(Num.num_of_int(/g' replace_all 's/[Int /[Num.num_of_int /g' replace_all 's/[Int(/[Num.num_of_int(/g' replace_all 's/,Int /,Num.num_of_int /g' replace_all 's/,Int(/,Num.num_of_int(/g' replace_all 's/=Int /=Num.num_of_int /g' replace_all 's/=Int(/=Num.num_of_int(/g' replace_all 's/(Num.Int /(Num.num_of_int /g' replace_all 's/(Num.Int(/(Num.num_of_int(/g' replace_all 's/MODULE_INT_SAVED/module Int /g' ```
- Loading branch information
Showing
43 changed files
with
433 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.