Re: socklen_t

2005-12-01 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > You're welcome. One thing I forgot to mention: the old m4/socklen.m4 > code is obviously incorrect because of the stray parenthesis in this > line: > > #endif) > > That parenthesis is copied into the C header used for testing. > > GCC doesn't mind, but ot

Re: Separate csharpcomp.sh, and a license problem

2005-12-02 Thread Ben Pfaff
ould presumably have LGPL'd build tools also. I wonder if there should be two separate fields. (In practice, of course, I don't know whether this matters.) -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org ___ bug-gnulib mailin

Re: ULONG_MAX on Solaris

2005-12-08 Thread Ben Pfaff
Simon Josefsson <[EMAIL PROTECTED]> writes: > has ULONG_MAX in limits.h but not in stdlib.h. I believe C89 it to be > in stdlib.h. I don't think so. In a quick search through C99, I only saw ULONG_MAX mentioned as being defined in . I don't think C89 was different. -- "[Modern] war is waged b

Re: gnulib-tool --lgpl exception for self tests?

2006-01-09 Thread Ben Pfaff
'd expect that at least one of the entries here should mention what was actually done to the license. -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org ___ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib

Re: stdint_.h vs intmax_t & uintmax_t

2006-01-09 Thread Ben Pfaff
r that can be represented in the type with smaller size. ... 22. In a two's-complement representation, there is no actual change in the bit pattern except filling the high-order bits with copies of the sign bit if the unsigned inte

Re: gnulib-tool basics

2006-02-12 Thread Ben Pfaff
[EMAIL PROTECTED] (Karl Berry) writes: > ... so I would have expected it to know to use gnulib/lib and gnulib/m4, > not lib/ and /m4. It's been a while, but my memory is that it did read > the configure.ac settings last time I tried it. I don't think it does anymore. I had to change my build se

intprops.h as a module?

2006-02-24 Thread Ben Pfaff
The intprops.h header file seems pretty useful by itself. Would it make sense to create a module that just imports that header file? -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org ___ bug-gnulib mailing list bug-gnulib@gnu.org http

Re: removing asctime_r, ctime_r from the time_r module

2006-03-10 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > I recently redisovered the fact that actime_r and ctime_r, like > asctime and ctime, are unsafe functions in the same sense that gets is > unsafe: they can overrun their output buffers and there's no simple > way for the user to detect in advance whether t

Re: fwriteerror() interface

2006-03-11 Thread Ben Pfaff
Ben Pfaff <[EMAIL PROTECTED]> writes: > I'm not sure I understand the fwriteerror() interface. As I read > the function comment, fwriteerror() should always close the > stream provided to it (except in the case of stdout). But the > implementation does not close the

linebreak.h should include localcharset.h?

2006-03-26 Thread Ben Pfaff
linebreak.h declares locale_charset() directly, but the latter has its own header localcharset.h, so it seems like it should just #include that directly. -- "doe not call up Any that you can not put downe." --H. P. Lovecraft ___ bug-gnulib mailing lis

Re: [bug-gnulib] fwriteerror() interface

2006-04-24 Thread Ben Pfaff
;contents is" is not quite grammatical, and the comment is a > bit overconfident about getting the "same errno". For what it's worth, I do find Paul's version to be a little more readable. Bruno, thanks for looking at this. -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

badly sorted #include directives

2006-04-24 Thread Ben Pfaff
gnulib-tool appears to blindly sort the list of #include directives it prints. When the list contains #if...#endif, that makes the output funny, e.g.: You may need to add #include directives for the following .h files. #endif #if HAVE_MBRTOWC #if HAVE_WCHAR_H && HAVE_WCTYPE_

va_copy in gnulib?

2006-05-07 Thread Ben Pfaff
efine va_copy(DST, SRC) __va_copy (DST, SRC) #else #define va_copy(DST, SRC) ((DST) = (SRC)) #endif #endif -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

Re: Cygwin && WIN32

2006-05-19 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Paul Eggert wrote: >> > In other places I used to define WIN32 as an abbreviation of >> > defined _WIN32 || defined __WIN32__ >> > Now I'm renaming that to WIN32_NATIVE. >> >> Would WOE32_NATIVE be a better name? > > Many people believe code should b

