tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] [PATCH] win32: add include/getopt.h with static implement


From: avih
Subject: [Tinycc-devel] [PATCH] win32: add include/getopt.h with static implementation
Date: Fri, 26 Jul 2019 12:17:28 +0000 (UTC)

Patch is attached. If there are no objections, I'll push it in few days.

>From the commit message:

This is a POSIX compliant implementation of getopt (short options).

It passes all tests of gnu getopt in posixly-correct mode, with
additional safeguards against out-of-bounds access (optind, optpos).
Reset is supported via optind or optreset.

For simplicity, the implementation is static at the header, and it
uses stdio.h and string.h (could be avoided with some more code).

Attachment: 0001-win32-add-include-getopt.h-with-static-implementatio.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]