File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 33
33
| Converters |
34
34
+-----------------------------------------------------------------+ */
35
35
36
- /* Table mapping constructors of ocaml type Unix.access_permission to C values. */
37
- static int access_permission_table [] = {
38
- /* Constructor R_OK. */
39
- R_OK ,
40
- /* Constructor W_OK. */
41
- W_OK ,
42
- /* Constructor X_OK. */
43
- X_OK ,
44
- /* Constructor F_OK. */
45
- F_OK
46
- };
47
-
48
36
/* Convert ocaml values of type Unix.access_permission to a C int. */
49
37
static int int_of_access_permissions (value list )
50
38
{
39
+ /* Table mapping constructors of ocaml type Unix.access_permission to C values. */
40
+ int access_permission_table [] = {
41
+ /* Constructor R_OK. */
42
+ R_OK ,
43
+ /* Constructor W_OK. */
44
+ W_OK ,
45
+ /* Constructor X_OK. */
46
+ X_OK ,
47
+ /* Constructor F_OK. */
48
+ F_OK
49
+ };
50
+
51
51
int result = 0 ;
52
52
while (list != Val_emptylist ) {
53
53
result |= access_permission_table [Int_val (Field (list , 0 ))];
You can’t perform that action at this time.
0 commit comments