mllib: Split ‘Common_utils’ into ‘Std_utils’ + ‘Common_utils’.

The new module ‘Std_utils’ contains only functions which are pure
OCaml and depend only on the OCaml stdlib.  Therefore these functions
may be used by the generator.

The new module is moved to ‘common/mlstdutils’.

This also removes the "<stdlib>" hack, and the code which copied the
library around.

Also ‘Guestfs_config’, ‘Libdir’ and ‘StringMap’ modules are moved
since these are essentially the same.

The bulk of this change is just updating files which use
‘open Common_utils’ to add ‘open Std_utils’ where necessary.
This commit is contained in:
Richard W.M. Jones
2017-06-08 13:27:25 +01:00
parent 989292c146
commit 61d4891ef4
142 changed files with 1525 additions and 1236 deletions

View File

@@ -20,7 +20,7 @@
open Printf
open Common_utils
open Std_utils
open Types
open Utils
open Pr