added macos fixes

main
Vladyslav Hrytsenko 2024-07-31 22:29:31 +03:00
parent c2338be74c
commit 050accbce1
7 changed files with 37548 additions and 37546 deletions

View File

@ -1 +1 @@
frame: 0-0 Idle
frame: 0-0 Idle

View File

@ -148,7 +148,7 @@ static char* luaL_prepbuffsize(luaL_Buffer* B, size_t sz) {
# define ARCH_X86
#elif defined __amd64__ || defined _M_X64
# define ARCH_X64
#elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm
#elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm || defined __arm64__
# define ARCH_ARM
#elif defined OS_LINUX && defined __TINYC__ //< @r-lyeh: tcc+linux
# define ARCH_X64 //< @r-lyeh: tcc+linux

View File

@ -161,6 +161,7 @@ static char *ui_filter = 0;
{{FILE:3rd_plmpeg.h}}
{{FILE:3rd_jo_mpeg.h}}
//#define _RTL_RUN_ONCE _RTL_RUN_ONCE2 // __MINGW64__
#undef I
{{FILE:3rd_https.h}}
#undef F2
#undef F3

View File

@ -1,12 +1,12 @@
/* game framework (3rd libs)
* - rlyeh, public domain
*/
#ifdef V4K_3RD
#define GLAD_GL_IMPLEMENTATION // glad
#endif
#line 1 "3rd_glad.h"
/* game framework (3rd libs)
* - rlyeh, public domain
*/
#ifdef V4K_3RD
#define GLAD_GL_IMPLEMENTATION // glad
#endif
#line 1 "3rd_glad.h"
#ifndef __EMSCRIPTEN__
#ifndef _GNU_SOURCE // juicy linux headers
@ -11687,8 +11687,8 @@ int gladLoadGL( GLADloadfunc load) {
#endif /* GLAD_GL_IMPLEMENTATION */
#endif /* __EMSCRIPTEN__ */
#line 0
#line 1 "3rd_icon_md.h"
#line 0
#line 1 "3rd_icon_md.h"
// Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py for languages C and C++
// from https://github.com/google/material-design-icons/raw/master/font/MaterialIcons-Regular.codepoints
// for use with https://github.com/google/material-design-icons/blob/master/font/MaterialIcons-Regular.ttf
@ -13935,104 +13935,104 @@ int gladLoadGL( GLADloadfunc load) {
#define ICON_MD_ZOOM_OUT "\xee\xa4\x80" // U+e900
#define ICON_MD_ZOOM_OUT_MAP "\xee\x95\xab" // U+e56b
#endif // ICON_MD_H
#line 0
#ifdef V4K_3RD
//-----------------------------------------------------------------------------
// 3rd party libs
#define ARCHIVE_C // archive.c
#define BASE64_C // base64.c
#define COMPRESS_C // compress.c
#define ENET_IMPLEMENTATION // enet
#define GJK_C // gjk
#define _GLFW_IMPLEMENTATION // glfw337
#define GLFW_INCLUDE_NONE // glfw337
#define HTTPS_IMPLEMENTATION // https
#define JO_MPEG_COMPONENTS 3 // jo_mpeg
#define JSON5_C // json5
#define LUA_IMPL // lua544
#define LUA_USE_POPEN 1 // for lite editor
#define MINIAUDIO_IMPLEMENTATION // miniaudio
#define MA_NO_FLAC // miniaudio
#define NK_GLFW_GL3_IMPLEMENTATION // nuklear
#define NK_IMPLEMENTATION // nuklear
#define NK_INCLUDE_DEFAULT_ALLOCATOR // nuklear
#define NK_INCLUDE_DEFAULT_FONT // nuklear
#define NK_INCLUDE_FIXED_TYPES // nuklear
#define NK_INCLUDE_FONT_BAKING // nuklear
#define NK_INCLUDE_STANDARD_IO // nuklear
#define NK_INCLUDE_STANDARD_VARARGS // nuklear
#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT // nuklear
#define NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS 64 // nuklear
#define NK_KEYSTATE_BASED_INPUT // nuklear
#define PL_MPEG_IMPLEMENTATION // pl_mpeg
#define STB_IMAGE_IMPLEMENTATION // stbi
#define STB_IMAGE_WRITE_IMPLEMENTATION // stbi_write
#define STB_SPRINTF_IMPLEMENTATION // stb_sprintf
#define STB_SPRINTF_NOUNALIGNED // stb_sprintf
#define STS_MIXER_IMPLEMENTATION // sts_mixer
#define SIMPLEX_C // simplex
#define SWRAP_IMPLEMENTATION // swrap
#define SWRAP_STATIC // swrap
#define THREAD_IMPLEMENTATION // thread
#define TFD_IMPLEMENTATION // tinyfiledialogs
#define BQ_PLATFORM_IMPLEMENTATION // websocket
#define BQ_WEBSOCKET_IMPLEMENTATION // websocket
#define XML_C // xml
#ifdef __APPLE__
#define MA_NO_RUNTIME_LINKING // miniaudio osx
#define _GLFW_COCOA // glfw osx
#elif defined _WIN32
#define _GLFW_WIN32 // glfw win32
#else
#define _GLFW_X11 // glfw linux, also _GLFW_OSMESA or _GLFW_WAYLAND
#endif
#if defined __TINYC__ && defined _WIN32
#define MAPVK_VSC_TO_VK 1
#define MAPVK_VK_TO_VSC 0
#define IPV6_V6ONLY 27
#define _WIN32_WINNT_VISTA 0
#define _WIN32_WINNT_WINXP 0
#define _WIN32_WINNT_WIN7 0
#endif
#ifdef __TINYC__
#define STBI_NO_SIMD
// no uint128_t (3rd_https.h)
char* strtok_s(
char* str,
const char* delimiters,
char** context
);
#endif
#if defined __clang__ && defined _WIN32
int execv(const char *path, char *const argv[]);
#elif (is(tcc) /*|| defined __clang__*/) && defined _WIN32
int execv(const char *path, char *const argv[]);
errno_t strerror_s(
char *buffer,
size_t sizeInBytes,
int errnum
);
typedef int socklen_t;
#if is(tcc)
#define restrict
const char *inet_ntop(int af, const void *restrict src,
char *restrict dst, socklen_t size);
int inet_pton(int af, const char *restrict src, void *restrict dst);
#endif
errno_t fopen_s(
FILE** pFile,
const char *filename,
const char *mode
);
#endif
//---
#line 1 "3rd_glfw3.h"
#line 0
#ifdef V4K_3RD
//-----------------------------------------------------------------------------
// 3rd party libs
#define ARCHIVE_C // archive.c
#define BASE64_C // base64.c
#define COMPRESS_C // compress.c
#define ENET_IMPLEMENTATION // enet
#define GJK_C // gjk
#define _GLFW_IMPLEMENTATION // glfw337
#define GLFW_INCLUDE_NONE // glfw337
#define HTTPS_IMPLEMENTATION // https
#define JO_MPEG_COMPONENTS 3 // jo_mpeg
#define JSON5_C // json5
#define LUA_IMPL // lua544
#define LUA_USE_POPEN 1 // for lite editor
#define MINIAUDIO_IMPLEMENTATION // miniaudio
#define MA_NO_FLAC // miniaudio
#define NK_GLFW_GL3_IMPLEMENTATION // nuklear
#define NK_IMPLEMENTATION // nuklear
#define NK_INCLUDE_DEFAULT_ALLOCATOR // nuklear
#define NK_INCLUDE_DEFAULT_FONT // nuklear
#define NK_INCLUDE_FIXED_TYPES // nuklear
#define NK_INCLUDE_FONT_BAKING // nuklear
#define NK_INCLUDE_STANDARD_IO // nuklear
#define NK_INCLUDE_STANDARD_VARARGS // nuklear
#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT // nuklear
#define NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS 64 // nuklear
#define NK_KEYSTATE_BASED_INPUT // nuklear
#define PL_MPEG_IMPLEMENTATION // pl_mpeg
#define STB_IMAGE_IMPLEMENTATION // stbi
#define STB_IMAGE_WRITE_IMPLEMENTATION // stbi_write
#define STB_SPRINTF_IMPLEMENTATION // stb_sprintf
#define STB_SPRINTF_NOUNALIGNED // stb_sprintf
#define STS_MIXER_IMPLEMENTATION // sts_mixer
#define SIMPLEX_C // simplex
#define SWRAP_IMPLEMENTATION // swrap
#define SWRAP_STATIC // swrap
#define THREAD_IMPLEMENTATION // thread
#define TFD_IMPLEMENTATION // tinyfiledialogs
#define BQ_PLATFORM_IMPLEMENTATION // websocket
#define BQ_WEBSOCKET_IMPLEMENTATION // websocket
#define XML_C // xml
#ifdef __APPLE__
#define MA_NO_RUNTIME_LINKING // miniaudio osx
#define _GLFW_COCOA // glfw osx
#elif defined _WIN32
#define _GLFW_WIN32 // glfw win32
#else
#define _GLFW_X11 // glfw linux, also _GLFW_OSMESA or _GLFW_WAYLAND
#endif
#if defined __TINYC__ && defined _WIN32
#define MAPVK_VSC_TO_VK 1
#define MAPVK_VK_TO_VSC 0
#define IPV6_V6ONLY 27
#define _WIN32_WINNT_VISTA 0
#define _WIN32_WINNT_WINXP 0
#define _WIN32_WINNT_WIN7 0
#endif
#ifdef __TINYC__
#define STBI_NO_SIMD
// no uint128_t (3rd_https.h)
char* strtok_s(
char* str,
const char* delimiters,
char** context
);
#endif
#if defined __clang__ && defined _WIN32
int execv(const char *path, char *const argv[]);
#elif (is(tcc) /*|| defined __clang__*/) && defined _WIN32
int execv(const char *path, char *const argv[]);
errno_t strerror_s(
char *buffer,
size_t sizeInBytes,
int errnum
);
typedef int socklen_t;
#if is(tcc)
#define restrict
const char *inet_ntop(int af, const void *restrict src,
char *restrict dst, socklen_t size);
int inet_pton(int af, const char *restrict src, void *restrict dst);
#endif
errno_t fopen_s(
FILE** pFile,
const char *filename,
const char *mode
);
#endif
//---
#line 1 "3rd_glfw3.h"
#ifndef __EMSCRIPTEN__
// forked from https://github.com/SasLuca/glfw-single-header (CC0-1.0 licensed)
@ -53227,10 +53227,10 @@ uint32_t _glfwKeySym2Unicode(unsigned int keysym)
#endif
#endif /* __EMSCRIPTEN__ */
#line 0
#undef timeGetTime
//---
#line 1 "3rd_swrap.h"
#line 0
#undef timeGetTime
//---
#line 1 "3rd_swrap.h"
// https://github.com/BareRose/swrap/blob/master/swrap.h
/*
@ -53521,9 +53521,9 @@ SWDEF int swrapMultiSelect (int* socks, size_t socks_size, double timeout) {
#endif //SWRAP_IMPLEMENTATION
#endif //SWRAP_H
#line 0
//---
#line 1 "3rd_jo_mp1.h"
#line 0
//---
#line 1 "3rd_jo_mp1.h"
/* public domain Simple, Minimalistic MPEG Layer 1 decoder - http://jonolick.com
*
* Revision History:
@ -53931,10 +53931,10 @@ bool jo_read_mp1(const void *input, int inputSize, short **output_, int *outputS
#endif // JO_MP1_HEADER_FILE_ONLY
#line 0
#define get_bits stb_vorbis_get_bits
#define error stb_vorbis_error
#line 1 "3rd_stb_vorbis.h"
#line 0
#define get_bits stb_vorbis_get_bits
#define error stb_vorbis_error
#line 1 "3rd_stb_vorbis.h"
// Ogg Vorbis audio decoder - v1.22 - public domain
// http://nothings.org/stb_vorbis/
//
@ -59519,10 +59519,10 @@ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
*/
#line 0
#undef error
#undef DEBUG
#line 1 "3rd_sts_mixer.h"
#line 0
#undef error
#undef DEBUG
#line 1 "3rd_sts_mixer.h"
///////////////////////////////////////////////////////////////////////////////
// sts_mixer.h - v0.02
// written 2016 by Sebastian Steinhauer
@ -60058,8 +60058,8 @@ int main(int argc, char *argv[]) {
For more information, please refer to <http://unlicense.org/>
*/
#line 0
#line 1 "3rd_miniaudio.h"
#line 0
#line 1 "3rd_miniaudio.h"
/*
Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file.
miniaudio - v0.11.18 - 2023-08-07
@ -152597,14 +152597,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#line 0
//---
#undef L
#undef C
#undef R
#define error l_error
#define panic l_panic
#line 1 "3rd_lua.h"
#line 0
//---
#undef L
#undef C
#undef R
#define error l_error
#define panic l_panic
#line 1 "3rd_lua.h"
/*
minilua.h -- Lua in a single header
Project URL: https://github.com/edubart/minilua
@ -181845,12 +181845,12 @@ int main (int argc, char **argv) {
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#line 0
#undef cast
#undef G
//---
#define LUAFFI_C
#line 1 "3rd_luaffi.h"
#line 0
#undef cast
#undef G
//---
#define LUAFFI_C
#line 1 "3rd_luaffi.h"
#ifndef LUAFFI_H
#define LUAFFI_H
@ -182001,7 +182001,7 @@ static char* luaL_prepbuffsize(luaL_Buffer* B, size_t sz) {
# define ARCH_X86
#elif defined __amd64__ || defined _M_X64
# define ARCH_X64
#elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm
#elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm || defined __arm64__
# define ARCH_ARM
#elif defined OS_LINUX && defined __TINYC__ //< @r-lyeh: tcc+linux
# define ARCH_X64 //< @r-lyeh: tcc+linux
@ -194367,9 +194367,9 @@ int luaopen_ffi(lua_State* L)
#endif
#line 0
//---
#line 1 "3rd_stb_image.h"
#line 0
//---
#line 1 "3rd_stb_image.h"
/* stb_image - v2.28 - public domain image loader - http://nothings.org/stb
no warranty implied; use at your own risk
@ -202357,8 +202357,8 @@ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
*/
#line 0
#line 1 "3rd_stb_image_write.h"
#line 0
#line 1 "3rd_stb_image_write.h"
/* stb_image_write - v1.16 - public domain - http://nothings.org/stb
writes out PNG/BMP/TGA/JPEG/HDR images to C stdio - Sean Barrett 2010-2015
no warranty implied; use at your own risk
@ -204083,14 +204083,14 @@ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
*/
#line 0
//---
#undef freelist
#define STBTT_malloc(x,u) ((void)(u),MALLOC(x))
#define STBTT_free(x,u) ((void)(u),FREE(x))
#define NK_ASSERT ASSERT
#define NK_DTOA(s,n) strcpy(s, va("%f", n)) // override cos built-in nk_dtoa() will freeze while parsing UINT_MAX otherwise
#line 1 "3rd_nuklear.h"
#line 0
//---
#undef freelist
#define STBTT_malloc(x,u) ((void)(u),MALLOC(x))
#define STBTT_free(x,u) ((void)(u),FREE(x))
#define NK_ASSERT ASSERT
#define NK_DTOA(s,n) strcpy(s, va("%f", n)) // override cos built-in nk_dtoa() will freeze while parsing UINT_MAX otherwise
#line 1 "3rd_nuklear.h"
/*
/// # Nuklear
/// ![](https://cloud.githubusercontent.com/assets/8057201/11761525/ae06f0ca-a0c6-11e5-819d-5610b25f6ef4.gif)
@ -234461,8 +234461,8 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
/// in libraries and brought me to create some of my own. Finally Apoorva Joshi
/// for his single header file packer.
*/
#line 0
#line 1 "3rd_nuklear_glfw_gl3.h"
#line 0
#line 1 "3rd_nuklear_glfw_gl3.h"
/*
* Nuklear - 1.32.0 - public domain
@ -235015,9 +235015,9 @@ void nk_glfw3_shutdown(struct nk_glfw* glfw)
#endif
#endif
#line 0
static char *ui_filter = 0;
#line 1 "3rd_nuklear_filebrowser.h"
#line 0
static char *ui_filter = 0;
#line 1 "3rd_nuklear_filebrowser.h"
// file browser for nuklear, based on https://github.com/vurtun/nuklear/blob/master/example/file_browser.c (public domain)
// - rlyeh, public domain
//
@ -235501,16 +235501,16 @@ static struct nk_image icon_load_rect(unsigned id, unsigned w, unsigned h, unsig
}
nk_end();
*/
#line 0
//---
#ifdef ENABLE_ASSIMP
//{{FILE/*:*/3rd_assimp.h}}
//#include "3rd_assimp/cimport.h"
//#include "3rd_assimp/scene.h"
//#include "3rd_assimp/postprocess.h"
//#pragma comment(lib, "3rd/3rd_assimp/x64/assimp")
#endif
#line 1 "3rd_json5.h"
#line 0
//---
#ifdef ENABLE_ASSIMP
//{{FILE/*:*/3rd_assimp.h}}
//#include "3rd_assimp/cimport.h"
//#include "3rd_assimp/scene.h"
//#include "3rd_assimp/postprocess.h"
//#pragma comment(lib, "3rd/3rd_assimp/x64/assimp")
#endif
#line 1 "3rd_json5.h"
// JSON5 + SJSON parser module
//
// License:
@ -235951,8 +235951,8 @@ int main() {
#endif
#endif // JSON5_C
#line 0
#line 1 "3rd_gjk.h"
#line 0
#line 1 "3rd_gjk.h"
// GJK distance algorithm. original code by @vurtun and @randygaul, public domain.
// [src] https://gist.github.com/vurtun/29727217c269a2fbf4c0ed9a1d11cb40
// - rlyeh, public domain.
@ -236560,8 +236560,8 @@ gjk_result gjk_quad(float a_radius, float b_radius) {
}
#endif
#line 0
#line 1 "3rd_compress.h"
#line 0
#line 1 "3rd_compress.h"
// compress.c de/compressors into a single-file header
// - rlyeh, public domain
//
@ -247401,8 +247401,8 @@ unsigned file_decode(FILE* in, FILE* out, FILE *logfile) { // multi decoder
}
#endif // COMPRESS_C
#line 0
#line 1 "3rd_archive.h"
#line 0
#line 1 "3rd_archive.h"
// archive.c pak/zip/tar/dir archivers
// - rlyeh, public domain
@ -249027,11 +249027,11 @@ int main( int argc, char **argv ) {
#define main main__
#endif //DIR_DEMO
#endif //DIR_C
#line 0
#if is(win32)
#include <mmsystem.h> // timeapi.h
#endif
#line 1 "3rd_thread.h"
#line 0
#if is(win32)
#include <mmsystem.h> // timeapi.h
#endif
#line 1 "3rd_thread.h"
/*
------------------------------------------------------------------------------
Licensing information can be found at the end of the file.
@ -250760,8 +250760,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
*/
#line 0
#line 1 "3rd_plmpeg.h"
#line 0
#line 1 "3rd_plmpeg.h"
/*
PL_MPEG - MPEG1 Video decoder, MP2 Audio decoder, MPEG-PS demuxer
@ -255026,8 +255026,8 @@ void plm_audio_matrix_transform(int s[32][3], int ss, float *d, int dp) {
#endif // PL_MPEG_IMPLEMENTATION
#line 0
#line 1 "3rd_jo_mpeg.h"
#line 0
#line 1 "3rd_jo_mpeg.h"
/* public domain Simple, Minimalistic, No Allocations MPEG writer - http://jonolick.com
*
* Latest revisions:
@ -255292,9 +255292,10 @@ void jo_write_mpeg(FILE *fp, const unsigned char *bgrx, int width, int height, i
fwrite("\x00\x00\x01\xb7", 4, 1, fp); // End of Sequence
}
#endif
#line 0
//#define _RTL_RUN_ONCE _RTL_RUN_ONCE2 // __MINGW64__
#line 1 "3rd_https.h"
#line 0
//#define _RTL_RUN_ONCE _RTL_RUN_ONCE2 // __MINGW64__
#undef I
#line 1 "3rd_https.h"
/*
------------------------------------------------------------------------------
Licensing information can be found at the end of the file.
@ -302274,10 +302275,10 @@ int main() {
https_release(h);
}
#endif
#line 0
#undef F2
#undef F3
#line 1 "3rd_enet.h"
#line 0
#undef F2
#undef F3
#line 1 "3rd_enet.h"
/**
* include/enet.h - a Single-Header auto-generated variant of enet.h library.
*
@ -308388,9 +308389,9 @@ extern "C" {
#endif // ENET_IMPLEMENTATION
#endif // ENET_INCLUDE_H
#line 0
#define tls_init tls_init2
#line 1 "3rd_bq_websocket.h"
#line 0
#define tls_init tls_init2
#line 1 "3rd_bq_websocket.h"
/*
------------------------------------------------------------------------------
This software is available under 2 licenses -- choose whichever you prefer.
@ -314752,8 +314753,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#endif // BQ_PLATFORM_IMPLEMENTATION
#line 0
#line 1 "3rd_simplex.h"
#line 0
#line 1 "3rd_simplex.h"
/** 1D, 2D, 3D and 4D float Perlin Simplex noise */
/** Original code, stefan gustavson (PD). */
@ -315235,8 +315236,8 @@ float snoise4(float x, float y, float z, float w) {
#undef G4
#endif
#line 0
#line 1 "3rd_tfd.h"
#line 0
#line 1 "3rd_tfd.h"
/* If you are using a C++ compiler to compile tinyfiledialogs.c (maybe renamed with an extension ".cpp")
then comment out << extern "C" >> bellow in this header file) */
@ -323295,8 +323296,8 @@ tinyfd_messageBox("The selected hexcolor is",
#endif
#endif // TFD_IMPLEMENTATION
#line 0
#line 1 "3rd_stb_sprintf.h"
#line 0
#line 1 "3rd_stb_sprintf.h"
// stb_sprintf - v1.10 - public domain snprintf() implementation
// originally by Jeff Roberts / RAD Game Tools, 2015/10/20
// http://github.com/nothings/stb
@ -325203,9 +325204,9 @@ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
*/
#line 0
#define g g2
#line 1 "3rd_xml.h"
#line 0
#define g g2
#line 1 "3rd_xml.h"
// original xml.h/xml.c files by tor andersson, public domain
#ifndef xml_h
@ -325734,9 +325735,9 @@ struct xml *xml_parse(char *s, int preserve_white, char **errorp)
}
#endif
#line 0
#undef g
#line 1 "3rd_polychop.h"
#line 0
#undef g
#line 1 "3rd_polychop.h"
/* Progressive Mesh type Polygon Reduction Algorithm
*
* 1998: Original version by Stan Melax (c) 1998
@ -326146,18 +326147,18 @@ API void ProgressiveMesh(int vert_n, int vert_stride, const float *v, int tri_n,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#line 0
#define expr expr2 // 3rd_lua.h
#define EVAL_EXTEND_CONSTANTS \
for( int vk = input_enum(id), *once = &vk; once; once = 0) \
if( vk >= 0 ) push(ev, vk);
#define EVAL_EXTEND_FUNCTIONS \
/**/ if(!strcmp(id, "input") && nargs ==1) push(ev, input(pop(ev))); \
else if(!strcmp(id, "down") && nargs ==1) push(ev, input_down(pop(ev))); \
else if(!strcmp(id, "held") && nargs ==1) push(ev, input_held(pop(ev))); \
else if(!strcmp(id, "up") && nargs ==1) push(ev, input_up(pop(ev))); \
else if(!strcmp(id, "idle") && nargs ==1) push(ev, input_idle(pop(ev)));
#line 1 "3rd_eval.h"
#line 0
#define expr expr2 // 3rd_lua.h
#define EVAL_EXTEND_CONSTANTS \
for( int vk = input_enum(id), *once = &vk; once; once = 0) \
if( vk >= 0 ) push(ev, vk);
#define EVAL_EXTEND_FUNCTIONS \
/**/ if(!strcmp(id, "input") && nargs ==1) push(ev, input(pop(ev))); \
else if(!strcmp(id, "down") && nargs ==1) push(ev, input_down(pop(ev))); \
else if(!strcmp(id, "held") && nargs ==1) push(ev, input_held(pop(ev))); \
else if(!strcmp(id, "up") && nargs ==1) push(ev, input_up(pop(ev))); \
else if(!strcmp(id, "idle") && nargs ==1) push(ev, input_idle(pop(ev)));
#line 1 "3rd_eval.h"
/* A mathematical expression evaluator.
* It uses a recursive descent parser internally.
* Author: Werner Stoop
@ -326666,8 +326667,8 @@ int main() {
assert(~puts("Ok") );
}
#endif
#line 0
#line 1 "3rd_luadebugger.h"
#line 0
#line 1 "3rd_luadebugger.h"
/*
Copyright (c) 2023 Scott Lembcke and Howling Moon Software
@ -328146,8 +328147,8 @@ int dbg_pcall(lua_State *lua, int nargs, int nresults, int msgh){
return err;
}
#line 0
#line 1 "3rd_base64.h"
#line 0
#line 1 "3rd_base64.h"
// base64 de/encoder. Based on code by Jon Mayo - November 13, 2003 (PUBLIC DOMAIN).
// - rlyeh, public domain
@ -328288,10 +328289,10 @@ array(char) base64_decode(const char *inp, unsigned inlen) { // array_free() aft
}
#endif // array_resize
#endif // BASE64_C
#line 0
#if ENABLE_RPMALLOC
#line 1 "3rd_rpmalloc.h"
#line 0
#if ENABLE_RPMALLOC
#line 1 "3rd_rpmalloc.h"
/* rpmalloc.h - Memory allocator - Public Domain - 2016 Mattias Jansson
*
* This library provides a cross-platform lock free thread caching malloc implementation in C11.
@ -328665,8 +328666,8 @@ rpmalloc_get_heap_for_ptr(void* ptr);
#ifdef __cplusplus
}
#endif
#line 0
#line 1 "3rd_rpmalloc.c"
#line 0
#line 1 "3rd_rpmalloc.c"
/* rpmalloc.c - Memory allocator - Public Domain - 2016-2020 Mattias Jansson
*
* This library provides a cross-platform lock free thread caching malloc implementation in C11.
@ -332296,29 +332297,29 @@ void
rpmalloc_linker_reference(void) {
(void)sizeof(_rpmalloc_initialized);
}
#line 0
//{{FILE: 3rd_rpmalloci.c}}
#define SYS_MEM_INIT() rpmalloc_initialize()
#define SYS_MEM_REALLOC rprealloc
#define SYS_MEM_SIZE rpmalloc_usable_size
#endif
//#define SQLITE_OMIT_LOAD_EXTENSION
//#define SQLITE_CORE 1
//#define SQLITE_DEBUG 1
//#define Token SQToken
//#define Table SQTable
//#define rehash sqlite3__rehash
//#undef NB
//{ {FILE:3rd_sqlite3.c}}
//#undef Token
//#undef Table
//#undef rehash
//#undef NB
//#undef threadid
// editor
#line 1 "3rd_icon_mdi.h"
#line 0
//{{FILE: 3rd_rpmalloci.c}}
#define SYS_MEM_INIT() rpmalloc_initialize()
#define SYS_MEM_REALLOC rprealloc
#define SYS_MEM_SIZE rpmalloc_usable_size
#endif
//#define SQLITE_OMIT_LOAD_EXTENSION
//#define SQLITE_CORE 1
//#define SQLITE_DEBUG 1
//#define Token SQToken
//#define Table SQTable
//#define rehash sqlite3__rehash
//#undef NB
//{ {FILE:3rd_sqlite3.c}}
//#undef Token
//#undef Table
//#undef rehash
//#undef NB
//#undef threadid
// editor
#line 1 "3rd_icon_mdi.h"
// Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py for languages C and C++
// from https://raw.githubusercontent.com/Templarian/MaterialDesign-Webfont/master/css/materialdesignicons.css
// for use with https://github.com/Templarian/MaterialDesign-Webfont/raw/master/fonts/materialdesignicons-webfont.ttf
@ -339697,11 +339698,11 @@ rpmalloc_linker_reference(void) {
#define ICON_MDI_ZODIAC_TAURUS "\xf3\xb0\xaa\x87" // U+F0A87
#define ICON_MDI_ZODIAC_VIRGO "\xf3\xb0\xaa\x88" // U+F0A88
#define ICON_MDI_BLANK "\xef\x9a\x8c" // U+F68C
#line 0
// editor_script
#define GLEQ_IMPLEMENTATION
#define GlyphSet GlyphSet_ // linux
#line 1 "3rd_lite_sys_gleq.h"
#line 0
// editor_script
#define GLEQ_IMPLEMENTATION
#define GlyphSet GlyphSet_ // linux
#line 1 "3rd_lite_sys_gleq.h"
/*
* GLEQ - A basic event queue for GLFW 3
* Copyright © Camilla Löwy <elmindreda@glfw.org>
@ -340126,8 +340127,8 @@ GLEQDEF void gleqFreeEvent(GLEQevent* event)
#endif /* GLEQ_IMPLEMENTATION */
#endif /* GLEQ_HEADER_FILE */
#line 0
#line 1 "3rd_lite_sys.h"
#line 0
#line 1 "3rd_lite_sys.h"
// lite editor, platform details
// - rlyeh, public domain
@ -340403,8 +340404,8 @@ bottom:;
return rc;
}
#line 0
#line 1 "3rd_lite.h"
#line 0
#line 1 "3rd_lite.h"
// Copyright (c) 2020 rxi
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
@ -341558,11 +341559,11 @@ void lt_tick(struct lua_State *L) {
"end)"
);
}
#line 0
#define LIGHTMAPPER_IMPLEMENTATION
//#define LM_DEBUG_INTERPOLATION
#line 1 "3rd_lightmapper.h"
#line 0
#define LIGHTMAPPER_IMPLEMENTATION
//#define LM_DEBUG_INTERPOLATION
#line 1 "3rd_lightmapper.h"
/***********************************************************
* A single header file OpenGL lightmapping library *
* https://github.com/ands/lightmapper *
@ -343344,9 +343345,9 @@ lm_bool lmImageSaveTGAf(const char *filename, const float *image, int w, int h,
}
#endif // LIGHTMAPPER_IMPLEMENTATION
#line 0
#line 1 "3rd_sdk_steam.h"
#line 0
#line 1 "3rd_sdk_steam.h"
/***************************************************************/
/* */
/* Only after agreeing to Valves non-disclosure and/or license */
@ -346462,6 +346463,6 @@ X(void*,SteamInternal_CreateInterface,(const char *ver)) \
X(bool,SteamAPI_IsSteamRunning,()) \
X(bool,SteamAPI_InitSafe,()) \
X(void,SteamAPI_RunCallbacks,())
#line 0
#endif // V4K_3RD
#line 0
#endif // V4K_3RD

64842
engine/v4k.c

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.