Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Regression caused by vm support for ref types commit
/* Generated by Nim Compiler v0.18.1 */
/* (c) 2018 Andreas Rumpf */
/* The generated code is subject to the original license. */
/* Compiled for: Linux, amd64, gcc */
/* Command for C compiler:
gcc -c -w -I/home/kmodi/usr_local/apps/6/emacs/master/bin -std=gnu99 -fPIC -I/home/kmodi/stow/pkgs/nim/bad/lib -o /home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/misc/nim-emacs-module/test/nimcache/emacs_module_sample.o /home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/misc/nim-emacs-module/test/nimcache/emacs_module_sample.c */
#define NIM_NEW_MANGLING_RULES
#define NIM_INTBITS 64
#include "nimbase.h"
#include <emacs-module.h>
#include <stddef.h>
#include <inttypes.h>
#include <string.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef powerpc
#undef unix
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyTuple_XOVT24GHXwqiEj5GCsEGCA tyTuple_XOVT24GHXwqiEj5GCsEGCA;
typedef N_CDECL_PTR(emacs_value, tyProc_ROaVfacJjlBSNkl9afWVZoA) (emacs_env* env, emacs_value any_reference);
typedef N_CDECL_PTR(void, tyProc_rcX0H5Xfm3eStddKrWRFVg) (emacs_env* env, emacs_value global_reference);
typedef NU8 tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q;
typedef N_CDECL_PTR(tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q, tyProc_COVWH0olPfcPxnnVnGI9aMQ) (emacs_env* env);
typedef N_CDECL_PTR(void, tyProc_c09aRfheitnoB9a9ce2Ss9bHxw) (emacs_env* env);
typedef N_CDECL_PTR(tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q, tyProc_GZynF6uN80aChSqe7CjklQ) (emacs_env* env, emacs_value* non_local_exit_symbol_out, emacs_value* non_local_exit_data_out);
typedef N_CDECL_PTR(void, tyProc_1DWDM4HGkjymSrlg8pfPow) (emacs_env* env, emacs_value non_local_exit_symbol, emacs_value non_local_exit_data);
typedef N_CDECL_PTR(emacs_value, tyProc_pJ7FQOcaJBBbbOzX1jnytw) (emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* _);
typedef N_CDECL_PTR(emacs_value, tyProc_RWdHwz1I0EWScZypOY9c8uQ) (emacs_env* env, ptrdiff_t min_arity, ptrdiff_t max_arity, tyProc_pJ7FQOcaJBBbbOzX1jnytw function, NCSTRING documentation, void* data);
typedef N_CDECL_PTR(emacs_value, tyProc_HcWldiS1q7P3K5qt9bz9bM3A) (emacs_env* env, emacs_value function, ptrdiff_t nargs, emacs_value* args);
typedef N_CDECL_PTR(emacs_value, tyProc_J9bZ6y6TAn35Gw3ljZh7fcA) (emacs_env* env, NCSTRING symbol_name);
typedef N_CDECL_PTR(NIM_BOOL, tyProc_eYkIGzmMISpBdXIxUVc7ZQ) (emacs_env* env, emacs_value value);
typedef N_CDECL_PTR(NIM_BOOL, tyProc_X5T3BmkRQum6TzNyLObu2A) (emacs_env* env, emacs_value a, emacs_value b);
typedef N_CDECL_PTR(intmax_t, tyProc_9cpHpGZfc0cTcupYOfETjmw) (emacs_env* env, emacs_value value);
typedef N_CDECL_PTR(emacs_value, tyProc_1h43V8Mc3qnK7zEiWwiTKA) (emacs_env* env, intmax_t value);
typedef N_CDECL_PTR(double, tyProc_cIOqmpkvi8crPjDkCBnKoQ) (emacs_env* env, emacs_value value);
typedef N_CDECL_PTR(emacs_value, tyProc_Rj6kNYvZZtj1iDeSIvE16Q) (emacs_env* env, double value);
typedef N_CDECL_PTR(NIM_BOOL, tyProc_iwC7zeRZbCF34gkjjku9a6w) (emacs_env* env, emacs_value value, NCSTRING buffer, ptrdiff_t* size_inout);
typedef N_CDECL_PTR(emacs_value, tyProc_Aa13bABzZ5jfxluykN0eGQ) (emacs_env* env, NCSTRING contents, ptrdiff_t length);
typedef N_CDECL_PTR(void, tyProc_32w2ZypAyMWuajvi2Jt79cg) (void* _);
typedef N_CDECL_PTR(emacs_value, tyProc_j2PR9bF1IHZED9aPgJ5yADnw) (emacs_env* env, tyProc_32w2ZypAyMWuajvi2Jt79cg fin, void* ptr_0);
typedef N_CDECL_PTR(void, tyProc_lSZ7Eu4d9czx3NyHtjKL5Rg) (emacs_env* env, emacs_value uptr, tyProc_32w2ZypAyMWuajvi2Jt79cg fin);
typedef N_CDECL_PTR(emacs_value, tyProc_4Ss0t8qHzOJC6tKReNBZKg) (emacs_env* env, emacs_value vec, ptrdiff_t i);
typedef N_CDECL_PTR(void, tyProc_r6h3lXCcJPM1CmESBUG3CA) (emacs_env* env, emacs_value vec, ptrdiff_t i, emacs_value val);
typedef N_CDECL_PTR(ptrdiff_t, tyProc_xrbIaG0XTVB9cUSNjxaMUDQ) (emacs_env* env, emacs_value vec);
struct TGenericSeq {
NI len;
NI reserved;
};
struct NimStringDesc {
TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 tySet_tyEnum_ProcessOption_bnU6W8LhTMnT4JaSWtGlSA;
struct tyTuple_XOVT24GHXwqiEj5GCsEGCA {
NimStringDesc* Field0;
NI Field1;
};
typedef NU8 tySet_tyChar_nmiMWKVIe46vacnhAFrQvw[32];
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_t)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
static N_INLINE(void, nimFrame)(TFrame* s);
N_LIB_PRIVATE N_NOINLINE(void, stackOverflow_II46IjNZztN9bmbxUD8dt8g)(void);
static N_INLINE(void, popFrame)(void);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_sum)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl_aDmpBTs9cPuXp0Mp9cfiNeyA)(NimStringDesc* msg);
static N_INLINE(NI64, addInt64)(NI64 a, NI64 b);
N_NOINLINE(void, raiseOverflow)(void);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_vector_fill)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
static N_INLINE(NI, addInt)(NI a, NI b);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_vector_eq)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_signal)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_throw)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_uname_cmd)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
static N_INLINE(NI, subInt)(NI a, NI b);
static N_INLINE(NI, chckRange)(NI i, NI a, NI b);
N_NOINLINE(void, raiseRangeError)(NI64 val);
N_NOINLINE(void, raiseIndexError)(void);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem_E1xtACub5WcDa3vbrIXbwgsystem)(void* dest, void* source, NI size);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_uname)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_LIB_PRIVATE N_NIMCALL(void, execCmdEx_bITTGyMXZwwEXI9blfpV4cg)(NimStringDesc* command, tySet_tyEnum_ProcessOption_bnU6W8LhTMnT4JaSWtGlSA options, tyTuple_XOVT24GHXwqiEj5GCsEGCA* Result);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuStrip)(NimStringDesc* s, NIM_BOOL leading, NIM_BOOL trailing, tySet_tyChar_nmiMWKVIe46vacnhAFrQvw chars);
/* Lisp utilities for easier readability (simple wrappers). */
/* Provide FEATURE to Emacs. */
static void
provide (emacs_env *env, const char *feature)
{
emacs_value Qfeat = env->intern (env, feature);
emacs_value Qprovide = env->intern (env, "provide");
emacs_value args[] = { Qfeat };
env->funcall (env, Qprovide, 1, args);
}
/* Bind NAME to FUN. */
static void
bind_function (emacs_env *env, const char *name, emacs_value Sfun)
{
emacs_value Qfset = env->intern (env, "fset");
emacs_value Qsym = env->intern (env, name);
emacs_value args[] = { Qsym, Sfun };
env->funcall (env, Qfset, 2, args);
}
/* Module init function. */
int
emacs_module_init (struct emacs_runtime *ert)
{
emacs_env *env = ert->get_environment (ert);
NimMain(); // <- Nim executes this in main function
#define DEFUN(lsym, csym, amin, amax, doc, data) \
bind_function (env, lsym, \
env->make_function (env, amin, amax, csym, doc, data))
DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
sample-mod-test-throw", nimEmacs_sample_mod_test_throw, 0, 0, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
sample-mod-test-throw", nimEmacs_sample_mod_test_throw, 0, 0, NULL, NULL);
sample-mod-test-return-uname-cmd", nimEmacs_sample_mod_test_return_uname_cmd, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
sample-mod-test-throw", nimEmacs_sample_mod_test_throw, 0, 0, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
sample-mod-test-throw", nimEmacs_sample_mod_test_throw, 0, 0, NULL, NULL);
sample-mod-test-return-uname-cmd", nimEmacs_sample_mod_test_return_uname_cmd, 1, 1, NULL, NULL);
sample-mod-test-return-uname", nimEmacs_sample_mod_test_return_uname, 1, 1, NULL, NULL);
#undef DEFUN
provide (env, "sample");
return 0;
}
static N_INLINE(void, initStackBottomWith)(void* locals);
N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom);
N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_parseutilsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_parseutilsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_bitopsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_bitopsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_mathInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_mathDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_algorithmInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_algorithmDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_unicodeInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_unicodeDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_strutilsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_strutilsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, emacs_module_helpersInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, emacs_module_helpersDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, emacs_module_emacs_moduleInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, emacs_module_emacs_moduleDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_posixInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_posixDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_timesInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_timesDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_ospathsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_ospathsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_hashesInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_hashesDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_strtabsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_strtabsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_streamsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_streamsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_linuxInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_linuxDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_cpuinfoInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_cpuinfoDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osprocInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osprocDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void);
N_LIB_PRIVATE N_NIMCALL(void, sampleDatInit000)(void);
extern TFrame* framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw;
STRING_LITERAL(TM_SH2lwAH9aedf2QYRhgqNTew_2, "nargs == 2 ", 11);
STRING_LITERAL(TM_SH2lwAH9aedf2QYRhgqNTew_6, "env.non_local_exit_check(env) == emacs_funcall_exit_return ", 59);
STRING_LITERAL(TM_SH2lwAH9aedf2QYRhgqNTew_8, "uname ", 6);
static NIM_CONST tySet_tyChar_nmiMWKVIe46vacnhAFrQvw TM_SH2lwAH9aedf2QYRhgqNTew_10 = {
0x00, 0x3E, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
static N_INLINE(void, nimFrame)(TFrame* s) {
NI T1_;
T1_ = (NI)0;
{
if (!(framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA4_;
T1_ = ((NI) 0);
}
goto LA2_;
LA4_: ;
{
T1_ = ((NI) ((NI16)((*framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1))));
}
LA2_: ;
(*s).calldepth = ((NI16) (T1_));
(*s).prev = framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw;
framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw = s;
{
if (!((*s).calldepth == ((NI16) 2000))) goto LA9_;
stackOverflow_II46IjNZztN9bmbxUD8dt8g();
}
LA9_: ;
}
static N_INLINE(void, popFrame)(void) {
framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw).prev;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_t)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
nimfr_("mod_test_return_t", "helpers.nim");
result = (emacs_value)0;
nimln_(26, "sample.nim");
result = (*env).intern(env, "t");
popFrame();
return result;
}
static N_INLINE(NI64, addInt64)(NI64 a, NI64 b) {
NI64 result;
{ result = (NI64)0;
result = (NI64)((NU64)(a) + (NU64)(b));
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = (IL64(0) <= (NI64)(result ^ a));
if (T3_) goto LA4_;
T3_ = (IL64(0) <= (NI64)(result ^ b));
LA4_: ;
if (!T3_) goto LA5_;
goto BeforeRet_;
}
LA5_: ;
raiseOverflow();
}BeforeRet_: ;
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_sum)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
intmax_t a;
intmax_t b;
NI64 s;
NI64 TM_SH2lwAH9aedf2QYRhgqNTew_3;
nimfr_("mod_test_sum", "helpers.nim");
result = (emacs_value)0;
nimln_(30, "sample.nim");
{
if (!!((nargs == ((NI) 2)))) goto LA3_;
failedAssertImpl_aDmpBTs9cPuXp0Mp9cfiNeyA(((NimStringDesc*) &TM_SH2lwAH9aedf2QYRhgqNTew_2));
}
LA3_: ;
nimln_(32, "sample.nim");
a = (*env).extract_integer(env, args[(((NI) 0))- 0]);
nimln_(33, "sample.nim");
b = (*env).extract_integer(env, args[(((NI) 1))- 0]);
nimln_(34, "sample.nim");
TM_SH2lwAH9aedf2QYRhgqNTew_3 = addInt64(a, b);
s = (NI64)(TM_SH2lwAH9aedf2QYRhgqNTew_3);
nimln_(36, "sample.nim");
result = (*env).make_integer(env, s);
popFrame();
return result;
}
static N_INLINE(NI, addInt)(NI a, NI b) {
NI result;
{ result = (NI)0;
result = (NI)((NU64)(a) + (NU64)(b));
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = (((NI) 0) <= (NI)(result ^ a));
if (T3_) goto LA4_;
T3_ = (((NI) 0) <= (NI)(result ^ b));
LA4_: ;
if (!T3_) goto LA5_;
goto BeforeRet_;
}
LA5_: ;
raiseOverflow();
}BeforeRet_: ;
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_vector_fill)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
emacs_value vec;
emacs_value val;
ptrdiff_t size;
nimfr_("mod_test_vector_fill", "helpers.nim");
result = (emacs_value)0;
nimln_(41, "sample.nim");
vec = args[(((NI) 0))- 0];
nimln_(42, "sample.nim");
val = args[(((NI) 1))- 0];
nimln_(43, "sample.nim");
size = (*env).vec_size(env, vec);
{
NI i;
NI i_2;
i = (NI)0;
nimln_(3565, "system.nim");
i_2 = ((NI) 0);
{
nimln_(3566, "system.nim");
while (1) {
NI TM_SH2lwAH9aedf2QYRhgqNTew_4;
if (!(i_2 < size)) goto LA3;
nimln_(3567, "system.nim");
i = i_2;
nimln_(46, "sample.nim");
(*env).vec_set(env, vec, i, val);
nimln_(3568, "system.nim");
TM_SH2lwAH9aedf2QYRhgqNTew_4 = addInt(i_2, ((NI) 1));
i_2 = (NI)(TM_SH2lwAH9aedf2QYRhgqNTew_4);
} LA3: ;
}
}
nimln_(47, "sample.nim");
result = (*env).intern(env, "t");
popFrame();
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_vector_eq)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
emacs_value vec;
emacs_value val;
ptrdiff_t size;
nimfr_("mod_test_vector_eq", "helpers.nim");
result = (emacs_value)0;
nimln_(52, "sample.nim");
vec = args[(((NI) 0))- 0];
nimln_(53, "sample.nim");
val = args[(((NI) 1))- 0];
nimln_(54, "sample.nim");
size = (*env).vec_size(env, vec);
{
NI i;
NI i_2;
i = (NI)0;
nimln_(3565, "system.nim");
i_2 = ((NI) 0);
{
nimln_(3566, "system.nim");
while (1) {
NI TM_SH2lwAH9aedf2QYRhgqNTew_5;
if (!(i_2 < size)) goto LA3;
nimln_(3567, "system.nim");
i = i_2;
nimln_(56, "sample.nim");
{
emacs_value T6_;
NIM_BOOL T7_;
T6_ = (emacs_value)0;
T6_ = (*env).vec_get(env, vec, i);
T7_ = (NIM_BOOL)0;
T7_ = (*env).eq(env, T6_, val);
if (!!(T7_)) goto LA8_;
nimln_(57, "sample.nim");
result = (*env).intern(env, "nil");
}
LA8_: ;
nimln_(3568, "system.nim");
TM_SH2lwAH9aedf2QYRhgqNTew_5 = addInt(i_2, ((NI) 1));
i_2 = (NI)(TM_SH2lwAH9aedf2QYRhgqNTew_5);
} LA3: ;
}
}
nimln_(58, "sample.nim");
result = (*env).intern(env, "t");
popFrame();
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_signal)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
emacs_value T6_;
emacs_value T7_;
nimfr_("mod_test_signal", "helpers.nim");
result = (emacs_value)0;
nimln_(62, "sample.nim");
{
tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q T3_;
T3_ = (tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q)0;
T3_ = (*env).non_local_exit_check(env);
if (!!((T3_ == ((tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q) 0)))) goto LA4_;
failedAssertImpl_aDmpBTs9cPuXp0Mp9cfiNeyA(((NimStringDesc*) &TM_SH2lwAH9aedf2QYRhgqNTew_6));
}
LA4_: ;
nimln_(63, "sample.nim");
T6_ = (emacs_value)0;
T6_ = (*env).intern(env, "error");
nimln_(64, "sample.nim");
T7_ = (emacs_value)0;
T7_ = (*env).make_integer(env, IL64(100));
(*env).non_local_exit_signal(env, T6_, T7_);
popFrame();
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_throw)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
emacs_value T6_;
emacs_value T7_;
nimfr_("mod_test_throw", "helpers.nim");
result = (emacs_value)0;
nimln_(67, "sample.nim");
{
tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q T3_;
T3_ = (tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q)0;
T3_ = (*env).non_local_exit_check(env);
if (!!((T3_ == ((tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q) 0)))) goto LA4_;
failedAssertImpl_aDmpBTs9cPuXp0Mp9cfiNeyA(((NimStringDesc*) &TM_SH2lwAH9aedf2QYRhgqNTew_6));
}
LA4_: ;
nimln_(68, "sample.nim");
T6_ = (emacs_value)0;
T6_ = (*env).intern(env, "tag");
nimln_(69, "sample.nim");
T7_ = (emacs_value)0;
T7_ = (*env).make_integer(env, IL64(42));
(*env).non_local_exit_throw(env, T6_, T7_);
nimln_(70, "sample.nim");
result = (*env).intern(env, "nil");
popFrame();
return result;
}
static N_INLINE(NI, subInt)(NI a, NI b) {
NI result;
{ result = (NI)0;
result = (NI)((NU64)(a) - (NU64)(b));
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = (((NI) 0) <= (NI)(result ^ a));
if (T3_) goto LA4_;
T3_ = (((NI) 0) <= (NI)(result ^ (NI)((NU64) ~(b))));
LA4_: ;
if (!T3_) goto LA5_;
goto BeforeRet_;
}
LA5_: ;
raiseOverflow();
}BeforeRet_: ;
return result;
}
static N_INLINE(NI, chckRange)(NI i, NI a, NI b) {
NI result;
{ result = (NI)0;
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = (a <= i);
if (!(T3_)) goto LA4_;
T3_ = (i <= b);
LA4_: ;
if (!T3_) goto LA5_;
result = i;
goto BeforeRet_;
}
goto LA1_;
LA5_: ;
{
raiseRangeError(((NI64) (i)));
}
LA1_: ;
}BeforeRet_: ;
return result;
}
static N_INLINE(void, copyMem_E1xtACub5WcDa3vbrIXbwgsystem)(void* dest, void* source, NI size) {
void* T1_;
T1_ = (void*)0;
T1_ = memcpy(dest, source, ((size_t) (size)));
}
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
{
if (!!((src == NIM_NIL))) goto LA3_;
copyMem_E1xtACub5WcDa3vbrIXbwgsystem(((void*) ((&(*dest).data[((*dest).Sup.len)- 0]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
(*dest).Sup.len += (*src).Sup.len;
}
LA3_: ;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_uname_cmd)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
ptrdiff_t l;
nimfr_("mod_test_return_uname_cmd", "helpers.nim");
result = (emacs_value)0;
l = (ptrdiff_t)0;
nimln_(75, "sample.nim");
{
NIM_BOOL T3_;
NimStringDesc* buf1;
NI TM_SH2lwAH9aedf2QYRhgqNTew_7;
T3_ = (NIM_BOOL)0;
T3_ = (*env).copy_string_contents(env, args[(((NI) 0))- 0], NIM_NIL, (&l));
if (!T3_) goto LA4_;
nimln_(76, "sample.nim");
TM_SH2lwAH9aedf2QYRhgqNTew_7 = subInt(l, ((NI) 1));
buf1 = mnewString(((NI)chckRange((NI)(TM_SH2lwAH9aedf2QYRhgqNTew_7), ((NI) 0), ((NI) IL64(9223372036854775807)))));
nimln_(77, "sample.nim");
{
NIM_BOOL T8_;
NimStringDesc* res;
NimStringDesc* T11_;
if (!buf1 || (NU)(((NI) 0)) >= (NU)(buf1->Sup.len)) raiseIndexError();
T8_ = (NIM_BOOL)0;
T8_ = (*env).copy_string_contents(env, args[(((NI) 0))- 0], ((NCSTRING) ((&buf1->data[((NI) 0)]))), (&l));
if (!T8_) goto LA9_;
nimln_(78, "sample.nim");
T11_ = (NimStringDesc*)0;
T11_ = rawNewString((buf1 ? buf1->Sup.len : 0) + 6);
appendString(T11_, ((NimStringDesc*) &TM_SH2lwAH9aedf2QYRhgqNTew_8));
appendString(T11_, buf1);
res = T11_;
nimln_(79, "sample.nim");
if (!res || (NU)(((NI) 0)) >= (NU)(res->Sup.len)) raiseIndexError();
result = (*env).make_string(env, ((NCSTRING) ((&res->data[((NI) 0)]))), (res ? res->Sup.len : 0));
}
LA9_: ;
}
LA4_: ;
popFrame();
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_uname)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
ptrdiff_t l;
nimfr_("mod_test_return_uname", "helpers.nim");
result = (emacs_value)0;
l = (ptrdiff_t)0;
nimln_(85, "sample.nim");
{
NIM_BOOL T3_;
NimStringDesc* buf1;
NI TM_SH2lwAH9aedf2QYRhgqNTew_9;
T3_ = (NIM_BOOL)0;
T3_ = (*env).copy_string_contents(env, args[(((NI) 0))- 0], NIM_NIL, (&l));
if (!T3_) goto LA4_;
nimln_(86, "sample.nim");
TM_SH2lwAH9aedf2QYRhgqNTew_9 = subInt(l, ((NI) 1));
buf1 = mnewString(((NI)chckRange((NI)(TM_SH2lwAH9aedf2QYRhgqNTew_9), ((NI) 0), ((NI) IL64(9223372036854775807)))));
nimln_(87, "sample.nim");
{
NIM_BOOL T8_;
NimStringDesc* T11_;
tyTuple_XOVT24GHXwqiEj5GCsEGCA T12_;
NimStringDesc* res;
NI _;
if (!buf1 || (NU)(((NI) 0)) >= (NU)(buf1->Sup.len)) raiseIndexError();
T8_ = (NIM_BOOL)0;
T8_ = (*env).copy_string_contents(env, args[(((NI) 0))- 0], ((NCSTRING) ((&buf1->data[((NI) 0)]))), (&l));
if (!T8_) goto LA9_;
nimln_(88, "sample.nim");
T11_ = (NimStringDesc*)0;
T11_ = rawNewString((buf1 ? buf1->Sup.len : 0) + 6);
appendString(T11_, ((NimStringDesc*) &TM_SH2lwAH9aedf2QYRhgqNTew_8));
appendString(T11_, buf1);
memset((void*)(&T12_), 0, sizeof(tyTuple_XOVT24GHXwqiEj5GCsEGCA));
execCmdEx_bITTGyMXZwwEXI9blfpV4cg(T11_, 10, (&T12_));
res = (NimStringDesc*)0;
res = copyString(T12_.Field0);
_ = (NI)0;
_ = T12_.Field1;
nimln_(89, "sample.nim");
res = nsuStrip(res, NIM_TRUE, NIM_TRUE, TM_SH2lwAH9aedf2QYRhgqNTew_10);
nimln_(90, "sample.nim");
if (!res || (NU)(((NI) 0)) >= (NU)(res->Sup.len)) raiseIndexError();
result = (*env).make_string(env, ((NCSTRING) ((&res->data[((NI) 0)]))), (res ? res->Sup.len : 0));
}
LA9_: ;
}
LA4_: ;
popFrame();
return result;
}
static N_INLINE(void, initStackBottomWith)(void* locals) {
nimGC_setStackBottom(locals);
}
void PreMainInner(void) {
systemInit000();
stdlib_parseutilsDatInit000();
stdlib_bitopsDatInit000();
stdlib_mathDatInit000();
stdlib_algorithmDatInit000();
stdlib_unicodeDatInit000();
stdlib_strutilsDatInit000();
emacs_module_helpersDatInit000();
emacs_module_emacs_moduleDatInit000();
stdlib_posixDatInit000();
stdlib_timesDatInit000();
stdlib_ospathsDatInit000();
stdlib_osDatInit000();
stdlib_hashesDatInit000();
stdlib_strtabsDatInit000();
stdlib_streamsDatInit000();
stdlib_linuxDatInit000();
stdlib_cpuinfoDatInit000();
stdlib_osprocDatInit000();
sampleDatInit000();
stdlib_parseutilsInit000();
stdlib_bitopsInit000();
stdlib_mathInit000();
stdlib_algorithmInit000();
stdlib_unicodeInit000();
stdlib_strutilsInit000();
emacs_module_helpersInit000();
emacs_module_emacs_moduleInit000();
stdlib_posixInit000();
stdlib_timesInit000();
stdlib_ospathsInit000();
stdlib_osInit000();
stdlib_hashesInit000();
stdlib_strtabsInit000();
stdlib_streamsInit000();
stdlib_linuxInit000();
stdlib_cpuinfoInit000();
stdlib_osprocInit000();
}
void PreMain(void) {
void (*volatile inner)(void);
systemDatInit000();
inner = PreMainInner;
initStackBottomWith((void *)&inner);
(*inner)();
}
N_CDECL(void, NimMainInner)(void) {
NimMainModule();
}
N_LIB_EXPORT N_CDECL(void, NimMain)(void) {
void (*volatile inner)(void);
PreMain();
inner = NimMainInner;
initStackBottomWith((void *)&inner);
(*inner)();
}
void NIM_POSIX_INIT NimMainInit(void) {
NimMain();
}
N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) {
nimfr_("sample", "sample.nim");
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, sampleDatInit000)(void) {
}
/* Generated by Nim Compiler v0.18.1 */
/* (c) 2018 Andreas Rumpf */
/* The generated code is subject to the original license. */
/* Compiled for: Linux, amd64, gcc */
/* Command for C compiler:
gcc -c -w -I/home/kmodi/usr_local/apps/6/emacs/master/bin -std=gnu99 -fPIC -I/home/kmodi/stow/pkgs/nim/devel/lib -o /home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/misc/nim-emacs-module/test/nimcache/emacs_module_sample.o /home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/misc/nim-emacs-module/test/nimcache/emacs_module_sample.c */
#define NIM_NEW_MANGLING_RULES
#define NIM_INTBITS 64
#include "nimbase.h"
#include <emacs-module.h>
#include <stddef.h>
#include <inttypes.h>
#include <string.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef powerpc
#undef unix
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyTuple_XOVT24GHXwqiEj5GCsEGCA tyTuple_XOVT24GHXwqiEj5GCsEGCA;
typedef N_CDECL_PTR(emacs_value, tyProc_ROaVfacJjlBSNkl9afWVZoA) (emacs_env* env, emacs_value any_reference);
typedef N_CDECL_PTR(void, tyProc_rcX0H5Xfm3eStddKrWRFVg) (emacs_env* env, emacs_value global_reference);
typedef NU8 tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q;
typedef N_CDECL_PTR(tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q, tyProc_COVWH0olPfcPxnnVnGI9aMQ) (emacs_env* env);
typedef N_CDECL_PTR(void, tyProc_c09aRfheitnoB9a9ce2Ss9bHxw) (emacs_env* env);
typedef N_CDECL_PTR(tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q, tyProc_GZynF6uN80aChSqe7CjklQ) (emacs_env* env, emacs_value* non_local_exit_symbol_out, emacs_value* non_local_exit_data_out);
typedef N_CDECL_PTR(void, tyProc_1DWDM4HGkjymSrlg8pfPow) (emacs_env* env, emacs_value non_local_exit_symbol, emacs_value non_local_exit_data);
typedef N_CDECL_PTR(emacs_value, tyProc_pJ7FQOcaJBBbbOzX1jnytw) (emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* _);
typedef N_CDECL_PTR(emacs_value, tyProc_RWdHwz1I0EWScZypOY9c8uQ) (emacs_env* env, ptrdiff_t min_arity, ptrdiff_t max_arity, tyProc_pJ7FQOcaJBBbbOzX1jnytw function, NCSTRING documentation, void* data);
typedef N_CDECL_PTR(emacs_value, tyProc_HcWldiS1q7P3K5qt9bz9bM3A) (emacs_env* env, emacs_value function, ptrdiff_t nargs, emacs_value* args);
typedef N_CDECL_PTR(emacs_value, tyProc_J9bZ6y6TAn35Gw3ljZh7fcA) (emacs_env* env, NCSTRING symbol_name);
typedef N_CDECL_PTR(NIM_BOOL, tyProc_eYkIGzmMISpBdXIxUVc7ZQ) (emacs_env* env, emacs_value value);
typedef N_CDECL_PTR(NIM_BOOL, tyProc_X5T3BmkRQum6TzNyLObu2A) (emacs_env* env, emacs_value a, emacs_value b);
typedef N_CDECL_PTR(intmax_t, tyProc_9cpHpGZfc0cTcupYOfETjmw) (emacs_env* env, emacs_value value);
typedef N_CDECL_PTR(emacs_value, tyProc_1h43V8Mc3qnK7zEiWwiTKA) (emacs_env* env, intmax_t value);
typedef N_CDECL_PTR(double, tyProc_cIOqmpkvi8crPjDkCBnKoQ) (emacs_env* env, emacs_value value);
typedef N_CDECL_PTR(emacs_value, tyProc_Rj6kNYvZZtj1iDeSIvE16Q) (emacs_env* env, double value);
typedef N_CDECL_PTR(NIM_BOOL, tyProc_iwC7zeRZbCF34gkjjku9a6w) (emacs_env* env, emacs_value value, NCSTRING buffer, ptrdiff_t* size_inout);
typedef N_CDECL_PTR(emacs_value, tyProc_Aa13bABzZ5jfxluykN0eGQ) (emacs_env* env, NCSTRING contents, ptrdiff_t length);
typedef N_CDECL_PTR(void, tyProc_32w2ZypAyMWuajvi2Jt79cg) (void* _);
typedef N_CDECL_PTR(emacs_value, tyProc_j2PR9bF1IHZED9aPgJ5yADnw) (emacs_env* env, tyProc_32w2ZypAyMWuajvi2Jt79cg fin, void* ptr_0);
typedef N_CDECL_PTR(void, tyProc_lSZ7Eu4d9czx3NyHtjKL5Rg) (emacs_env* env, emacs_value uptr, tyProc_32w2ZypAyMWuajvi2Jt79cg fin);
typedef N_CDECL_PTR(emacs_value, tyProc_4Ss0t8qHzOJC6tKReNBZKg) (emacs_env* env, emacs_value vec, ptrdiff_t i);
typedef N_CDECL_PTR(void, tyProc_r6h3lXCcJPM1CmESBUG3CA) (emacs_env* env, emacs_value vec, ptrdiff_t i, emacs_value val);
typedef N_CDECL_PTR(ptrdiff_t, tyProc_xrbIaG0XTVB9cUSNjxaMUDQ) (emacs_env* env, emacs_value vec);
struct TGenericSeq {
NI len;
NI reserved;
};
struct NimStringDesc {
TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 tySet_tyEnum_ProcessOption_bnU6W8LhTMnT4JaSWtGlSA;
struct tyTuple_XOVT24GHXwqiEj5GCsEGCA {
NimStringDesc* Field0;
NI Field1;
};
typedef NU8 tySet_tyChar_nmiMWKVIe46vacnhAFrQvw[32];
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_t)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
static N_INLINE(void, nimFrame)(TFrame* s);
N_LIB_PRIVATE N_NOINLINE(void, stackOverflow_II46IjNZztN9bmbxUD8dt8g)(void);
static N_INLINE(void, popFrame)(void);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_sum)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl_aDmpBTs9cPuXp0Mp9cfiNeyA)(NimStringDesc* msg);
static N_INLINE(NI64, addInt64)(NI64 a, NI64 b);
N_NOINLINE(void, raiseOverflow)(void);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_vector_fill)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
static N_INLINE(NI, addInt)(NI a, NI b);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_vector_eq)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_signal)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_throw)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_uname_cmd)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
static N_INLINE(NI, subInt)(NI a, NI b);
static N_INLINE(NI, chckRange)(NI i, NI a, NI b);
N_NOINLINE(void, raiseRangeError)(NI64 val);
N_NOINLINE(void, raiseIndexError)(void);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem_E1xtACub5WcDa3vbrIXbwgsystem)(void* dest, void* source, NI size);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_uname)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data);
N_LIB_PRIVATE N_NIMCALL(void, execCmdEx_bITTGyMXZwwEXI9blfpV4cg)(NimStringDesc* command, tySet_tyEnum_ProcessOption_bnU6W8LhTMnT4JaSWtGlSA options, tyTuple_XOVT24GHXwqiEj5GCsEGCA* Result);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuStrip)(NimStringDesc* s, NIM_BOOL leading, NIM_BOOL trailing, tySet_tyChar_nmiMWKVIe46vacnhAFrQvw chars);
/* Lisp utilities for easier readability (simple wrappers). */
/* Provide FEATURE to Emacs. */
static void
provide (emacs_env *env, const char *feature)
{
emacs_value Qfeat = env->intern (env, feature);
emacs_value Qprovide = env->intern (env, "provide");
emacs_value args[] = { Qfeat };
env->funcall (env, Qprovide, 1, args);
}
/* Bind NAME to FUN. */
static void
bind_function (emacs_env *env, const char *name, emacs_value Sfun)
{
emacs_value Qfset = env->intern (env, "fset");
emacs_value Qsym = env->intern (env, name);
emacs_value args[] = { Qsym, Sfun };
env->funcall (env, Qfset, 2, args);
}
/* Module init function. */
int
emacs_module_init (struct emacs_runtime *ert)
{
emacs_env *env = ert->get_environment (ert);
NimMain(); // <- Nim executes this in main function
#define DEFUN(lsym, csym, amin, amax, doc, data) \
bind_function (env, lsym, \
env->make_function (env, amin, amax, csym, doc, data))
DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
DEFUN ("sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
DEFUN ("sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
DEFUN ("sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
DEFUN ("sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
DEFUN ("sample-mod-test-throw", nimEmacs_sample_mod_test_throw, 0, 0, NULL, NULL);
DEFUN ("sample-mod-test-return-uname-cmd", nimEmacs_sample_mod_test_return_uname_cmd, 1, 1, NULL, NULL);
DEFUN ("sample-mod-test-return-uname", nimEmacs_sample_mod_test_return_uname, 1, 1, NULL, NULL);
#undef DEFUN
provide (env, "sample");
return 0;
}
static N_INLINE(void, initStackBottomWith)(void* locals);
N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom);
N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_parseutilsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_parseutilsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_bitopsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_bitopsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_mathInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_mathDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_algorithmInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_algorithmDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_unicodeInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_unicodeDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_strutilsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_strutilsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, emacs_module_helpersInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, emacs_module_helpersDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, emacs_module_emacs_moduleInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, emacs_module_emacs_moduleDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_posixInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_posixDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_timesInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_timesDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_ospathsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_ospathsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_hashesInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_hashesDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_strtabsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_strtabsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_streamsInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_streamsDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_linuxInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_linuxDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_cpuinfoInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_cpuinfoDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osprocInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osprocDatInit000)(void);
N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void);
N_LIB_PRIVATE N_NIMCALL(void, sampleDatInit000)(void);
extern TFrame* framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw;
STRING_LITERAL(TM_SH2lwAH9aedf2QYRhgqNTew_2, "nargs == 2 ", 11);
STRING_LITERAL(TM_SH2lwAH9aedf2QYRhgqNTew_6, "env.non_local_exit_check(env) == emacs_funcall_exit_return ", 59);
STRING_LITERAL(TM_SH2lwAH9aedf2QYRhgqNTew_8, "uname ", 6);
static NIM_CONST tySet_tyChar_nmiMWKVIe46vacnhAFrQvw TM_SH2lwAH9aedf2QYRhgqNTew_10 = {
0x00, 0x3E, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
static N_INLINE(void, nimFrame)(TFrame* s) {
NI T1_;
T1_ = (NI)0;
{
if (!(framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA4_;
T1_ = ((NI) 0);
}
goto LA2_;
LA4_: ;
{
T1_ = ((NI) ((NI16)((*framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1))));
}
LA2_: ;
(*s).calldepth = ((NI16) (T1_));
(*s).prev = framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw;
framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw = s;
{
if (!((*s).calldepth == ((NI16) 2000))) goto LA9_;
stackOverflow_II46IjNZztN9bmbxUD8dt8g();
}
LA9_: ;
}
static N_INLINE(void, popFrame)(void) {
framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr_HRfVMH3jYeBJz6Q6X9b6Ptw).prev;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_t)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
nimfr_("mod_test_return_t", "helpers.nim");
result = (emacs_value)0;
nimln_(26, "sample.nim");
result = (*env).intern(env, "t");
popFrame();
return result;
}
static N_INLINE(NI64, addInt64)(NI64 a, NI64 b) {
NI64 result;
{ result = (NI64)0;
result = (NI64)((NU64)(a) + (NU64)(b));
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = (IL64(0) <= (NI64)(result ^ a));
if (T3_) goto LA4_;
T3_ = (IL64(0) <= (NI64)(result ^ b));
LA4_: ;
if (!T3_) goto LA5_;
goto BeforeRet_;
}
LA5_: ;
raiseOverflow();
}BeforeRet_: ;
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_sum)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
intmax_t a;
intmax_t b;
NI64 s;
NI64 TM_SH2lwAH9aedf2QYRhgqNTew_3;
nimfr_("mod_test_sum", "helpers.nim");
result = (emacs_value)0;
nimln_(30, "sample.nim");
{
if (!!((nargs == ((NI) 2)))) goto LA3_;
failedAssertImpl_aDmpBTs9cPuXp0Mp9cfiNeyA(((NimStringDesc*) &TM_SH2lwAH9aedf2QYRhgqNTew_2));
}
LA3_: ;
nimln_(32, "sample.nim");
a = (*env).extract_integer(env, args[(((NI) 0))- 0]);
nimln_(33, "sample.nim");
b = (*env).extract_integer(env, args[(((NI) 1))- 0]);
nimln_(34, "sample.nim");
TM_SH2lwAH9aedf2QYRhgqNTew_3 = addInt64(a, b);
s = (NI64)(TM_SH2lwAH9aedf2QYRhgqNTew_3);
nimln_(36, "sample.nim");
result = (*env).make_integer(env, s);
popFrame();
return result;
}
static N_INLINE(NI, addInt)(NI a, NI b) {
NI result;
{ result = (NI)0;
result = (NI)((NU64)(a) + (NU64)(b));
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = (((NI) 0) <= (NI)(result ^ a));
if (T3_) goto LA4_;
T3_ = (((NI) 0) <= (NI)(result ^ b));
LA4_: ;
if (!T3_) goto LA5_;
goto BeforeRet_;
}
LA5_: ;
raiseOverflow();
}BeforeRet_: ;
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_vector_fill)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
emacs_value vec;
emacs_value val;
ptrdiff_t size;
nimfr_("mod_test_vector_fill", "helpers.nim");
result = (emacs_value)0;
nimln_(41, "sample.nim");
vec = args[(((NI) 0))- 0];
nimln_(42, "sample.nim");
val = args[(((NI) 1))- 0];
nimln_(43, "sample.nim");
size = (*env).vec_size(env, vec);
{
NI i;
NI i_2;
i = (NI)0;
nimln_(3565, "system.nim");
i_2 = ((NI) 0);
{
nimln_(3566, "system.nim");
while (1) {
NI TM_SH2lwAH9aedf2QYRhgqNTew_4;
if (!(i_2 < size)) goto LA3;
nimln_(3567, "system.nim");
i = i_2;
nimln_(46, "sample.nim");
(*env).vec_set(env, vec, i, val);
nimln_(3568, "system.nim");
TM_SH2lwAH9aedf2QYRhgqNTew_4 = addInt(i_2, ((NI) 1));
i_2 = (NI)(TM_SH2lwAH9aedf2QYRhgqNTew_4);
} LA3: ;
}
}
nimln_(47, "sample.nim");
result = (*env).intern(env, "t");
popFrame();
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_vector_eq)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
emacs_value vec;
emacs_value val;
ptrdiff_t size;
nimfr_("mod_test_vector_eq", "helpers.nim");
result = (emacs_value)0;
nimln_(52, "sample.nim");
vec = args[(((NI) 0))- 0];
nimln_(53, "sample.nim");
val = args[(((NI) 1))- 0];
nimln_(54, "sample.nim");
size = (*env).vec_size(env, vec);
{
NI i;
NI i_2;
i = (NI)0;
nimln_(3565, "system.nim");
i_2 = ((NI) 0);
{
nimln_(3566, "system.nim");
while (1) {
NI TM_SH2lwAH9aedf2QYRhgqNTew_5;
if (!(i_2 < size)) goto LA3;
nimln_(3567, "system.nim");
i = i_2;
nimln_(56, "sample.nim");
{
emacs_value T6_;
NIM_BOOL T7_;
T6_ = (emacs_value)0;
T6_ = (*env).vec_get(env, vec, i);
T7_ = (NIM_BOOL)0;
T7_ = (*env).eq(env, T6_, val);
if (!!(T7_)) goto LA8_;
nimln_(57, "sample.nim");
result = (*env).intern(env, "nil");
}
LA8_: ;
nimln_(3568, "system.nim");
TM_SH2lwAH9aedf2QYRhgqNTew_5 = addInt(i_2, ((NI) 1));
i_2 = (NI)(TM_SH2lwAH9aedf2QYRhgqNTew_5);
} LA3: ;
}
}
nimln_(58, "sample.nim");
result = (*env).intern(env, "t");
popFrame();
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_signal)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
emacs_value T6_;
emacs_value T7_;
nimfr_("mod_test_signal", "helpers.nim");
result = (emacs_value)0;
nimln_(62, "sample.nim");
{
tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q T3_;
T3_ = (tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q)0;
T3_ = (*env).non_local_exit_check(env);
if (!!((T3_ == ((tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q) 0)))) goto LA4_;
failedAssertImpl_aDmpBTs9cPuXp0Mp9cfiNeyA(((NimStringDesc*) &TM_SH2lwAH9aedf2QYRhgqNTew_6));
}
LA4_: ;
nimln_(63, "sample.nim");
T6_ = (emacs_value)0;
T6_ = (*env).intern(env, "error");
nimln_(64, "sample.nim");
T7_ = (emacs_value)0;
T7_ = (*env).make_integer(env, IL64(100));
(*env).non_local_exit_signal(env, T6_, T7_);
popFrame();
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_throw)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
emacs_value T6_;
emacs_value T7_;
nimfr_("mod_test_throw", "helpers.nim");
result = (emacs_value)0;
nimln_(67, "sample.nim");
{
tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q T3_;
T3_ = (tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q)0;
T3_ = (*env).non_local_exit_check(env);
if (!!((T3_ == ((tyEnum_emacs_funcall_exit_KBetpbHwghjI8Cv0ecOW8Q) 0)))) goto LA4_;
failedAssertImpl_aDmpBTs9cPuXp0Mp9cfiNeyA(((NimStringDesc*) &TM_SH2lwAH9aedf2QYRhgqNTew_6));
}
LA4_: ;
nimln_(68, "sample.nim");
T6_ = (emacs_value)0;
T6_ = (*env).intern(env, "tag");
nimln_(69, "sample.nim");
T7_ = (emacs_value)0;
T7_ = (*env).make_integer(env, IL64(42));
(*env).non_local_exit_throw(env, T6_, T7_);
nimln_(70, "sample.nim");
result = (*env).intern(env, "nil");
popFrame();
return result;
}
static N_INLINE(NI, subInt)(NI a, NI b) {
NI result;
{ result = (NI)0;
result = (NI)((NU64)(a) - (NU64)(b));
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = (((NI) 0) <= (NI)(result ^ a));
if (T3_) goto LA4_;
T3_ = (((NI) 0) <= (NI)(result ^ (NI)((NU64) ~(b))));
LA4_: ;
if (!T3_) goto LA5_;
goto BeforeRet_;
}
LA5_: ;
raiseOverflow();
}BeforeRet_: ;
return result;
}
static N_INLINE(NI, chckRange)(NI i, NI a, NI b) {
NI result;
{ result = (NI)0;
{
NIM_BOOL T3_;
T3_ = (NIM_BOOL)0;
T3_ = (a <= i);
if (!(T3_)) goto LA4_;
T3_ = (i <= b);
LA4_: ;
if (!T3_) goto LA5_;
result = i;
goto BeforeRet_;
}
goto LA1_;
LA5_: ;
{
raiseRangeError(((NI64) (i)));
}
LA1_: ;
}BeforeRet_: ;
return result;
}
static N_INLINE(void, copyMem_E1xtACub5WcDa3vbrIXbwgsystem)(void* dest, void* source, NI size) {
void* T1_;
T1_ = (void*)0;
T1_ = memcpy(dest, source, ((size_t) (size)));
}
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
{
if (!!((src == NIM_NIL))) goto LA3_;
copyMem_E1xtACub5WcDa3vbrIXbwgsystem(((void*) ((&(*dest).data[((*dest).Sup.len)- 0]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
(*dest).Sup.len += (*src).Sup.len;
}
LA3_: ;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_uname_cmd)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
ptrdiff_t l;
nimfr_("mod_test_return_uname_cmd", "helpers.nim");
result = (emacs_value)0;
l = (ptrdiff_t)0;
nimln_(75, "sample.nim");
{
NIM_BOOL T3_;
NimStringDesc* buf1;
NI TM_SH2lwAH9aedf2QYRhgqNTew_7;
T3_ = (NIM_BOOL)0;
T3_ = (*env).copy_string_contents(env, args[(((NI) 0))- 0], NIM_NIL, (&l));
if (!T3_) goto LA4_;
nimln_(76, "sample.nim");
TM_SH2lwAH9aedf2QYRhgqNTew_7 = subInt(l, ((NI) 1));
buf1 = mnewString(((NI)chckRange((NI)(TM_SH2lwAH9aedf2QYRhgqNTew_7), ((NI) 0), ((NI) IL64(9223372036854775807)))));
nimln_(77, "sample.nim");
{
NIM_BOOL T8_;
NimStringDesc* res;
NimStringDesc* T11_;
if (!buf1 || (NU)(((NI) 0)) >= (NU)(buf1->Sup.len)) raiseIndexError();
T8_ = (NIM_BOOL)0;
T8_ = (*env).copy_string_contents(env, args[(((NI) 0))- 0], ((NCSTRING) ((&buf1->data[((NI) 0)]))), (&l));
if (!T8_) goto LA9_;
nimln_(78, "sample.nim");
T11_ = (NimStringDesc*)0;
T11_ = rawNewString((buf1 ? buf1->Sup.len : 0) + 6);
appendString(T11_, ((NimStringDesc*) &TM_SH2lwAH9aedf2QYRhgqNTew_8));
appendString(T11_, buf1);
res = T11_;
nimln_(79, "sample.nim");
if (!res || (NU)(((NI) 0)) >= (NU)(res->Sup.len)) raiseIndexError();
result = (*env).make_string(env, ((NCSTRING) ((&res->data[((NI) 0)]))), (res ? res->Sup.len : 0));
}
LA9_: ;
}
LA4_: ;
popFrame();
return result;
}
N_NIMCALL(emacs_value, nimEmacs_sample_mod_test_return_uname)(emacs_env* env, ptrdiff_t nargs, emacs_value* args, void* data) {
emacs_value result;
ptrdiff_t l;
nimfr_("mod_test_return_uname", "helpers.nim");
result = (emacs_value)0;
l = (ptrdiff_t)0;
nimln_(85, "sample.nim");
{
NIM_BOOL T3_;
NimStringDesc* buf1;
NI TM_SH2lwAH9aedf2QYRhgqNTew_9;
T3_ = (NIM_BOOL)0;
T3_ = (*env).copy_string_contents(env, args[(((NI) 0))- 0], NIM_NIL, (&l));
if (!T3_) goto LA4_;
nimln_(86, "sample.nim");
TM_SH2lwAH9aedf2QYRhgqNTew_9 = subInt(l, ((NI) 1));
buf1 = mnewString(((NI)chckRange((NI)(TM_SH2lwAH9aedf2QYRhgqNTew_9), ((NI) 0), ((NI) IL64(9223372036854775807)))));
nimln_(87, "sample.nim");
{
NIM_BOOL T8_;
NimStringDesc* T11_;
tyTuple_XOVT24GHXwqiEj5GCsEGCA T12_;
NimStringDesc* res;
NI _;
if (!buf1 || (NU)(((NI) 0)) >= (NU)(buf1->Sup.len)) raiseIndexError();
T8_ = (NIM_BOOL)0;
T8_ = (*env).copy_string_contents(env, args[(((NI) 0))- 0], ((NCSTRING) ((&buf1->data[((NI) 0)]))), (&l));
if (!T8_) goto LA9_;
nimln_(88, "sample.nim");
T11_ = (NimStringDesc*)0;
T11_ = rawNewString((buf1 ? buf1->Sup.len : 0) + 6);
appendString(T11_, ((NimStringDesc*) &TM_SH2lwAH9aedf2QYRhgqNTew_8));
appendString(T11_, buf1);
memset((void*)(&T12_), 0, sizeof(tyTuple_XOVT24GHXwqiEj5GCsEGCA));
execCmdEx_bITTGyMXZwwEXI9blfpV4cg(T11_, 10, (&T12_));
res = (NimStringDesc*)0;
res = copyString(T12_.Field0);
_ = (NI)0;
_ = T12_.Field1;
nimln_(89, "sample.nim");
res = nsuStrip(res, NIM_TRUE, NIM_TRUE, TM_SH2lwAH9aedf2QYRhgqNTew_10);
nimln_(90, "sample.nim");
if (!res || (NU)(((NI) 0)) >= (NU)(res->Sup.len)) raiseIndexError();
result = (*env).make_string(env, ((NCSTRING) ((&res->data[((NI) 0)]))), (res ? res->Sup.len : 0));
}
LA9_: ;
}
LA4_: ;
popFrame();
return result;
}
static N_INLINE(void, initStackBottomWith)(void* locals) {
nimGC_setStackBottom(locals);
}
void PreMainInner(void) {
systemInit000();
stdlib_parseutilsDatInit000();
stdlib_bitopsDatInit000();
stdlib_mathDatInit000();
stdlib_algorithmDatInit000();
stdlib_unicodeDatInit000();
stdlib_strutilsDatInit000();
emacs_module_helpersDatInit000();
emacs_module_emacs_moduleDatInit000();
stdlib_posixDatInit000();
stdlib_timesDatInit000();
stdlib_ospathsDatInit000();
stdlib_osDatInit000();
stdlib_hashesDatInit000();
stdlib_strtabsDatInit000();
stdlib_streamsDatInit000();
stdlib_linuxDatInit000();
stdlib_cpuinfoDatInit000();
stdlib_osprocDatInit000();
sampleDatInit000();
stdlib_parseutilsInit000();
stdlib_bitopsInit000();
stdlib_mathInit000();
stdlib_algorithmInit000();
stdlib_unicodeInit000();
stdlib_strutilsInit000();
emacs_module_helpersInit000();
emacs_module_emacs_moduleInit000();
stdlib_posixInit000();
stdlib_timesInit000();
stdlib_ospathsInit000();
stdlib_osInit000();
stdlib_hashesInit000();
stdlib_strtabsInit000();
stdlib_streamsInit000();
stdlib_linuxInit000();
stdlib_cpuinfoInit000();
stdlib_osprocInit000();
}
void PreMain(void) {
void (*volatile inner)(void);
systemDatInit000();
inner = PreMainInner;
initStackBottomWith((void *)&inner);
(*inner)();
}
N_CDECL(void, NimMainInner)(void) {
NimMainModule();
}
N_LIB_EXPORT N_CDECL(void, NimMain)(void) {
void (*volatile inner)(void);
PreMain();
inner = NimMainInner;
initStackBottomWith((void *)&inner);
(*inner)();
}
void NIM_POSIX_INIT NimMainInit(void) {
NimMain();
}
N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) {
nimfr_("sample", "sample.nim");
popFrame();
}
N_LIB_PRIVATE N_NIMCALL(void, sampleDatInit000)(void) {
}
6c6
< gcc -c -w -I/home/kmodi/usr_local/apps/6/emacs/master/bin -std=gnu99 -fPIC -I/home/kmodi/stow/pkgs/nim/devel/lib -o /home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/misc/nim-emacs-module/test/nimcache/emacs_module_sample.o /home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/misc/nim-emacs-module/test/nimcache/emacs_module_sample.c */
---
> gcc -c -w -I/home/kmodi/usr_local/apps/6/emacs/master/bin -std=gnu99 -fPIC -I/home/kmodi/stow/pkgs/nim/bad/lib -o /home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/misc/nim-emacs-module/test/nimcache/emacs_module_sample.o /home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/misc/nim-emacs-module/test/nimcache/emacs_module_sample.c */
130,136c130,383
< DEFUN ("sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
< DEFUN ("sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
< DEFUN ("sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
< DEFUN ("sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
< DEFUN ("sample-mod-test-throw", nimEmacs_sample_mod_test_throw, 0, 0, NULL, NULL);
< DEFUN ("sample-mod-test-return-uname-cmd", nimEmacs_sample_mod_test_return_uname_cmd, 1, 1, NULL, NULL);
< DEFUN ("sample-mod-test-return-uname", nimEmacs_sample_mod_test_return_uname, 1, 1, NULL, NULL);
---
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
> sample-mod-test-throw", nimEmacs_sample_mod_test_throw, 0, 0, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
> sample-mod-test-throw", nimEmacs_sample_mod_test_throw, 0, 0, NULL, NULL);
> sample-mod-test-return-uname-cmd", nimEmacs_sample_mod_test_return_uname_cmd, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
> sample-mod-test-throw", nimEmacs_sample_mod_test_throw, 0, 0, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> DEFUN ("DEFUN ("sample-mod-test-return-t", nimEmacs_sample_mod_test_return_t, 1, 1, NULL, NULL);
> sample-mod-test-sum", nimEmacs_sample_mod_test_sum, 2, 2, NULL, NULL);
> sample-mod-test-vector-fill", nimEmacs_sample_mod_test_vector_fill, 2, 2, NULL, NULL);
> sample-mod-test-vector-eq", nimEmacs_sample_mod_test_vector_eq, 2, 2, NULL, NULL);
> sample-mod-test-signal", nimEmacs_sample_mod_test_signal, 0, 0, NULL, NULL);
> sample-mod-test-throw", nimEmacs_sample_mod_test_throw, 0, 0, NULL, NULL);
> sample-mod-test-return-uname-cmd", nimEmacs_sample_mod_test_return_uname_cmd, 1, 1, NULL, NULL);
> sample-mod-test-return-uname", nimEmacs_sample_mod_test_return_uname, 1, 1, NULL, NULL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.