Re: function portability documentation

2006-05-22 Thread Ben Pfaff
Bruno, that's great work. I did some proofreading and found some minor things to point out. Bruno Haible <[EMAIL PROTECTED]> writes: > + @code{basename} assumes file names in POSIX syntax; it does not with file > + names in Windows syntax. "...does not" work "with file..." > + @item btowc > +

SSIZE_MAX

2006-06-03 Thread Ben Pfaff
Gnulib includes a module for ssize_t, but it doesn't ensure that SSIZE_MAX is available. It seems that an ssize_t.h header file with the following contents would be sufficient: #include #ifndef SSIZE_MAX # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) #endif A few of the source f

Re: SSIZE_MAX

2006-06-03 Thread Ben Pfaff
Ben Pfaff <[EMAIL PROTECTED]> writes: > Gnulib includes a module for ssize_t, but it doesn't ensure that > SSIZE_MAX is available. It seems that an ssize_t.h header file > with the following contents would be sufficient: I really meant ssize_max.h, analogous to size_max.

Re: SSIZE_MAX

2006-06-03 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > Ben Pfaff <[EMAIL PROTECTED]> writes: > >> I really meant ssize_max.h, analogous to size_max.h. Or they >> could be combined into one header file. > > I think size_max.h is there only because SIZE_MAX is in different

Re: result type of INT16_C, UINT16_C

2006-06-17 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > However, 7.18.4 wants macros that expand to integer constants that > are of type int_leastN_t or uint_leastN_t. But integer constants > don't contain casts (section 6.4.4.1) - therefore it is impossible > to write down integer constants of type, say, int_

Re: Portablity bug in base64.c

2006-06-22 Thread Ben Pfaff
sion. I was under the impression that gnulib targets C89 and above, making this a non-issue. -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

Re: [bug-gnulib] Re: result type of INT16_C, UINT16_C

2006-06-23 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Ben Pfaff wrote: >> I think you are overlooking the changes in Technical Corrigendum >> 1, which includes the following: > > Thanks for the text; I don't have a copy of this Technical Corrigendum. You can get a copy at is

Re: proposed simplification rewrite of stdint module

2006-06-29 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > Here's a proposed rewrite of the stdint module that attempts to > simplify the module while addressing the porting issues that have come > up in the last week. The basic idea is to use macros instead of > typedefs. I think this kind of approach would hav

Re: new module for temporary files in temporary directories

2006-06-30 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > /* Create a temporary directory. >PREFIX is used as a prefix for the name of the temporary directory. It >should be short and still give an indication about the program. >Return a fresh 'struct temp_dir' on success. Upon error, an error messa

Re: new module for temporary files in temporary directories

2006-07-04 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > 1) The practical reason is that while developing libsigsegv, I noticed that > C does not have the notion of a "barrier": In code like this: > > set_up_datastructures(); > /* HERE I would like a barrier */ > signal(sig,my_signal_handler);

Re: new module for temporary files in temporary directories

2006-07-04 Thread Ben Pfaff
eceives the same level of review as the standard itself): If it is necessary to access a non-volatile object using volatile semantics, the technique is to cast the address of the object to the appropriate pointer-to-qualified type, then dereference that pointer. -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

Re: new module for temporary files in temporary directories

2006-07-05 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > Ben Pfaff <[EMAIL PROTECTED]> writes: > >> This is a particularly pessimistic interpretation of the >> standard, > > You think _I'm_ pessimistic! You should hear Nick MacLaren and Dave > Butenof.

Re: new module for temporary files in temporary directories

2006-07-06 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > Ben Pfaff <[EMAIL PROTECTED]> writes: > >> The issue at hand, as I understand it, is not even the general >> behavior of signals. It is the behavior of fatal signals. That >> is, a the program terminates without ever

Re: split stdio-safer into fopen-safer, tmpfile-safer

2006-07-25 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > With Bison I wanted fopen_safer but not tmpfile_safer (I think tmpfile > is not that safe due to signals and whatnot), so I split the fopen-safer > module into two, as follows: Can you expand on why tmpfile is not so safe? -- Ben Pfaff

