mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +00:00
116 lines
6.6 KiB
C
116 lines
6.6 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/certs -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/common -o nimcache/release/wakubridge/@m..@s..@svendor@snim-eth@seth@scommon@sutils.nim.c.o nimcache/release/wakubridge/@m..@s..@svendor@snim-eth@seth@scommon@sutils.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <signal.h>
|
|
#include <string.h>
|
|
#include <stdlib.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)
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef unsigned long tyArray__2VPt2Ygo2bc8d9cj8iiKnSg[16];
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1];
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, osErrorMsg__33xViSVWAmDrexoKkLfMhg)(NI32 errorCode);
|
|
N_LIB_PRIVATE N_NIMCALL(NI32, osLastError__9bUWNxbcGnToMWA9b79aTXLIw)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0);
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
|
|
}
|
|
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, ignoreSignalsInThread__pdyHbOZXF9bjmJf9c513qOkA)(void) { sigset_t signalMask; sigset_t oldSignalMask; nimZeroMem((void*)(&signalMask), sizeof(sigset_t)); nimZeroMem((void*)(&oldSignalMask), sizeof(sigset_t));
|
|
#line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
{ int T3_; tyArray__nHXaesL0DJZHyVS07ARPRA T6_; NI32 T7_;
|
|
#line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
T3_ = (int)0; T3_ = sigfillset((&signalMask)); if (!!((T3_ == ((NI32) 0)))) goto LA4_;
|
|
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
nimZeroMem((void*)T6_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
T7_ = (NI32)0; T7_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
T6_[0] = osErrorMsg__33xViSVWAmDrexoKkLfMhg(T7_); echoBinSafe(T6_, 1);
|
|
#line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
exit(((NI) 1));
|
|
}
|
|
LA4_: ;
|
|
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
{ int T10_; tyArray__nHXaesL0DJZHyVS07ARPRA T13_; NI32 T14_;
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
T10_ = (int)0; T10_ = pthread_sigmask(((int) 0), (&signalMask), (&oldSignalMask)); if (!!((T10_ == ((NI32) 0)))) goto LA11_;
|
|
|
|
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
nimZeroMem((void*)T13_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
|
|
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
T14_ = (NI32)0; T14_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
T13_[0] = osErrorMsg__33xViSVWAmDrexoKkLfMhg(T14_); echoBinSafe(T13_, 1);
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/utils.nim"
|
|
exit(((NI) 1));
|
|
}
|
|
LA11_: ;
|
|
}
|