Commit Graph

6 Commits

Author SHA1 Message Date
Lucas Gabriel Vuotto 0e7ab0ca9e 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>
2016-02-22 14:36:21 +00:00
sin f3a9b7138e Rename __ARG_H__ to ARG_H__
__* is reserved so do not use it.
2013-11-25 21:33:58 +00:00
sin 34ea6ae10a Add support for obsolete -NUM arguments in arg.h
Fix naming, _brk, _argc and _argv are reserved for the
implementation.

Thanks to nsz@port70.net for reporting this, the mail excerpt below.

"actually __.* and _[A-Z].* are reserved for any usage and _.* is
reserved for file scope identifiers"

We just rename them to brk_, argc_ and argv_.
2013-11-14 10:48:40 +00:00
sin a42f909362 Rename `brk' to `_brk' to avoid polluting the namespace 2013-11-13 11:58:31 +00:00
sin a4b84fbe83 No need to use USED() in arg.h for sbase
Tested on Linux and OpenBSD (with gcc and pcc).
2013-11-09 16:33:50 +00:00
sin 987ec1ef09 Initial commit of ubase - the ugly/unportable base 2013-08-06 13:17:14 +01:00