~petersanchez/st

st/arg.h -rw-r--r-- 1.0 KiB
a5a928bf — Hiltjo Posthuma 3 years ago
don't modify argv, use a counter

on some platforms (OpenBSD) this changes the exposed argv in tools using
the kvm_* interface, such as ps and pgrep.
4fdba860 — Lucas Gabriel Vuotto 5 years ago
arg.h: fixed argv checks order

This prevents accessing to a potentially out-of-bounds memory section.

Signed-off-by: Lucas Gabriel Vuotto <l.vuotto92@gmail.com>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
d836561b — Quentin Rameau 6 years ago
arg.h: remove unused macros

ARGUM isn't used and ARGNUMF uses estrtol() that isn't defined anywhere.
Those were probably copied from sbase arg.h.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
33da67da — Roberto E. Vargas Caballero 8 years ago
Update arg.h from sbase

sbase did some interesting modifications to arg.h (basically it
was fixed an incorrect use of the _ namespace), and this commit
take this last version for st.
b1813b14 — Christoph Lohmann 8 years ago
Adopting arg.h with more flexible cmd handling.