- unix signals are replaced by named events Global\winws2_sig_<pid>_<hup|usr1|usr2|term>, 'winws2 --wn-signal=<name>[:<pid>]' sends them. term is a graceful stop - append mode files stay open, fclose only flushes (upstream reopens the log for every line) - $file and unexpanded @file are read completely instead of the first 16K - argument parsing moved to args.c and covered by tests/run.sh (includes cases recorded from the cygwin build). sync-upstream.sh runs the tests before pushing - luajit is built with -Os Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
448 B
C
18 lines
448 B
C
// winnative: shell-like word splitting used for @config files
|
|
#pragma once
|
|
typedef struct
|
|
{
|
|
size_t we_wordc;
|
|
char **we_wordv;
|
|
size_t we_offs;
|
|
} wordexp_t;
|
|
#define WRDE_NOCMD 4
|
|
#define WRDE_NOSPACE 1
|
|
#define WRDE_BADCHAR 2
|
|
#define WRDE_BADVAL 3
|
|
#define WRDE_CMDSUB 4
|
|
#define WRDE_SYNTAX 5
|
|
#define wordexp wn_wordexp
|
|
#define wordfree wn_wordfree
|
|
int wordexp(const char *words, wordexp_t *pwordexp, int flags);
|
|
void wordfree(wordexp_t *pwordexp);
|