mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-16 01:45:40 +00:00
121 lines
6.8 KiB
C
121 lines
6.8 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 -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-libp2p@slibp2p@stranscoder.nim.c.o nimcache/release/wakubridge/@m..@s..@svendor@snim-libp2p@slibp2p@stranscoder.nim.c */
|
|
#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)
|
|
typedef struct tyObject_Transcoder__9bBojgSQChZAb9a4Rkcgm9c8A tyObject_Transcoder__9bBojgSQChZAb9a4Rkcgm9c8A;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
typedef N_NIMCALL_PTR(NIM_BOOL, tyProc__oTWxnDXZ8UmfQCGXf2TQSg) (NimStringDesc* s_0, tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA* vb);
|
|
typedef N_NIMCALL_PTR(NIM_BOOL, tyProc__XIJvvDUKw6aEcio9aI7Sepw) (tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA* vb, NimStringDesc** s_0);
|
|
typedef N_NIMCALL_PTR(NIM_BOOL, tyProc__cq2EvnicUMZiLpiAIa4ypw) (tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA* vb);
|
|
struct tyObject_Transcoder__9bBojgSQChZAb9a4Rkcgm9c8A {tyProc__oTWxnDXZ8UmfQCGXf2TQSg stringToBuffer;
|
|
tyProc__XIJvvDUKw6aEcio9aI7Sepw bufferToString;
|
|
tyProc__cq2EvnicUMZiLpiAIa4ypw validateBuffer;
|
|
};
|
|
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
|
|
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
|
|
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
|
|
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
|
|
struct TNimType {NI size;
|
|
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
|
|
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
|
|
TNimType* base;
|
|
TNimNode* node;
|
|
void* finalizer;
|
|
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
|
|
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
|
|
NCSTRING name;
|
|
TNimType* nextType;
|
|
NI instances;
|
|
NI sizes;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
N_LIB_PRIVATE TNimType NTI__9bBojgSQChZAb9a4Rkcgm9c8A_;
|
|
N_LIB_PRIVATE TNimType NTI__oTWxnDXZ8UmfQCGXf2TQSg_;
|
|
N_LIB_PRIVATE TNimType NTI__XIJvvDUKw6aEcio9aI7Sepw_;
|
|
N_LIB_PRIVATE TNimType NTI__cq2EvnicUMZiLpiAIa4ypw_;
|
|
extern TNimType* nimTypeRoot;
|
|
N_LIB_PRIVATE N_NIMCALL(void, libp2p_transcoderDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__MPoAwTQzbd39c0RFPxKVCZw_2_3[3];
|
|
static TNimNode TM__MPoAwTQzbd39c0RFPxKVCZw_0[4];NTI__9bBojgSQChZAb9a4Rkcgm9c8A_.size = sizeof(tyObject_Transcoder__9bBojgSQChZAb9a4Rkcgm9c8A);
|
|
NTI__9bBojgSQChZAb9a4Rkcgm9c8A_.kind = 18;
|
|
NTI__9bBojgSQChZAb9a4Rkcgm9c8A_.base = 0;
|
|
NTI__9bBojgSQChZAb9a4Rkcgm9c8A_.flags = 3;
|
|
NTI__9bBojgSQChZAb9a4Rkcgm9c8A_.name = "Transcoder";
|
|
NTI__9bBojgSQChZAb9a4Rkcgm9c8A_.nextType = nimTypeRoot; nimTypeRoot=&NTI__9bBojgSQChZAb9a4Rkcgm9c8A_;
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_2_3[0] = &TM__MPoAwTQzbd39c0RFPxKVCZw_0[1];
|
|
NTI__oTWxnDXZ8UmfQCGXf2TQSg_.size = sizeof(tyProc__oTWxnDXZ8UmfQCGXf2TQSg);
|
|
NTI__oTWxnDXZ8UmfQCGXf2TQSg_.kind = 25;
|
|
NTI__oTWxnDXZ8UmfQCGXf2TQSg_.base = 0;
|
|
NTI__oTWxnDXZ8UmfQCGXf2TQSg_.flags = 3;
|
|
NTI__oTWxnDXZ8UmfQCGXf2TQSg_.name = "proc (s: string, vb: var VBuffer): bool{.noSideEffect, gcsafe.}";
|
|
NTI__oTWxnDXZ8UmfQCGXf2TQSg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__oTWxnDXZ8UmfQCGXf2TQSg_;
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[1].kind = 1;
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[1].offset = offsetof(tyObject_Transcoder__9bBojgSQChZAb9a4Rkcgm9c8A, stringToBuffer);
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[1].typ = (&NTI__oTWxnDXZ8UmfQCGXf2TQSg_);
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[1].name = "stringToBuffer";
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_2_3[1] = &TM__MPoAwTQzbd39c0RFPxKVCZw_0[2];
|
|
NTI__XIJvvDUKw6aEcio9aI7Sepw_.size = sizeof(tyProc__XIJvvDUKw6aEcio9aI7Sepw);
|
|
NTI__XIJvvDUKw6aEcio9aI7Sepw_.kind = 25;
|
|
NTI__XIJvvDUKw6aEcio9aI7Sepw_.base = 0;
|
|
NTI__XIJvvDUKw6aEcio9aI7Sepw_.flags = 3;
|
|
NTI__XIJvvDUKw6aEcio9aI7Sepw_.name = "proc (vb: var VBuffer, s: var string): bool{.noSideEffect, gcsa"
|
|
"fe.}";
|
|
NTI__XIJvvDUKw6aEcio9aI7Sepw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__XIJvvDUKw6aEcio9aI7Sepw_;
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[2].kind = 1;
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[2].offset = offsetof(tyObject_Transcoder__9bBojgSQChZAb9a4Rkcgm9c8A, bufferToString);
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[2].typ = (&NTI__XIJvvDUKw6aEcio9aI7Sepw_);
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[2].name = "bufferToString";
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_2_3[2] = &TM__MPoAwTQzbd39c0RFPxKVCZw_0[3];
|
|
NTI__cq2EvnicUMZiLpiAIa4ypw_.size = sizeof(tyProc__cq2EvnicUMZiLpiAIa4ypw);
|
|
NTI__cq2EvnicUMZiLpiAIa4ypw_.kind = 25;
|
|
NTI__cq2EvnicUMZiLpiAIa4ypw_.base = 0;
|
|
NTI__cq2EvnicUMZiLpiAIa4ypw_.flags = 3;
|
|
NTI__cq2EvnicUMZiLpiAIa4ypw_.name = "proc (vb: var VBuffer): bool{.noSideEffect, gcsafe.}";
|
|
NTI__cq2EvnicUMZiLpiAIa4ypw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__cq2EvnicUMZiLpiAIa4ypw_;
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[3].kind = 1;
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[3].offset = offsetof(tyObject_Transcoder__9bBojgSQChZAb9a4Rkcgm9c8A, validateBuffer);
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[3].typ = (&NTI__cq2EvnicUMZiLpiAIa4ypw_);
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[3].name = "validateBuffer";
|
|
TM__MPoAwTQzbd39c0RFPxKVCZw_0[0].len = 3; TM__MPoAwTQzbd39c0RFPxKVCZw_0[0].kind = 2; TM__MPoAwTQzbd39c0RFPxKVCZw_0[0].sons = &TM__MPoAwTQzbd39c0RFPxKVCZw_2_3[0];
|
|
NTI__9bBojgSQChZAb9a4Rkcgm9c8A_.node = &TM__MPoAwTQzbd39c0RFPxKVCZw_0[0];
|
|
}
|
|
|