Re: split stdio-safer into fopen-safer, tmpfile-safer

2006-07-26 Thread Ben Pfaff
Eric Blake <[EMAIL PROTECTED]> writes: > According to Ben Pfaff on 7/25/2006 11:21 AM: >> Can you expand on why tmpfile is not so safe? > > I'd still like to fear Paul's reasons. I hope you mean "hear" them :-) > But one of mine is that tmpfile is a

Re: typo in error module

2006-07-28 Thread Ben Pfaff
? It only updates code inside an #ifdef _LIBC block. -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

Re: new module proposal: verror

2006-08-04 Thread Ben Pfaff
t;, message); and similarly for verror_at_line? > + free (message); > +} -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

Re: new module c-strstr

2006-08-18 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > The "nearly an ASCII extension" assumption is so ubiquitous, think of > (c >= '0') tests and similar. You really find it's worth mentioning? Digits are a very special case, because the C standard (C89 onward) guarantees that they are in order and contigu

portability of 64-bit types?

2006-08-26 Thread Ben Pfaff
I am considering using a 64-bit type in one bit of code in GNU PSPP. I could avoid it, but using it makes the code easier to read. Is anyone aware of an implementation (on which GNU programs are commonly used) that does not support a 64-bit or wider integer type? I'm aware that MSVC doesn't supp

Re: printing size_t variables

