diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1995-06-18 14:59:32 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1995-06-18 14:59:32 +0000 |
commit | 57c7dfd8fed5efd2d66f0b990941ade7382fa012 (patch) | |
tree | 9cdd73bbbe28d26728b28ee756f7ca3bbe147abd /otherlibs/unix/termios.c | |
parent | 09b2d4a5d5bc7175e6cffcada45ee063f911f1ca (diff) |
MAJ apres le changement de representation des constructeurs constants
(reste a tester).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@48 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/termios.c')
-rw-r--r-- | otherlibs/unix/termios.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/unix/termios.c b/otherlibs/unix/termios.c index fdb0fb95d..78bf0d073 100644 --- a/otherlibs/unix/termios.c +++ b/otherlibs/unix/termios.c @@ -177,7 +177,7 @@ static void decode_terminal_status(src) case Bool: { int * dst = (int *) (*pc++); int msk = *pc++; - if (Tag_val(*src) != 0) + if (Bool_val(*src)) *dst |= msk; else *dst &= ~msk; @@ -245,7 +245,7 @@ value unix_tcsetattr(fd, when, arg) uerror("tcsetattr", Nothing); decode_terminal_status(&Field(arg, 0)); if (tcsetattr(Int_val(fd), - when_flag_table[Tag_val(when)], + when_flag_table[Int_val(when)], &terminal_status) == -1) uerror("tcsetattr", Nothing); return Val_unit; @@ -273,7 +273,7 @@ static int queue_flag_table[] = { value unix_tcflush(fd, queue) value fd, queue; { - if (tcflush(Int_val(fd), queue_flag_table[Tag_val(queue)]) == -1) + if (tcflush(Int_val(fd), queue_flag_table[Int_val(queue)]) == -1) uerror("tcflush", Nothing); return Val_unit; } @@ -285,7 +285,7 @@ static int action_flag_table[] = { value unix_tcflow(fd, action) value fd, action; { - if (tcflow(Int_val(fd), action_flag_table[Tag_val(action)]) == -1) + if (tcflow(Int_val(fd), action_flag_table[Int_val(action)]) == -1) uerror("tcflow", Nothing); return Val_unit; } |