basis-library/libs/basis-1997/posix/flags-convert.fun
raw| 1 | (* Copyright (C) 2002-2006 Henry Cejtin, Matthew Fluet, Suresh |
| 2 | * Jagannathan, and Stephen Weeks. |
| 3 | * |
| 4 | * MLton is released under a HPND-style license. |
| 5 | * See the file MLton-LICENSE for details. |
| 6 | *) |
| 7 | |
| 8 | functor FlagsConvert |
| 9 | (structure Flags: BIT_FLAGS) : |
| 10 | POSIX_FLAGS_1997 where type flags = Flags.flags = |
| 11 | struct |
| 12 | open Flags |
| 13 | val wordTo = fromWord |
| 14 | end |