search for: dstdlib

Displaying 2 results from an estimated 2 matches for "dstdlib".

Did you mean: stdlib
2016 Dec 09
0
Re: [PATCH] generator: Share Common_utils code.
...; > (*<stdlib>*) > ... > (*</stdlib>*) One idea here: instead of using a custom <stdlib> markup and sed code for it, what about using the standard C preprocessor for this? I.e. have comments like: (* #ifdef STDLIB *) ... (* #endif *) and using cpp -DSTDLIB ... to output that. > diff --git a/generator/utils.ml b/generator/utils.ml > index 3e81433..ba5e045 100644 > --- a/generator/utils.ml > +++ b/generator/utils.ml > @@ -23,6 +23,8 @@ > * makes this a bit harder than it should be. > *) > > +open Common_utils > + &g...
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
For a very long time we have maintained two sets of utility functions, in mllib/common_utils.ml and generator/utils.ml. This changes things so that the same set of utility functions can be shared with both directories. It's not possible to use common_utils.ml directly in the generator because it provides several functions that use modules outside the OCaml stdlib. Therefore we add some