From: Kim Nguyễn Date: Wed, 22 Feb 2012 11:03:07 +0000 (+0100) Subject: Add function to cast tags to integers. X-Git-Url: http://git.nguyen.vg/gitweb/?a=commitdiff_plain;h=791c8ffadb7e65fc61d18e6ad8e497f1cfe46fb3;hp=6bc104a1034ba2d526c44b853836e3b42dd0ab2c;p=SXSI%2Fxpathcomp.git Add function to cast tags to integers. --- diff --git a/src/tag.ml b/src/tag.ml index 2cc1663..effe9c3 100644 --- a/src/tag.ml +++ b/src/tag.ml @@ -8,7 +8,7 @@ type t = int - +external to_int : t -> int = "%identity" type operations = { tag : string -> t; to_string : t ->string; diff --git a/src/tag.mli b/src/tag.mli index 04254e0..7e742c1 100644 --- a/src/tag.mli +++ b/src/tag.mli @@ -6,7 +6,7 @@ type operations = { translate : t -> t } - +external to_int : t -> int = "%identity" val document_node : t val attribute : t val pcdata : t