2006-09-02 Thread Ben Pfaff
is > good enough for now. z and t can easily be handled by casting, but j cannot. However, for intmax_t you can use PRIdMAX. For that matter, for ptrdiff_t you can use PRIdPTR, which makes it a little bizarre that there is no PRIuSIZE (I like the suggestion that someone made of creating one

Re: new module proposal: split

2006-09-05 Thread Ben Pfaff
Davide Angelocola <[EMAIL PROTECTED]> writes: > I'm proposing another new module for gnulib: split. > > The function signature is: > char *split(const char *str, char sep, int *argc); > > what do you think about? What does it do? -- "Sanity is not statistical." --George Orwell

Re: new module proposal: split

2006-09-05 Thread Ben Pfaff
Davide Angelocola <[EMAIL PROTECTED]> writes: > On Tuesday 05 September 2006 22:01, Ben Pfaff wrote: >> Davide Angelocola <[EMAIL PROTECTED]> writes: >> > I'm proposing another new module for gnulib: split. >> > >> > The function signature

Re: proper names

2006-09-06 Thread Ben Pfaff
ETTEXT_OPTIONS variable, but your message tells me to do so and gives the right syntax. -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

Re: setlocale

2006-10-18 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Simon Josefsson wrote: >> Why can we assume setlocale exists? >> Is it POSIX? > > Even more: It's specified by ISO C 99. Even more than that: it's in C90 also. -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

Re: gettext.h patch for portability to sunCC, pgCC, RHEL AS 4 g++

2006-10-25 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > + /* GCC supports variable-size arrays in C and C++ mode. > +ISO C++ supports variable-size arrays, but some older PGI and Sun > compilers > +don't. */ I don't understand this assertion that ISO C++ supports variable-size arrays. ISO C++98 sho

Re: yet another hello pretest

2006-11-09 Thread Ben Pfaff
l% > + if any writes failed, change the exit status. This is > + implemented in the Gnulib module "closeout". */ -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

Re: yet another hello pretest

2006-11-09 Thread Ben Pfaff
Matthew Woehlke <[EMAIL PROTECTED]> writes: > Karl Berry wrote: >>> the gnulib module exit, to ensure the existence of EXIT_SUCCESS. >> >> Isn't it part of some sufficiently-old standard so that it's not >> necessary/recommended? > > What is "it"? Using EXIT_SUCCESS, using gnulib to ensure that yo

Re: coreutils 6.6 HP-UX build error

2006-11-22 Thread Ben Pfaff
n integral type, so it should be supported. Are there actual implementations that support long long int but not its use as a switch expression? -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

Re: Incompatibility between current gnulib and gettext-0.14.6?

2006-11-26 Thread Ben Pfaff
Simon Josefsson <[EMAIL PROTECTED]> writes: > I agree in general, although I'd prefer to see gnulib support autoconf > 2.60a, automake 1.10 and gettext 0.15 for some time more, because that > is what is installed on my up-to-date Debian 'unstable' box. Somehow I missed the release of Autoconf 2.6

module for missing math.h functions?

2006-11-26 Thread Ben Pfaff
be likely. -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

Re: [bug-gnulib] module for missing math.h functions?

2006-11-27 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Ben Pfaff wrote: >> C99 added some useful functions to math.h, such as trunc and >> round. Would there be objections to a module that adds >> implementations of those functions? > > This would be a good idea. Can

tests/test-base64.c: executable?

2006-11-27 Thread Ben Pfaff
tests/test-base64.c in the gnulib repository checks out marked executable for me. Seems odd. -- "I didn't say it was your fault. I said I was going to blame it on you."

Re: module for missing math.h functions?

2006-11-27 Thread Ben Pfaff
+ along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + Written by Paul Eggert and Ben Pfaff. */ + +#include + +#if !HAVE_ROUNDF +float +roundf (float x) +{ + return round (x); +} +#endif /* !HAV

Re: stdint problem

2006-11-28 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > You need to upgrade to autoconf 2.61. The signature of AC_COMPUTE_INT has > changed between 2.60a and 2.61. (Such a change is normal. There is no > promise of an API compatibility for a snapshot version of autoconf.) For what it's worth, I hadn't realize

Re: gnulib broken on systems lacking fchdir

2006-11-30 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Huh? I think there is a misunderstanding. The GNU standards don't want > 'pathname' to occur in the documentation in the sense as POSIX uses it, > because of the PATH variable and the concept of search paths. Paul then > doesn't want to use 'pathname' in

why don't Gnulib tests run for me?

2006-12-14 Thread Ben Pfaff
akefile.am: TESTS += test-arcfour$(EXEEXT) check_PROGRAMS += test-arcfour Any idea what I'm doing wrong? -- Ben Pfaff email: [EMAIL PROTECTED] web: http://benpfaff.org

Re: why don't Gnulib tests run for me?

2006-12-14 Thread Ben Pfaff
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > * Ben Pfaff wrote on Fri, Dec 15, 2006 at 02:31:46AM CET: >> I finally got back to working on the proposed module and >> I'm trying to figure how tests in Gnulib work. In particular, >> I'm confused that

Re: test modules and license

2007-01-15 Thread Ben Pfaff
ad, write `1996, 1997, 1998'. Do write each relevant year as a four-digit number. In the normal course of maintenance, you may come across copyright notices which omit the century, as in `1996, 97, 98'--change these to include the century. However, there is no need to

Re: gnu math library

2007-02-02 Thread Ben Pfaff
I didn't look to see that specific features supported by GNU SSL are also supported by GSL. GSL is actively maintained. It is in active use by other projects. I can't speak for GNU SSL. GNU SSL has C and C++ interfaces. GSL has only a C interface (as far as I know). -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

memset.c needs #include ?

2007-02-04 Thread Ben Pfaff
t might be a problem, too, but this is the one that is causing problems for PSPP right now. Thanks for gnulib! -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

wint_t in printf-args.c under mingw32

2007-02-11 Thread Ben Pfaff
t;a.a_wide_char = va_arg (args, wint_t); break; #endif I see that in other cases in that file where the type passed to va_arg is likely to be narrower than int, "int" is what is passed to va_arg as the type. Should the same tactic be used here? -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

Re: wint_t in printf-args.c under mingw32

2007-02-11 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Thanks for reporting this. This is already fixed in gnulib for 6 months: I thought I'd done a "cvs update" recently, but obviously not. Thanks for taking the time to reply. -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

fix inadequate Windows implementation of tmpfile

2007-02-15 Thread Ben Pfaff
BILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, B

Re: fix inadequate Windows implementation of tmpfile

2007-02-15 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > So, to test whether native Woe32 API is available, use > > defined _WIN32 || defined __WIN32__ Ben Pfaff <[EMAIL PROTECTED]> writes: > +

Re: fix inadequate Windows implementation of tmpfile

2007-02-15 Thread Ben Pfaff
you elaborate, please? clean-temp guarantees that the file will be > removed in most cases. You want it removed earlier, as soon as the fclose > happens? To save disk space? Yes: PSPP uses temporary files for transposing big matrices, out-of-core merge sorting, and so on, so it's a good idea to free up disk space when it can. -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

check for C99-compliant snprintf

2007-02-15 Thread Ben Pfaff
Pre-C99 versions of snprintf often had an interface different from the C99 interface: they would return -1 when the buffer was too small, and the "size" argument was not necessarily interpreted the same way. However, the current Gnulib snprintf module doesn't check whether snprintf is C99-complian

Re: check for C99-compliant snprintf

2007-02-16 Thread Ben Pfaff
intf. We could of course test whether the system is Windows, using #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ or similar. Is that a better idea? -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

Re: check for C99-compliant snprintf

2007-02-16 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > Ben Pfaff <[EMAIL PROTECTED]> writes: > >> We could of course test whether the system is Windows, using >> #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ >> or similar. Is that a bette

Re: fix inadequate Windows implementation of tmpfile

2007-02-17 Thread Ben Pfaff
t; OK. So I'm adding Ben's module, with the following modifications: Thank you Bruno. The changes look good to me, and they test out correctly in PSPP. I have not yet signed papers for gnulib contributions. Should I? -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

conflicts between pathname.h and dirname.h

2007-02-17 Thread Ben Pfaff
pathname.h and dirname.h define macros with the same names, but conflicting definitions. Should they be merged? -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

progreloc.c - what module?

2007-02-19 Thread Ben Pfaff
The file lib/progreloc.c is not in any module (as far as I can tell). Also, there is no header file that prototypes its functions. Is this intentional? -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

Re: progreloc.c - what module?

2007-02-19 Thread Ben Pfaff
Ben Pfaff <[EMAIL PROTECTED]> writes: > The file lib/progreloc.c is not in any module (as far as I can > tell). Also, there is no header file that prototypes its > functions. Is this intentional? The latter I've now noticed I'm wrong about, but I'm still prett

Re: Printf for gnulib?

2007-02-19 Thread Ben Pfaff
ome things. That's an issue e.g. with Windows's %I64d > versus %lld, and with C99 formats like %a. I'd be very pleased to have a full C99 printf in gnulib, mainly because I'm getting tired of not being able to write %zu to print a size_t. -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

Re: ///usr/include/stdlib.h:617: warning: '__malloc__' attribute ignored

2007-02-19 Thread Ben Pfaff
///usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/string.h:103: warning: no previous prototype for 'strncasecmp' [EMAIL PROTECTED]:~/pspp/mingw/pspp/_mingw/gl(0)$ Sorry about the overlong lines. -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

Re: check for C99-compliant snprintf

2007-02-19 Thread Ben Pfaff
Albert Chin <[EMAIL PROTECTED]> writes: > Huh? So, if vsnprintf() exists, you assume it's C99-compliant? glib > has a check for this, AC_FUNC_VSNPRINTF_C99, because that's not the > case on some systems. And, we found that Solaris and AIX 5.1 do not > have a C99-compliant vsnprintf(). The attached

Re: check for C99-compliant snprintf

2007-02-19 Thread Ben Pfaff
Albert Chin <[EMAIL PROTECTED]> writes: > On Mon, Feb 19, 2007 at 03:53:10PM -0800, Ben Pfaff wrote: >> Albert Chin <[EMAIL PROTECTED]> writes: >> >> > Huh? So, if vsnprintf() exists, you assume it's C99-compliant? glib >> > has a check for t

Re: progreloc.c - what module?

2007-02-19 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Ben Pfaff wrote: >> The file lib/progreloc.c is not in any module (as far as I can >> tell). > > Yes [1]. This "relocatable" stuff is in a temporary state. Ideally it should > be integrated into autoconf and au

Re: check for C99-compliant snprintf

2007-02-19 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Ben Pfaff wrote on Friday/Saturday: >> The following patch attempts to remedy the situation. > > I cannot see the big picture in this change. You want a snprintf() whose > return value is correct but which still doesn't sup

Re: fix inadequate Windows implementation of tmpfile

2007-02-20 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Ben Pfaff asked: >> I have not yet signed papers for gnulib contributions. Should I? > > Yes, please. Not only for tmpfile, but also for your future contributions. OK. I filled out and emailed request-assign.future to [EMAI

Re: new module 'isnan-nolibm'

2007-02-24 Thread Ben Pfaff
to math_.h, so that there's no need for an additional #include "isnan.h"? -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

Re: new module 'isnan-nolibm'

2007-02-24 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Ben Pfaff asked: >> >* lib/isnan.h: New file. >> Could/should this be merged into math_.h, so that there's no need >> for an additional #include "isnan.h"? > > If many other modules want isnan()

Re: new module 'isnan-nolibm'

2007-02-24 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Ben Pfaff wrote: >> I was under the impression that some platforms were missing isnan >> entirely, so that this was worth more than just "isnan() without >> libm". But I can't confidently name a system that lack

Re: conflicts between pathname.h and dirname.h

2007-02-24 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > Ben Pfaff <[EMAIL PROTECTED]> writes: > >> pathname.h and dirname.h define macros with the same names, but >> conflicting definitions. Should they be merged? > > Well, if you want my biased opinion, pathname should g

Re: conflicts between pathname.h and dirname.h

2007-02-25 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Ben Pfaff wrote: >> Here is my attempt at a minimally invasive resolution of the >> differences > > This is backwards. You introduce a dependency from a simple module to a > complicated module. The purpose of 'filen

Re: first draft of "relocatable" module

2007-02-25 Thread Ben Pfaff
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > * Bruno Haible wrote on Sun, Feb 25, 2007 at 09:23:09PM CET: >> >> > * It looks like Automake support is wanted for >> > automatically defining foo_CFLAGS and foo_LDFLAGS. Any >> > suggestion about what mechanism should be

Re: first draft of "relocatable" module

2007-02-25 Thread Ben Pfaff
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > * Ben Pfaff wrote on Mon, Feb 26, 2007 at 05:41:15AM CET: >> >> The issue is foo_CFLAGS and foo_LDFLAGS need to refer back to the >> directory in which foo is installed. Thus, if foo is in >> bin_PROGR

Re: new module 'isnan-nolibm'

2007-02-27 Thread Ben Pfaff
o complaints so far. -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

Re: first draft of "relocatable" module

2007-03-01 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > For reference, here are the changes that I did, compared to your patch. Looks good. > There is still one problem: The comment at the head of gl_RELOCATABLE > says that it accepts an argument. But the macro uses always $gl_source_base, > not $1. Oops.

Re: first draft of "relocatable" module

2007-03-01 Thread Ben Pfaff
xx are used. Typo: "might not work not" => "might not work on" -- Ben Pfaff [EMAIL PROTECTED] http://benpfaff.org

Re: reorganize relocwrapper dependencies

2007-03-03 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > I think it's useful to separate the object files that end up in a relocatable > program from the object files that make up the relocatable wrapper (on > non-glibc systems). Reasons: [...] > For this reason, AC_LIBOBJ should be avoided here. This implies t

Re: first draft of "relocatable" module

2007-03-04 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > If we recommend to use > > ./configure --enable-relocatable --prefix=/etc > make > make install DESTDIR=/tmp/inst$$ > > then there should not be a security problem any more, right? I tend to just use --prefix=$HOME/inst$$. -- "While the Meli

Re: first draft of "relocatable" module

2007-03-05 Thread Ben Pfaff
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > * Ben Pfaff wrote on Sun, Mar 04, 2007 at 09:29:53PM CET: >> Bruno Haible <[EMAIL PROTECTED]> writes: >> >> > If we recommend to use >> > >> > ./configure --enable-relocatable --prefix=/etc

Re: first draft of "relocatable" module

2007-03-05 Thread Ben Pfaff
Ben Pfaff <[EMAIL PROTECTED]> writes: > I tend to just use --prefix=$HOME/inst$$. and then later: > Here's some suggested wording then: Daniel Jacobowitz <[EMAIL PROTECTED]> writes: > I strongly recommend you use /nonexistent instead of $HOME. If $HOME > is behind

Re: identifiers in header files

2007-03-07 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Paul Eggert wrote: >> > extern long double acosl (long double x); >> >> In proofreading this I noticed that gnulib math.h isn't 100% >> compatible with C99 math.h, since it doesn't allow you to include >> math.h after a perverse macro definition like "

Re: Membership request for group gnulib - GNU portability library

2007-03-12 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: >> any future modules that I contribute (I have a few in mind) > > Of course I'd like to hear details :-) (when you have time for it). The one that comes to mind immediately is to finish up and check in the module for the "trunc" and "round" families of fu

Re: adding bootstrap and bootstrap.conf

2007-03-17 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > GNOME and some other GNU projects use the name 'autogen.sh' for scripts with > this purpose. It's a well-known and self-explaining name. I'd suggest to > rename 'bootstrap' to 'autogen.sh'. One oddity of the name "autogen.sh" is that there is a GNU proje

Re: first draft of "relocatable" module

2007-03-18 Thread Ben Pfaff
Ben Pfaff <[EMAIL PROTECTED]> writes: > I tend to just use --prefix=$HOME/inst$$. and then later: > Here's some suggested wording then: Daniel Jacobowitz <[EMAIL PROTECTED]> writes: > I strongly recommend you use /nonexistent instead of $HOME. If $HOME > is behind

Re: [patch] doc/gnulib.texi typofix

2007-03-19 Thread Ben Pfaff
Thien-Thi Nguyen <[EMAIL PROTECTED]> writes: > ChangeLog entry: > > * doc/gnulib.texi (Out of memory handling): Fix typos. Thanks, I committed those typo fixes. -- "Sanity is not statistical." --George Orwell

Re: support for bitwise comparison of floats

2007-03-25 Thread Ben Pfaff
Eric Blake <[EMAIL PROTECTED]> writes: > According to Bruno Haible on 3/25/2007 9:57 AM: >> Eric Blake wrote: >>> /* return true iff the representation of d needs a leading '-' */ >>> bool >>> is_negative (long double d) >>> { >>> if (d == 0) >>> { >>> union { >>> long double d

Re: new module 'fpieee'

2007-03-25 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > The code needed for isnan() needs to construct a NaN or Inf object. But > doing so leads to a SIGFPE by default on Alpha systems. There's only one > way to get IEEE compliant behaviour of elementary arithmetic operations on > this platform: instruct the c

Re: seekable stdin test failure on OS X

2007-04-02 Thread Ben Pfaff
"Gary V. Vaughan" <[EMAIL PROTECTED]> writes: > So it seems that using fflush(stdin) is probably the wrong thing > to do altogether for a portable application. ISO C89 and C99 say that fflush(stdin) yields undefined behavior, so I'm inclined to agree. -- Ben Pfaff [EMAIL PROTECTED]

Re: seekable stdin test failure on OS X

2007-04-02 Thread Ben Pfaff
Paul Eggert <[EMAIL PROTECTED]> writes: > Ben Pfaff <[EMAIL PROTECTED]> writes: > >> ISO C89 and C99 say that fflush(stdin) yields undefined behavior, >> so I'm inclined to agree. > > Here's how I remember it; I haven't checked the actual

Re: new module 'iconv_open'

2007-04-02 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > What do you gain by knowing this at configure time, rather than at "make" > time, a little later? To proceed with the build, you need to install gperf > anyway. In PSPP, we've been trying to display all the missing prerequisite libraries together at the

iconv_open module need $(srcdir) in Makefile fragment

2007-04-03 Thread Ben Pfaff
nv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h MOSTLYCLEANFILES += iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t -- Ben Pfaff [EMAIL PROTECTED]

Re: iconv_open module need $(srcdir) in Makefile fragment

2007-04-03 Thread Ben Pfaff
Ben Pfaff <[EMAIL PROTECTED]> writes: > Building a program that imports iconv_open with builddir != > srcdir fails due to lack of $(srcdir) in the Makefile fragment. > > OK to commit the following? Oops--the $(srcdir)/ is not necessary in the prerequisites, of course. -- "

Re: new module 'iconv_open'

2007-04-03 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > Ben Pfaff wrote: >> In PSPP, we've been trying to display all the missing >> prerequisite libraries together at the end of a single configure >> run, instead of just failing the configure run after finding the >> f

  1   2   3   4   5   >