csources_v2/c_code/2_2/@m..@slib@sposix@sposix.nim.c
2022-12-16 10:54:01 +08:00

59 lines
1.5 KiB
C

/* Generated by Nim Compiler v1.9.0 */
#define NIM_INTBITS 64
#include "nimbase.h"
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
#define nimfr_(x, y)
#define nimln_(x, y)
N_LIB_PRIVATE N_NIMCALL(int, WTERMSIG__posixZposix_1055)(int s);
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void);
extern NIM_BOOL nimInErrorMode__system_3980;
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, WIFSIGNALED__posixZposix_1064)(int s) {
NIM_BOOL result;
result = (NIM_BOOL)0;
result = (((NI8)0) < (NI8)((NI64)(((NI8) ((NI32)((NI32)(s & ((NI32)127)) + ((NI32)1))))) >> (NU64)(((NI)1))));
return result;
}
N_LIB_PRIVATE N_NIMCALL(int, WTERMSIG__posixZposix_1055)(int s) {
int result;
result = (int)0;
result = (NI32)(s & ((NI32)127));
return result;
}
N_LIB_PRIVATE N_NIMCALL(int, WEXITSTATUS__posixZposix_1048)(int s) {
int result;
result = (int)0;
result = (NI32)((NI64)((NI32)(s & ((NI32)65280))) >> (NU64)(((NI)8)));
return result;
}
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) {
NIM_BOOL* result;
result = (NIM_BOOL*)0;
result = (&nimInErrorMode__system_3980);
return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, WIFEXITED__posixZposix_1061)(int s) {
NIM_BOOL result;
int T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
result = (NIM_BOOL)0;
T1_ = (int)0;
T1_ = WTERMSIG__posixZposix_1055(s);
if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
result = (T1_ == ((NI32)0));
}BeforeRet_: ;
return result;
}