delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/10/20/16:15:15

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Rugxulo <rugxulo AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: getopt_long missing (or "More esoteric language fun: EsCo")
Date: Tue, 20 Oct 2009 13:05:25 -0700 (PDT)
Organization: http://groups.google.com
Lines: 27
Message-ID: <4f321dc9-7676-49cd-88f3-ce392fce98e9@31g2000vbf.googlegroups.com>
References: <70015ce7-3ab3-4e2e-8784-3e83f2ef3650 AT d4g2000vbm DOT googlegroups DOT com>
<200910201813 DOT n9KIDspI006759 AT envy DOT delorie DOT com> <090b6a14-39ce-49f8-b601-ce6054405e8b AT o13g2000vbl DOT googlegroups DOT com>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1256069125 18685 127.0.0.1 (20 Oct 2009 20:05:25 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Tue, 20 Oct 2009 20:05:25 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: 31g2000vbf.googlegroups.com; posting-host=65.13.115.246;
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi again,

On Oct 20, 1:56=A0pm, Rugxulo <rugx DOT  DOT  DOT  AT gmail DOT com> wrote:
>
> On Oct 20, 1:13=A0pm, DJ Delorie <d DOT  DOT  DOT  AT delorie DOT com> wrote:
>
> > DJGPP's library is old; it might just be that getopt_long() wasn't
> > even considered back then. =A0Feel free to add one, but keep in mind th=
e
> > licensing issues - GPL/LGPL is unacceptable in libc, BSD is OK.
>
> even NetBSD (since 1.5) etc. have their own getopt_long. I honestly
> doubt it would be too trivial to port to DJGPP, but hey, it's probably po=
ssible.

Well, NetBSD seems to be harder to get working than FreeBSD.

http://ftp6.tw.freebsd.org/FreeBSD/development/FreeBSD-CVS/src/contrib/file=
/

getopt_long.c,v
mygetopt.h,v

Both of those need very minor editing, but it seems to compile / work
with EsCo, so I guess it would work okay for DJGPP in general. But I'm
really unfamiliar with getopt in general, so I can't say how well this
version actually works or what needs to be done (tests?), though.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019