Skip to content

Commit

Permalink
Merge pull request ocaml#70 from avsm/ocaml4-compile
Browse files Browse the repository at this point in the history
fix compile under OCaml-4.00 by removing ExtHashtbl from extlib
  • Loading branch information
samoht committed Aug 2, 2012
2 parents bb89d99 + c6a4aa4 commit e3a13a1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions src_ext/Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ocaml-re.tar.gz:
extlib.stamp: extlib-1.5.2.tar.gz extlib.stamp: extlib-1.5.2.tar.gz
tar xfz extlib-1.5.2.tar.gz tar xfz extlib-1.5.2.tar.gz
mv extlib-1.5.2 extlib mv extlib-1.5.2 extlib
cd extlib && patch -i ../extlib.patch -p1
@touch $@ @touch $@


dose.stamp: dose.tar.gz dose.stamp: dose.tar.gz
Expand Down
3 changes: 1 addition & 2 deletions src_ext/depends.ocp.boot
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ begin library "extlib"
"extlib/extString.ml" "extlib/extString.ml"
"extlib/extList.ml" "extlib/extList.ml"
"extlib/extLib.ml" "extlib/extLib.ml"
"extlib/extHashtbl.ml"
"extlib/extArray.ml" "extlib/extArray.ml"
"extlib/enum.ml" "extlib/enum.ml"
"extlib/dynArray.ml" "extlib/dynArray.ml"
Expand Down Expand Up @@ -192,4 +191,4 @@ begin program "cnftocudf"
requires = [ "dose" ] requires = [ "dose" ]
end end


*) *)
12 changes: 12 additions & 0 deletions src_ext/extlib.patch
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -ur extlib.a/extLib.ml extlib.b/extLib.ml
--- extlib.a/extLib.ml 2011-08-06 15:56:39.000000000 +0100
+++ extlib.b/extLib.ml 2012-08-02 17:44:07.000000000 +0100
@@ -35,7 +35,7 @@

module List = ExtList.List
module String = ExtString.String
-module Hashtbl = ExtHashtbl.Hashtbl
+module Hashtbl = Hashtbl
module Array = ExtArray.Array

exception Invalid_string = ExtString.Invalid_string

0 comments on commit e3a13a1

Please sign in to comment.