* lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
[gnulib.git] / ChangeLog
index b3cc38c..14955b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,204 @@
+2006-11-01  Eric Blake  <ebb9@byu.net>
+
+       * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
+
+       * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
+
+2006-10-29  Bruno Haible  <bruno@clisp.org>
+
+       Make it compile in C++ mode.
+       * lib/full-write.c (full_rw): Add a cast.
+
+2006-11-01  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
+       be POSIX compliant.
+       Reported by Roger Persson <perrog@gmail.com>.
+
+2006-11-01  Eric Blake  <ebb9@byu.net>
+
+       * lib/getopt_.h: Fix comments.
+
+2006-10-31  Eric Blake  <ebb9@byu.net>
+
+       * modules/tmpdir (Depends-on): Add sys_stat.
+       * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
+       * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
+       * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
+       * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
+       tempname.
+
+2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Avoid some C++ diagnostics reported by Bruno Haible.
+       * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
+       xmalloc.
+       (quotearg_alloc): Use xcharalloc rather than xmalloc.
+       (struct slotvec): Move to top level.
+       (quotearg_n_options): Rewrite to avoid xmalloc.
+       * lib/xalloc.h (xcharalloc): New function.
+       * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
+       [defined __cplusplus]: Add function template that provides result
+       type propagation.  This part of the change is from Bruno Haible.
+
+2006-10-29  Bruno Haible  <bruno@clisp.org>
+
+       Make it compile in C++ mode.
+       * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
+       * lib/strnlen1.c (strnlen1): Cast memchr result.
+       * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
+       * lib/clean-temp.c (string_equals, string_hash): Add casts.
+       (create_temp_dir): Rename local variable 'template'.
+       (compile_csharp_using_sscli): Add cast.
+       * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
+       * lib/findprog.c (find_in_path): Likewise.
+       * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
+       * lib/wait-process.c (register_slave_subprocess): Likewise.
+
+2006-10-22  Bruno Haible  <bruno@clisp.org>
+
+       * modules/tsearch: New file.
+       * lib/tsearch.h: New file.
+       * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
+       * m4/tsearch.m4: New file.
+       * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
+
+2006-10-29  Eric Blake  <ebb9@byu.net>
+
+       * lib/arcfour.c: Assume config.h.
+       * lib/arctwo.c: Likewise.
+       * lib/base64.c: Likewise.
+       * lib/check-version.c: Likewise.
+       * lib/crc.c: Likewise.
+       * lib/des.c: Likewise.
+       * lib/gc-gnulib.c: Likewise.
+       * lib/gc-libgcrypt.c: Likewise.
+       * lib/gc-pbkdf2-sha1.c: Likewise.
+       * lib/getaddrinfo.c: Likewise.
+       * lib/getdelim.c: Likewise.
+       * lib/getline.c: Likewise.
+       * lib/hmac-md5.c: Likewise.
+       * lib/hmac-sha1.c: Likewise.
+       * lib/iconvme.c: Likewise.
+       * lib/md2.c: Likewise.
+       * lib/md4.c: Likewise.
+       * lib/memxor.c: Likewise.
+       * lib/read-file.c: Likewise.
+       * lib/readline.c: Likewise.
+       * lib/rijndael-alg-fst.c: Likewise.
+       * lib/rijndael-api-fst.c: Likewise.
+       * lib/xgetdomainname.c: Likewise.
+
+2006-10-28  Eric Blake  <ebb9@byu.net>
+
+       * lib/xstrndup.c: Assume config.h.
+
+2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
+       stat-macros.h is now for our own macros, whereas stat_h is for
+       macros in the <sys/stat.h> name space.
+       * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
+       (STAT_MACROS_H): Remove.
+       (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
+       (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
+       (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
+       (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
+       (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
+       (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
+       Move these macros to ...
+       * lib/stat_.h: here.  Don't include stat-macros.h.
+       * lib/canonicalize.c: Don't include stat-macros.h.
+       * lib/chown.c: Likewise.
+       * lib/euidaccess.c: Likewise.
+       * lib/file-type.c: Likewise.
+       * lib/filemode.c: Likewise.
+       * lib/glob.c: Likewise.
+       * lib/isapipe.c: Likewise.
+       * lib/lchown.c: Likewise.
+       * lib/lstat.c: Likewise.
+       * lib/mkdir-p.c: Likewise.
+       * lib/rmdir.c: Likewise.
+       * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
+       * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
+       unless mkdir isn't declared, to speed up 'configure'.
+       Always create sys/stat.h, since it's unlikely any real sys/stat.h
+       would define all the S_* symbols.
+       * modules/canonicalize (Depends-on):
+       Depend on sys_stat, not stat-macros.
+       * modules/chown: Likewise.
+       * modules/euidaccess: Likewise.
+       * modules/filemode: Likewise.
+       * modules/file-type: Likewise.
+       * modules/glob: Likewise.
+       * modules/isapipe: Likewise.
+       * modules/lchown: Likewise.
+       * modules/lstat: Likewise.
+       * modules/mkancesdirs: Likewise.
+       * modules/rmdir: Likewise.
+       * modules/mkdir-p (Depends-on): Also depend on sys_stat.
+       * modules/modechange: Likewise.
+       * modules/stat-macros (Files): Remove m4/stat-macros.m4.
+       (configure.ac): Remove gl_STAT_MACROS.
+       * modules/sys_stat (Depends-on): Remove stat-macros.
+
+2006-10-27  Bruno Haible  <bruno@clisp.org>
+
+       * m4/signed.m4: Remove file.
+       * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
+       invocation.
+       * modules/vasnprintf (Files): Remove m4/signed.m4.
+
+2006-10-27  Bruno Haible  <bruno@clisp.org>
+
+       Update to GNU gettext 0.16.
+       * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
+       m4/inttypes-h.m4, m4/signed.m4.
+       * m4/gettext.m4: Update to GNU gettext 0.16.
+       * m4/intl.m4: New file, from GNU gettext.
+       * m4/intldir.m4: New file, from GNU gettext.
+       * config/srclist.txt: Update
+
+2006-10-27  Eric Blake  <ebb9@byu.net>
+
+       * MODULES.html.sh: Document tempname.
+       * modules/mkstemp (Depends-on): Add tempname, and drop transitive
+       dependencies.
+       (Files): Move lib/tempname.c...
+       * modules/tempname: ...to this new module.
+       * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
+       (gl_PREREQ_TEMPNAME): Move...
+       * m4/tempname.m4: ...to this new file.
+       * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
+       * modules/sys_stat (Depends-on): Add stat-macros.
+       * lib/stat_.h (includes): Pick up stat macros.
+       * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
+       if stat macros are broken.
+       * lib/tempname.c (includes): No need to include "stat-macros.h".
+       (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
+       (direxists, __path_search) [!_LIBC]: Don't compile these in
+       gnulib; the tmpdir module covers that.
+       * lib/tempname.h: New file.
+
+2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * COPYING: Explain how gnulib-tool converts licence headers.
+       Almost all wording by Eric Blake.
+
+2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/mbchar.h (is_basic_table): Make read-only.
+       * lib/mbchar.c (is_basic_table): Likewise.
+       Reported by John Darrington.
+
+2006-10-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/progname.h (set_program_name): Undefine before defining.
+
 2006-10-25  Bruno Haible  <bruno@clisp.org>
 
        * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
-       false for PGI C++ and Sun C++ compilers.
+       false for non-gcc C++ compilers.
        Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
 
 2006-10-24  Bruno Haible  <bruno@clisp.org>
 
        * lib/basename.c (base_name): Add an assertion.
 
-2000-07-23  Bruno Haible  <clisp.cons.org>
+2000-07-23  Bruno Haible  <haible@clisp.cons.org>
 
        * lib/quotearg.c: When the system forces us to redefine mbstate_t,
        shadow its mbsinit function.