Skip to content

Commit

Permalink
Avoid a new name clash in this old test
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierleroy committed Nov 25, 2017
1 parent 4f383b6 commit 41fa047
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/unix.idl
Expand Up @@ -15,16 +15,16 @@ quote (C, "

union process_status { int code; };

enum { WEXITED, WSIGNALED, WSTOPPED };
enum { WEXITED_, WSIGNALED_, WSTOPPED_ };

static void decode_status(int status, int * kind, union process_status * p)
{
if (WIFEXITED(status)) {
*kind = WEXITED; p->code = WEXITSTATUS(status);
*kind = WEXITED_; p->code = WEXITSTATUS(status);
} else if (WIFSIGNALED(status)) {
*kind = WSIGNALED; p->code = WTERMSIG(status);
*kind = WSIGNALED_; p->code = WTERMSIG(status);
} else {
*kind = WSTOPPED; p->code = WSTOPSIG(status);
*kind = WSTOPPED_; p->code = WSTOPSIG(status);
}
}

Expand Down Expand Up @@ -59,9 +59,9 @@ int execve([in,string] char * path,
int fork(void);

union process_status {
case WEXITED: int code;
case WSIGNALED: int code;
case WSTOPPED: int code;
case WEXITED_: int code;
case WSIGNALED_: int code;
case WSTOPPED_: int code;
};

int wait([out] int * kind,
Expand Down

0 comments on commit 41fa047

Please sign in to comment.