path stringlengths 14 112 | content stringlengths 0 6.32M | size int64 0 6.32M | max_lines int64 1 100k | repo_name stringclasses 2
values | autogenerated bool 1
class |
|---|---|---|---|---|---|
cosmopolitan/third_party/nsync/testing/atm_log.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 3,616 | 109 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/start_thread.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,259 | 42 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/once_test.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,863 | 166 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/mu_wait_test.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 12,926 | 347 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/testing.h | #ifndef NSYNC_TESTING_TESTING_H_
#define NSYNC_TESTING_TESTING_H_
/* clang-format off */
typedef struct testing_base_s *testing_base;
typedef const struct testing_base_s *const_testing_base;
typedef struct testing_s *testing;
/* Return a newly initialized testing_base. */
testing_base testing_new (int argc, char *arg... | 2,648 | 68 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/note_test.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 12,398 | 335 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/smprintf.h | #ifndef NSYNC_TESTING_SMPRINTF_H_
#define NSYNC_TESTING_SMPRINTF_H_
char *smprintf(const char *, ...);
#endif /*NSYNC_TESTING_SMPRINTF_H_*/
| 142 | 7 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/time_extra.h | #ifndef NSYNC_TESTING_TIME_EXTRA_H_
#define NSYNC_TESTING_TIME_EXTRA_H_
#include "third_party/nsync/time.h"
/* Return a malloced nul-terminated string representing time t, using
"decimals" decimal places. */
char *nsync_time_str(nsync_time t, int decimals);
/* Return t as a double. */
double nsync_time_to_dbl(nsy... | 462 | 16 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/mu_test.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 35,727 | 1,077 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/closure.h | #ifndef NSYNC_TESTING_CLOSURE_H_
#define NSYNC_TESTING_CLOSURE_H_
/* clang-format off */
#include "libc/mem/mem.h"
/* A run-once, self-freeing closure. */
typedef struct closure_s {
void (*f0) (void *);
} closure;
/* Run the closure *cl, and free it. */
void closure_run (closure *cl);
/* Fork a new thread running t... | 7,063 | 186 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/cv_test.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 28,800 | 795 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/testing.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 17,471 | 513 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/cv_wait_example_test.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 7,195 | 183 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/testing.mk | #-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-â
#âââvi: set et ft=make ts=8 tw=8 fenc=utf-8 :viââââââââââââââââââââââââ
PKGS += THIRD_PARTY_NSYNC_TESTING
THIRD_PARTY_NSYNC_TESTING_LIB = $(THIRD_PARTY_NSYNC_TESTING_DEPS) $(THIRD_PARTY_NSYN... | 2,697 | 67 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/dll_test.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 12,698 | 325 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/mu_starvation_test.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 14,193 | 347 | jart/cosmopolitan | false |
cosmopolitan/third_party/nsync/testing/wait_test.c | /*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-â
âvi: set et ft=c ts=8 tw=8 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 7,763 | 191 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lmem.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 8,774 | 225 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ldo.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 35,575 | 989 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lmathlib.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 21,597 | 785 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lrepl.h | #ifndef COSMOPOLITAN_THIRD_PARTY_LUA_LREPL_H_
#define COSMOPOLITAN_THIRD_PARTY_LUA_LREPL_H_
#include "libc/intrin/nopl.internal.h"
#include "third_party/linenoise/linenoise.h"
#include "third_party/lua/lauxlib.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern bool lua_repl_blocking;
extern bool lua... | 1,212 | 35 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lzio.h | /*
** $Id: lzio.h $
** Buffered streams
** See Copyright Notice in lua.h
*/
#ifndef lzio_h
#define lzio_h
#include "third_party/lua/lmem.h"
#include "third_party/lua/lua.h"
/* clang-format off */
#define EOZ (-1) /* end of stream */
typedef struct Zio ZIO;
#define zgetc(z) (((z)->n--)>0 ? cast_uchar(*(z)->p++... | 1,491 | 66 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lcode.h | #ifndef lcode_h
#define lcode_h
#include "third_party/lua/llex.h"
#include "third_party/lua/lobject.h"
#include "third_party/lua/lopcodes.h"
#include "third_party/lua/lparser.h"
/* clang-format off */
/*
** Marks the end of a patch list. It is an invalid value both as an absolute
** address, and as a list link (woul... | 3,804 | 100 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lapi.h | #ifndef lapi_h
#define lapi_h
#include "third_party/lua/llimits.h"
#include "third_party/lua/lstate.h"
/* clang-format off */
/* Increments 'L->top', checking for stack overflows */
#define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
"stack overflow");}
/*
** If a call returns too many mu... | 1,356 | 44 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luapushheaders.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,594 | 46 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ljumptab.inc | /*
** $Id: ljumptab.h $
** Jump Table for the Lua interpreter
** See Copyright Notice in lua.h
*/
#undef vmdispatch
#undef vmcase
#undef vmbreak
#define vmdispatch(x) goto *disptab[x];
#define vmcase(l) L_##l:
#define vmbreak \
vmfetch(); \
vmdispatch(GET_OPCODE(i));
static const void *const disptab[NUM_OPC... | 2,012 | 51 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luaconf.h | #ifndef luaconf_h
#define luaconf_h
#include "libc/assert.h"
#include "libc/dce.h"
#include "libc/fmt/fmt.h"
#include "libc/limits.h"
#include "libc/str/unicode.h"
#include "third_party/gdtoa/gdtoa.h"
#define LUA_USE_POSIX
#define LUA_USE_LINENOISE
/* clang-format off */
/*
** =======================================... | 20,119 | 727 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lgc.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 58,943 | 1,750 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luapushurlparams.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,335 | 38 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luacallwithtrace.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,802 | 90 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lparser.h | #ifndef lparser_h
#define lparser_h
#include "third_party/lua/llimits.h"
#include "third_party/lua/lobject.h"
#include "third_party/lua/lzio.h"
/* clang-format off */
/*
** Expression and variable descriptor.
** Code generation for variables and expressions can be delayed to allow
** optimizations; An 'expdesc' stru... | 5,924 | 167 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ltests.h | #ifndef ltests_h
#define ltests_h
#include "third_party/lua/lua.h"
/* clang-format off */
/* test Lua with compatibility code */
#define LUA_COMPAT_MATHLIB
#define LUA_COMPAT_LT_LE
#define LUA_DEBUG
/* turn on assertions */
#define LUAI_ASSERT
/* to avoid warnings, and to make sure value is really unused */
#de... | 3,070 | 138 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lparser.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 58,943 | 1,977 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/llex.h | /*
** $Id: llex.h $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
#ifndef llex_h
#define llex_h
#include "third_party/lua/lobject.h"
#include "third_party/lua/lzio.h"
/* clang-format off */
/*
** Single-char tokens (terminal symbols) are represented by their own
** numeric code. Other tokens start at the ... | 2,436 | 91 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lopnames.inc | /*
** $Id: lopnames.h $
** Opcode names
** See Copyright Notice in lua.h
*/
#if !defined(lopnames_h)
#define lopnames_h
/* ORDER OP */
static const char *const opnames[] = {
"MOVE",
"LOADI",
"LOADF",
"LOADK",
"LOADKX",
"LOADFALSE",
"LFALSESKIP",
"LOADTRUE",
"LOADNIL",
"GETUPVAL",
"SETUPVAL",
... | 1,123 | 103 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ltable.h | #ifndef ltable_h
#define ltable_h
#include "third_party/lua/lobject.h"
/* clang-format off */
#define gnode(t,i) (&(t)->node[i])
#define gval(n) (&(n)->i_val)
#define gnext(n) ((n)->u.next)
/*
** Clear all bits of fast-access metamethods, which means that the table
** may have any of these metamethods. (First acc... | 2,195 | 62 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lctype.h | #ifndef lctype_h
#define lctype_h
#include "third_party/lua/lua.h"
/*
** In ASCII, this 'ltolower' is correct for alphabetic characters and
** for '.'. That is enough for Lua needs. ('check_exp' ensures that
** the character either is an upper-case letter or is unchanged by
** the transformation, which holds for lower... | 2,234 | 61 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lstring.h | #ifndef lstring_h
#define lstring_h
#include "third_party/lua/lgc.h"
#include "third_party/lua/lobject.h"
#include "third_party/lua/lstate.h"
/* clang-format off */
/*
** Memory-allocation error message must be preallocated (it cannot
** be created after memory is exhausted)
*/
#define MEMERRMSG "not enough me... | 1,564 | 53 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lapi.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 53,268 | 1,890 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ldo.h | #ifndef ldo_h
#define ldo_h
#include "third_party/lua/lobject.h"
#include "third_party/lua/lstate.h"
#include "third_party/lua/lzio.h"
/* clang-format off */
/*
** Macro to check stack size and grow stack if needed. Parameters
** 'pre'/'pos' allow the macro to preserve a pointer into the
** stack across reallocatio... | 2,905 | 74 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/llex.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 20,059 | 603 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lcode.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 53,994 | 1,835 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/README.cosmo | DESCRIPTION
Lua is a language designed for embedded use in native applications. It
has an impossibly elegant C API and the Lua language itself feels more
like Python compared to alternatives like Tcl except it's a great deal
faster and doesn't have strong opinions about character encoding.
PROVENANCE
https... | 1,279 | 39 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lfunc.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 11,159 | 316 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/serialize.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,941 | 69 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ltests.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 55,201 | 1,991 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lauxlib.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 47,865 | 1,488 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ldblib.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 16,043 | 503 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lstrlib.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 57,835 | 1,860 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/loadlib.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 25,853 | 792 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luaformatstack.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,343 | 40 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lundump.h | #ifndef lundump_h
#define lundump_h
#include "third_party/lua/llimits.h"
#include "third_party/lua/lobject.h"
#include "third_party/lua/lzio.h"
/* clang-format off */
/* data to catch conversion errors */
#define LUAC_DATA "\x19\x93\r\n\x1a\n"
#define LUAC_INT 0x5678
#define LUAC_NUM cast_num(370.5)
/*
** Encode ma... | 842 | 31 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lunix.h | #ifndef COSMOPOLITAN_THIRD_PARTY_LUA_LUNIX_H_
#define COSMOPOLITAN_THIRD_PARTY_LUA_LUNIX_H_
#include "third_party/lua/lauxlib.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct UnixErrno {
int errno_;
int winerr;
const char *call;
};
int LuaUnix(lua_State *);
int LuaUnixSysretErrno(lua_State ... | 462 | 19 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luaencodeluadata.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 14,619 | 443 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lundump.c | /*
** $Id: lundump.c $
** load precompiled Lua chunks
** See Copyright Notice in lua.h
*/
#define lundump_c
#define LUA_CORE
#include "libc/str/str.h"
#include "third_party/lua/ldebug.h"
#include "third_party/lua/ldo.h"
#include "third_party/lua/lfunc.h"
#include "third_party/lua/lmem.h"
#include "third_party/lua/lob... | 8,030 | 330 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lmem.h | #ifndef lmem_h
#define lmem_h
#include "third_party/lua/llimits.h"
#include "third_party/lua/lua.h"
/* clang-format off */
#define luaM_error(L) luaD_throw(L, LUA_ERRMEM)
/*
** This macro tests whether it is safe to multiply 'n' by the size of
** type 't' without overflows. Because 'e' is always constant, it avoid... | 3,313 | 86 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luapushlatin1.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,151 | 32 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lbaselib.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 17,594 | 548 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lauxlib.h | #ifndef lauxlib_h
#define lauxlib_h
#include "libc/assert.h"
#include "libc/stdio/stdio.h"
#include "third_party/lua/lua.h"
#include "third_party/lua/luaconf.h"
/* clang-format off */
/* global table */
#define LUA_GNAME "_G"
typedef struct luaL_Buffer luaL_Buffer;
/* extra error code for 'luaL_loadfilex' */
#defi... | 9,171 | 286 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lprefix.h | #ifndef lprefix_h
#define lprefix_h
/*
** Allows POSIX/XSI stuff
*/
#if !defined(LUA_USE_C89) /* { */
#if !defined(_XOPEN_SOURCE)
#define _XOPEN_SOURCE 600
#elif _XOPEN_SOURCE == 0
#undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */
#endif
/*
** Allows manipulation of large files in gcc and some other co... | 664 | 37 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ldebug.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 29,470 | 897 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/visitor.h | #ifndef COSMOPOLITAN_THIRD_PARTY_LUA_VISITOR_H_
#define COSMOPOLITAN_THIRD_PARTY_LUA_VISITOR_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct LuaVisited {
int i, n;
const void **p;
};
int LuaPushVisit(struct LuaVisited *, const void *);
void LuaPopVisit(struct LuaVisited *);
COSMOPOLITAN_C_E... | 424 | 17 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/tms.h | #ifndef COSMOPOLITAN_THIRD_PARTY_LUA_TMS_H_
#define COSMOPOLITAN_THIRD_PARTY_LUA_TMS_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
/*
* WARNING: if you change the order of this enumeration,
* grep "ORDER TM" and "ORDER OP"
*/
typedef enum {
TM_INDEX,
TM_NEWINDEX,
TM_GC,
TM_MODE,
TM_LEN,
... | 733 | 42 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ltm.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 11,058 | 293 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/linit.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,301 | 85 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/loslib.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 14,706 | 453 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lua.h | #ifndef COSMOPOLITAN_THIRD_PARTY_LUA_LUA_H_
#define COSMOPOLITAN_THIRD_PARTY_LUA_LUA_H_
#include "third_party/lua/luaconf.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
/* clang-format off */
#define LUA_VERSION_MAJOR "5"
#define LUA_VERSION_MINOR "4"
#define LUA_VERSION_RELEASE "3"
#define LUA_VERSIO... | 14,665 | 487 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ltable.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 34,273 | 993 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lopcodes.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 6,819 | 129 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/cosmo.h | #ifndef COSMOPOLITAN_THIRD_PARTY_LUA_COSMO_H_
#define COSMOPOLITAN_THIRD_PARTY_LUA_COSMO_H_
#include "net/http/http.h"
#include "net/http/url.h"
#include "third_party/lua/lauxlib.h"
#include "third_party/lua/visitor.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct EncoderConfig {
short maxdepth;... | 1,458 | 44 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ldump.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 7,497 | 248 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lopcodes.h | #ifndef lopcodes_h
#define lopcodes_h
#include "third_party/lua/llimits.h"
/* clang-format off */
/*===========================================================================
We assume that instructions are unsigned 32-bit integers.
All instructions have an opcode in the first 7 bits.
Instructions can have th... | 12,659 | 388 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lutf8lib.c | /*
** $Id: lutf8lib.c $
** Standard library for UTF-8 manipulation
** See Copyright Notice in lua.h
*/
#define lutf8lib_c
#define LUA_LIB
#include "third_party/lua/lauxlib.h"
#include "third_party/lua/lprefix.h"
#include "third_party/lua/lua.h"
#include "third_party/lua/lualib.h"
/* clang-format off */
#define MAXU... | 8,096 | 283 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luac.main.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 18,055 | 751 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luaprintstack.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,146 | 33 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lgc.h | #ifndef lgc_h
#define lgc_h
#include "third_party/lua/lobject.h"
#include "third_party/lua/lstate.h"
/* clang-format off */
/*
** Collectable objects may have one of three colors: white, which means
** the object is not marked; gray, which means the object is marked, but
** its references may be not marked; and blac... | 5,986 | 185 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/llimits.h | #ifndef llimits_h
#define llimits_h
#include "libc/limits.h"
#include "libc/math.h"
#include "third_party/lua/lua.h"
/* clang-format off */
/*
** 'lu_mem' and 'l_mem' are unsigned/signed integers big enough to count
** the total memory used by Lua (in bytes). Usually, 'size_t' and
** 'ptrdiff_t' should work, but we ... | 8,527 | 345 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lzio.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,102 | 91 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lua.main.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 14,247 | 419 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luapushheader.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,324 | 37 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/llock.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,096 | 31 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lua.mk | #-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-â
#âââvi: set et ft=make ts=8 tw=8 fenc=utf-8 :viââââââââââââââââââââââââ
PKGS += THIRD_PARTY_LUA
THIRD_PARTY_LUA_COMS = \
o/$(MODE)/third_party/lua/lua.com \
o/$(MODE)/third_party/... | 8,570 | 304 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lobject.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 21,455 | 608 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/liolib.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 24,850 | 848 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lrepl.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 15,310 | 491 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ltm.h | #ifndef ltm_h
#define ltm_h
#include "third_party/lua/lobject.h"
#include "third_party/lua/luaconf.h"
#include "third_party/lua/tms.h"
/* clang-format off */
/*
** Mask with 1 in all fast-access methods. A 1 in any of these bits
** in the flag of a (meta)table means the metatable does not have the
** corresponding met... | 2,474 | 64 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lvm.h | #ifndef lvm_h
#define lvm_h
#include "third_party/lua/ldo.h"
#include "third_party/lua/lobject.h"
#include "third_party/lua/ltm.h"
/* clang-format off */
#if !defined(LUA_NOCVTN2S)
#define cvt2str(o) ttisnumber(o)
#else
#define cvt2str(o) 0 /* no conversion from numbers to strings */
#endif
#if !defined(LUA_NOCVTS2... | 4,419 | 130 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lstate.h | #ifndef lstate_h
#define lstate_h
#include "libc/calls/calls.h"
#include "third_party/lua/lobject.h"
#include "third_party/lua/lua.h"
#include "third_party/lua/lzio.h"
#include "third_party/lua/tms.h"
/* clang-format off */
/*
** Some notes about garbage-collected objects: All objects in Lua must
** be kept somehow ... | 15,220 | 399 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lvm.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 60,153 | 1,855 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lstring.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 10,277 | 296 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lunix.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 108,724 | 3,552 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lstate.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 14,407 | 469 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ldebug.h | #ifndef ldebug_h
#define ldebug_h
#include "third_party/lua/lstate.h"
/* clang-format off */
#define pcRel(pc, p) (cast_int((pc) - (p)->code) - 1)
/* Active Lua function (given call info) */
#define ci_func(ci) (clLvalue(s2v((ci)->func)))
#define resethookcount(L) (L->hookcount = L->basehookcount)
/*
** mark ... | 2,097 | 59 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luaencodeurl.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 4,012 | 80 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lualib.h | #ifndef lualib_h
#define lualib_h
#include "third_party/lua/lua.h"
/* clang-format off */
/* version suffix for environment variable names */
#define LUA_VERSUFFIX "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR
LUAMOD_API int (luaopen_base) (lua_State *L);
#define LUA_COLIBNAME "coroutine"
LUAMOD_API int (lu... | 1,068 | 46 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/luaencodejsondata.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 9,493 | 280 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lfunc.h | #ifndef lfunc_h
#define lfunc_h
#include "third_party/lua/lobject.h"
/* clang-format off */
#define sizeCclosure(n) (cast_int(offsetof(CClosure, upvalue)) + \
cast_int(sizeof(TValue)) * (n))
#define sizeLclosure(n) (cast_int(offsetof(LClosure, upvals)) + \
cast_int(... | 1,622 | 59 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/lobject.h | #ifndef lobject_h
#define lobject_h
#include "libc/intrin/bsr.h"
#include "third_party/lua/llimits.h"
#include "third_party/lua/lua.h"
/* clang-format off */
/*
** Extra types for collectable non-values
*/
#define LUA_TUPVAL LUA_NUMTYPES /* upvalues */
#define LUA_TPROTO (LUA_NUMTYPES + 1) /* function prot... | 22,433 | 793 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/ltablib.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 15,926 | 450 | jart/cosmopolitan | false |
cosmopolitan/third_party/lua/visitor.c | /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :viâ
âââââââââââââââââââââââââââââââââââââââââââââââââââ... | 2,620 | 60 | jart/cosmopolitan | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.