| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
... and replace the functions for unsigned integers with their
signed equivalents, using a type cast where needed.
Actually the functions for unsigned integers were deprecated since
lua 5.3...
https://www.lua.org/manual/5.3/manual.html#8.3
Also lua_newstate() requires a third argument since 5.5...
https://www.lua.org/manual/5.5/manual.html#8.3
Finally the key in a for loop is now const, so use a temporary
variable instead.
|
|
|
|
|
|
The amount of code we need to detect if this is present and handle
the fallback is more than if we just provide it ourselves.
Also we are passing in a difference of pointers so the argument
type should be ptrdiff_t. This avoids a C brain damage of having
unsigned size type which can wrap around if the caller is careful.
|
|
Having a failure case on allocing a TextSave is stupid. Ideally
there would be no allocations in the file saving path but we have
to replace the braindead dirname(3) with an internal
implementation.
|
|
|
|
|
|
|
|
from feature_test_macros(7):
> Defining _XOPEN_SOURCE with a value of 700 or greater produces the
> same effects as defining _POSIX_C_SOURCE with a value of 200809L or
> greater.
Depending on the configuration and system pkg-conf files there can be
redefinition warnings. Rather than patching with a -U_POSIX_C_SOURCE
it can just be dropped instead.
|
|
|
|
distributions that want this flag set do so on a system wide level. for
example Gentoo, Fedora, Debian, and OpenSUSE.
since vis sets it when invoking cc via make it overwrites the system
setting (and pollutes the output with redefinition warnings).
For reference here is the related bug in Gentoo:
https://bugs.gentoo.org/892960
|
|
|
|
|
|
Gracefully fallback to curses(3) (no libcurses `.pc' file is present
and `-l$libcurses' is used and hence `-lcurses' (not `-llibcurses'!)).
|
|
Previously these were only used to compile the main project source,
resulting in inconsistencies between the feature detection and actual
usage.
|
|
memrchr() signature is not exposed by default for NetBSD. If one does
not add -D_NETBSD_SOURCE, the compiler uses its own signature for
memrchr() that returns a 32-bit integer, leading to misbehaviour in some
situations. Defining _BSD_SOURCE doesn't work, so we define
_NETBSD_SOURCE.
|
|
This is required to build with lua 5.4.x.
|
|
|
|
Was also reported in #780.
|
|
Make macro definitions and enums available to debugger.
|
|
|
|
Try the possible library names regardless of .pc file availability.
|
|
|
|
Fix #607
|
|
|
|
Fix #636
|
|
Set $PATH and $TERMINFO_DIRS environment variables, use chdir(2) to
simplify extraction logic, improve error handling.
|
|
luaL_openlibs is actually declared in lualib.h.
|
|
|
|
These are generally implemented efficiently in libc.
While memrchr(3) is non-standard, it is a common extension.
If it is not available, we use a simple C implementation from musl.
|
|
|
|
|
|
The intention of this is not to slowly reimplement curses but to provide
a minimal working terminal UI backend which can also be used for debugging,
fuzzing and in environments where curses is not available.
Currently no attempt is made to optimize terminal output. The amount of
flickering will depend on the smartness of your terminal emulator.
|
|
|
|
$ ./configure --disable-help
shrinks the binary by about 20K on a x86_64 system.
|
|
$ ./configure --disable-lua
will no longer look for liblpeg.
|
|
While memory consumption should be improved, backward searches
will still be slow, because they are implemented in terms of
repeated forward searches. It needs to be investigated whether
the underlying automaton can have its transitions reversed and
essentially run backwards, as is the case in sam.
|
|
This allows inclusion in other Makefiles (e.g. for C unit tests).
|
|
It links lpeg statically into the vis binary, meaning it does not need
to be dlopen(3)-ed at runtime. While this improves the portability of
the resulting vis binary, it is not necessary to enable this option to
get syntax highlighting support.
Maybe the option should be renamed to avoid further confusion.
|
|
These are used by `make standalone` but are not really appropriate
for normal usage and just cause confusion as demonstrated by #373.
|
|
|
|
The generic lua pkg-config name also match for Lua 5.1 which
then results in a linker error because the necessary functions
are not available.
|
|
SIGWINCH is not part of POSIX. In contrast to the other BSD
variants, FreeBSD does not expose it when defining _BSD_SOURCE.
This is probably not the 'correct' solution, but seems to
work for now.
Instead of defining it globally it might have been better to add
the necessary #define to the only source file making use of
SIGWINCH.
Close #302
|
|
|
|
In theory this should be as simple as:
$ cc -fPIE -pie --static helloworld.c
But unfortunately by default this will always add a PT_INTERP referencing
the dynamic loader/linker. On latest binutils >=2.26 this can be worked
around by supplying --no-dynamic-linker. Also tweak the musl-gcc wrapper
to use rcrt1.o as startup file.
|
|
Signed-off-by: Christian Hesse <mail@eworm.de>
|
|
This reverts commit d6effd021d2aa2b6c452f229046a85c5f1a252a7.
|
|
|
|
This way we make sure the flags are in place when building
dependencies.
|