Module Options

module Options: sig .. end
This module uses the X-macro technique to keep a variant type in ML synchronized with an enum in C. Check the OMakefile to figure out which files are safe to edit and which files are generated during the build. To help distinguish the two, the next comment is omitted from the generated copy. *


This module uses the X-macro technique to keep a variant type in ML synchronized with an enum in C. Check the OMakefile to figure out which files are safe to edit and which files are generated during the build. To help distinguish the two, the next comment is omitted from the generated copy. *
type enum = 
| Encoding_latin1 of bool
| Posix_syntax of bool
| Longest_match of bool
| Log_errors of bool
| Max_mem of int
| Literal of bool
| Never_nl of bool
| Case_sensitive of bool
| Perl_classes of bool
| Word_boundary of bool
| One_line of bool (*Polymorphic variants are provided for concision at client call sites. **)
The order of variants in this enum type must be kept in sync with a C-side enum or else options will be silently misparsed. *
type t = [ `Case_sensitive of bool
| `Encoding_latin1 of bool
| `Literal of bool
| `Log_errors of bool
| `Longest_match of bool
| `Max_mem of int
| `Never_nl of bool
| `One_line of bool
| `Perl_classes of bool
| `Posix_syntax of bool
| `Word_boundary of bool ]
val latin1 : [> `Encoding_latin1 of bool ] list
val posix : [> `Longest_match of bool | `Posix_syntax of bool ] list
val noisy : [> `Log_errors of bool ] list
val enum_of_t : [< `Case_sensitive of bool
| `Encoding_latin1 of bool
| `Literal of bool
| `Log_errors of bool
| `Longest_match of bool
| `Max_mem of int
| `Never_nl of bool
| `One_line of bool
| `Perl_classes of bool
| `Posix_syntax of bool
| `Word_boundary of bool ] ->
enum
module type S = sig .. end

This module uses the X-macro technique to keep a variant type in ML synchronized with an enum in C. Check the OMakefile to figure out which files are safe to edit and which files are generated during the build. To help distinguish the two, the next comment is omitted from the generated copy. *

The order of variants in this enum type must be kept in sync with a C-side enum or else options will be silently misparsed. *

Polymorphic variants are provided for concision at client call sites. *

Polymorphic variants are provided for concision at client call sites. *

these options are exactly as defined by Google with two exceptions: