Thread View: gnu.utils.bug
2 messages
2 total messages
Started by Francois Pinard
Sun, 31 Dec 1989 00:22
Tiny bug in GNU getopt, and multiplication of sources
Author: Francois Pinard
Date: Sun, 31 Dec 1989 00:22
Date: Sun, 31 Dec 1989 00:22
24 lines
1652 bytes
1652 bytes
Hello, people. GNU getopt does not declare the functions alloca nor index. Function alloca should return void *, and index should return char *. This particular getopt was part of grep 1.5, but I do not feel like reporting this as a grep bug. A few GNU routines get multiplied in several products. I think of alloca, obstack, regcmp, getopt among others (and soon, readline :-). Most of them originated from GNU emacs, I believe; but comparing the same routine in various products reveals that they slightly differ for reasons not pertaining necessarily to the product in which they stand. Maybe the time has come to develop a common library of such routines, with a proper version numbering scheme to help comparison and reference, and reduce multiplicity. I suggest these would not nest in emacs anymore, so to be able to evolve independently, in a faster and ligthier (?) way. bug-utils seemed (to me) the best place to discuss such matters. If I am in the wrong forum, please someone tell me. -- Franc,ois Pinard pinard@iro.umontreal.ca (514) 588-4656 ``Vivement GNU!'' ...!uunet!iros1!pinard
Re: Tiny bug in GNU getopt, and multiplication of sources
Author: David J. MacKenzie
Date: Wed, 03 Jan 1990 08:22
Date: Wed, 03 Jan 1990 08:22
30 lines
2201 bytes
2201 bytes
In article <8912310022.AA20600@kovic.IRO.UMontreal.CA> mcgill-vision!iros1!pinard@EDDIE.MIT.EDU (Francois Pinard) writes: > GNU getopt does not declare the functions alloca nor index. Function > alloca should return void *, and index should return char *. This > particular getopt was part of grep 1.5, but I do not feel like > reporting this as a grep bug. I fixed that on the master copy recently. New releases of GNU programs should automatically include the change (see below). > Most of them originated from GNU emacs, I believe; but comparing the > same routine in various products reveals that they slightly differ for > reasons not pertaining necessarily to the product in which they stand. Actually, they all are in fact symbolic links to the same copies of the source code at the MIT AI Lab, but you obviously can't do that in a distribution tar file. The reason you see slightly different versions of various GNU library files is that the distributions of those different programs were not made all at the same time; thus, they each got a copy of whatever happened to be the current version at the time that they were released. When new versions are released, they will automagically get the new current versions of the library files. In the case of grep 1.5, Mike wanted to minimize the size of the diffs from previous versions, so he did not include the current getopt.c, or update the copyleft messages to use the subroutinized GPL; but that is an exception . . . . -- David J. MacKenzie <djm@eng.umd.edu>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads