mirror of
https://github.com/sfall-team/sslc.git
synced 2026-07-27 16:52:49 -07:00
* Add CI build * fix * Update toolset * Use v141_xp * Run on win2019 * Fixes * Link libs statically * Use vcxproj * Experiment: no spaces in configuration * Experiments with build * Commented Fallout1 builds * Comment Win2k builds * Exclude ./out/ from git * Add compat headers * Use one compat file * Fixes for build * Include compat * Add guard for compat.c * Add CMakeLists * Add linux x32 build * Small improvements to build steps * Do not install build-essential * gRevert "Do not install build-essential" This reverts commit434d8e9e98. * Build wasi * Fixing CI pipeline * Fix wasi-sdk download url * Use "" for version * Fix wasm build * Fix wasi build * Disable WASI build due to setjmp/longjmp * Adding emscripten support * Fixes for builds * Include nodefs * Add emscripten build into CI * Build release version from github * Emit mjs file * Add environment node * Use emscripten 4.0.8 * Add comment * Use PATH_MAX * Move all builds into one file * Use bash for linux builds only * Rename artifacts names * Add auto-releases * Add debug ls * Fix artifacts names * Remove folder from tar archive * Fix artifact name * Enable release only on push * Release other builds too * fix names * Fix names * Enable deploy only on push * Remove useless line * Use NODERAWFS & format CMakeLists * Add node-rawfs into emscripten build name * Delete tmp file on non-windows platforms * Rename tmp_file_name * Remove temp file on posix platforms * Revert "Remove temp file on non windows platforms" * Use nodefs instead of noderawfs * Fix ChatGPT code * Add simple tests * Fixes to tests * Fixes for tests run * Small improvements * Rename variable * Small refactor of test runner * Remove warnings which shows folder name * Add minimal package.json * fix package.json main * Fixes for package.json * Fixes for npm packaging * Use bin for all in cmake * Use package subfolder in emscripten ci build * Update CI * Add compiler.mjs as binary * Add test into CI * Bump version * Thinking about running on fallout2 rpu * Add some tests of Fallout RPU * Adding tests for RPU * Debugging * Small improvements * Fixes * Remove comment (there is no problem with asb paths because it runs on the same system) * Experimental: Add RPU test into CI pipeline * CI fixes * Fixes * Use set -e * Add debug for windows build * Add install 7z * Fixes for test runner * Fixes for test runner * Fix symlink creation * Fixing emscripten runner * Add comments * Skip running long test on debug build * Add comment * Use relative symlink for emscripten builds * Show stderr/stdout on wasm crash * Increase stack size to fix emscripten crashes * Add option to skip rpu check by using label * Add additinal label to skip wasm check because they are really really slow * Remove useless line * Add daemon mode for compiler * Use nodejs daemon mode in CI * Add debug for daemon start * Fix daemon start in CI * Add some errors check for daemon mode * Fix daemon cwd * Reduce logging for daemon * use node 22 for emscripten tests runner * Split RPU setup and test run, use cache * Fix order: first try cache * Fix type in CI action * Fix dependencies in CI * Add fail-on-cache-miss * Install wine on test setup * Bump cache version * Add comment * Fix for different caches * Fix bash script * Bump cache version * Check that snapshot file exists * Add "bin" option into package.json * Add comment * Fix checks for RPU * Improve testing logic * Do not install wine if it is already installed * Add some sanity checks * Remove useless check * Check compiler on setup stage * Bump cache version to check setup script on all platforms * Add set -u * Fix env varibales, check wine in bash * Remove unused variable now * Bump cache version * Suppress warning on Windows when checking for apt * Disable asyncify, reduce memory growth * Remove export all * Use O2 for release * Revert exports back because we need FS * Remove emscripted daemon mode from CI * Remove CI daemon mode from emscripten compiler * Adding utils.bash file * Move utils * Move embedded test files * Move gitignore * Use utils for embedded tests too * Remove useless assignment * Fix Windows regular tests * Rename folder name * Add some test files * Add failing .ssl files * Replace paths for embedded tests too * Add expected results for failing compilations * Remove spaces in bash script * Use new line for reports * Remove unused variable in test run * Use new line for test runner too * Use windows-latest * Try windows 2022 * Revert "Try windows 2022" This reverts commit62f6036fae. * Try to use latest but install vs2017 * Do vcvars from vs2017 * Use vs2019 * Change step name * List directories * Use VsDevCmd * Add cmd as shell for dir * use multi-line * Fix multiline * remove duplicate * Use 2017 * Try to install directly * Use cmd as shell * Add sdk to install * Use call * Add VC.Tools.v141; * Add includeRecommended * Add dir command * More components * Use choco * Into one line * Use windows-2025 * Use 2019 * Trying to use vs2019 * Remove choco cache because it does not work properly * Disable ES6 export * Remove wrong commit * Enforce EXPORT_ES6=0 * Revert back to0ef49cbb01* Add separate mjs file with __filename
74 lines
1.4 KiB
C
74 lines
1.4 KiB
C
#ifndef _WIN32
|
|
|
|
#ifndef _COMPAT_H_DEFINED
|
|
#define _COMPAT_H_DEFINED
|
|
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <unistd.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <sys/types.h>
|
|
#include <dirent.h>
|
|
#include <fnmatch.h>
|
|
#include <sys/stat.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <errno.h>
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <limits.h>
|
|
|
|
#define _A_NORMAL 0x00
|
|
#define _A_SUBDIR 0x10
|
|
|
|
#define _MSC_VER
|
|
|
|
|
|
int sprintf_s(char *buffer, size_t sizeOfBuffer, const char *format, ...);
|
|
int rand_s(unsigned int *randomValue);
|
|
|
|
int strcpy_s(char* dest, size_t destsz, const char* src);
|
|
int strcat_s(char *dest, size_t destsz, const char *src);
|
|
|
|
#define _stricmp strcasecmp
|
|
#define GetCurrentProcessId() ((unsigned int)getpid())
|
|
#define _mkdir(path) mkdir((path), 0777)
|
|
#define _chdir chdir
|
|
#define _getcwd getcwd
|
|
#define _stat stat
|
|
|
|
|
|
#if !defined(__EMSCRIPTEN__)
|
|
typedef __time_t time_t;
|
|
#endif
|
|
|
|
typedef u_int32_t _fsize_t;
|
|
|
|
|
|
struct _finddata_t {
|
|
unsigned attrib;
|
|
time_t time_write;
|
|
size_t size;
|
|
char name[PATH_MAX];
|
|
};
|
|
|
|
typedef struct {
|
|
DIR *dir;
|
|
char pattern[PATH_MAX];
|
|
char path[PATH_MAX];
|
|
} _find_handle_t;
|
|
|
|
|
|
intptr_t _findfirst(const char *pattern, struct _finddata_t *data);
|
|
int _findnext(intptr_t h, struct _finddata_t *data);
|
|
int _findclose(intptr_t h);
|
|
|
|
|
|
|
|
#endif
|
|
#endif |