| www.delorie.com/archives/browse.cgi | search | 
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f | 
| X-Recipient: | djgpp-workers AT delorie DOT com | 
| DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; | 
| d=gmail.com; s=gamma; | |
| h=domainkey-signature:mime-version:received:date:message-id:subject | |
| :from:to:content-type; | |
| bh=9a4cvVid5fD9sGmnw1s5UGEIeZqWuKNJTQdm+OR1XJs=; | |
| b=TqSKHBwH0jTiJx9XdCj1mCqiXZW58UUkCAoNbu0pvjR00Aa0C0S6IzAfS3wOcnmzHp | |
| anpDtAk5vU4C9td3rt3NMxweV0kzLjrPaXxISxQL9drbpfaOx1iTbE4Ju0SMPCZmrvZW | |
| zGY9tQiRGNQ+wWbTqQJV4s3vHdb3cggwDSCiY= | |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; | 
| d=gmail.com; s=gamma; | |
| h=mime-version:date:message-id:subject:from:to:content-type; | |
| b=pendbaiPNBWtp4dOARiBD/vMowXvZi7syQ9P9qtiWFY1S03/dy3IKY7x2WabqpRjq4 | |
| zKiYWvd63IWlKHZVJHRiHFBueoRoDNJrxY9F3Tt9AmgT5G3vpUkhsQXkjlZvbwI5zlaQ | |
| w7s1d5KGGDbzSLT6jvy7RHd3g2F6OxxjX5lPY= | |
| MIME-Version: | 1.0 | 
| Date: | Thu, 29 Oct 2009 15:11:17 -0500 | 
| Message-ID: | <93c172b50910291311g7c45c6e3l7103fe218b9a6c51@mail.gmail.com> | 
| Subject: | getopt_long.c (suggestion, grabbed from FreeBSD) | 
| From: | Rugxulo <rugxulo AT gmail DOT com> | 
| To: | djgpp-workers AT delorie DOT com | 
| Reply-To: | djgpp-workers AT delorie DOT com | 
Hey guys,
   Apparently I didn't cc correctly (or it didn't work), so here goes:
I discovered that some things need getopt_long (which is a GNU
extension) but the GNU version is GPL only, so I found a FreeBSD
version (for DJGPP libc, in theory) that seems to work with a little
tweaking.
http://rugxulo.googlepages.com/getopt_l.zip
Archive:  getopt_l.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
    13911  10-26-09 14:05   getopt_long.c,v
     3113  10-26-09 14:05   mygetopt.h,v
    12821  10-29-09 14:42   getopt_long.c
     9826  10-29-09 14:42   getopt_long.o
     2763  10-29-09 14:41   mygetopt.h
 --------                   -------
    42434                   5 files
P.S. If you want to test with EsCo, you'll have to do the following:
a). manually fix the "\\r" typo to "\r" before running "sh configure"
b). put getopt_long.o in "esco\src"
c). edit src\escoconf.cpp and src\consoleface.cpp to refer to
"mygetopt.h" instead of <getopt.h> and put mygetopt.h in "esco\include"
d). edit src\makefile to put "getopt_long.o" after the line
"esco_OBJ.* = "
http://sourceforge.net/projects/esco/
(This example is not ideal because it's GPL anyways and seems to
assume GNU getopt_long already exists, e.g. Linux Glibc, and GNU
getopt_long can be found in BinUtils sources as getopt.c, getopt1.c,
getopt.h, and ansidecl.h)
| webmaster | delorie software privacy | 
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |