Mercurial > hg > octave-lyh
diff liboctave/lo-cutils.h @ 15221:a83b7b2f95ee
avoid C-style cast warnings from GCC for wait-related macros
* lo-utils.h (octave_wait): New class.
* lo-cutils.h, lo-cutils.c (octave_wifexited, octave_wexitstatus,
octave_wifsignaled, octave_wtermsig, octave_wcoredump,
octave_wifstopped, octave_wstopsig, octave_wifcontinued):
New functions.
* toplev.cc, pager.cc, syscalls.cc: Use octave_wait functions instead
of WIFEXITED, WEXITSTATUS, WIFSIGNALED, WTERMSIG, WCOREDUMP,
WIFSTOPPED, WSTOPSIG, WIFCONTINUED macros.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 23 Aug 2012 12:18:08 -0400 |
parents | 0ab3dd0fad18 |
children |
line wrap: on
line diff
--- a/liboctave/lo-cutils.h +++ b/liboctave/lo-cutils.h @@ -50,6 +50,15 @@ OCTAVE_API pid_t octave_waitpid (pid_t pid, int *status, int options); +OCTAVE_API int octave_wifexited (int status); +OCTAVE_API int octave_wexitstatus (int status); +OCTAVE_API int octave_wifsignaled (int status); +OCTAVE_API int octave_wtermsig (int status); +OCTAVE_API int octave_wcoredump (int status); +OCTAVE_API int octave_wifstopped (int status); +OCTAVE_API int octave_wstopsig (int status); +OCTAVE_API int octave_wifcontinued (int status); + #ifdef __cplusplus } #endif