01ca36af91 
								
							 
						 
						
							
							
								
								xvasprintf.c: New file.  
							
							... 
							
							
							
							* xvasprintf.c: New file.
	* vprintf-support.h: Likewise.
	* vprintf-support.c: Likewise.
	* Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
	(REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
	(vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
	(vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
	* functions.texi: Regenerate.
	* vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.
include/ChangeLog:
	* libiberty.h (xvasprintf): Declare.
libcpp/ChangeLog:
	* directives.c (cpp_define_formatted): Use xvasprintf.
Co-Authored-By: Ben Elliston <bje@au.ibm.com>
Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
From-SVN: r218618 
							
						 
						
							2014-12-11 09:15:37 +01:00  
				
					
						
							
							
								 
						
							
								d2d21de9dc 
								
							 
						 
						
							
							
								
								include  
							
							... 
							
							
							
							* ansidecl.h (ANSI_PROTOTYPES, PTRCONST, LONG_DOUBLE, PARAMS)
	(VPARAMS, VA_START, VA_OPEN, VA_CLOSE, VA_FIXEDARG, CONST)
	(VOLATILE, SIGNED, PROTO, EXFUN, DEFUN, DEFUN_VOID, AND, DOTS)
	(NOARGS): Don't define.
	* libiberty.h (expandargv, writeargv): Don't use PARAMS.
libiberty
	* _doprint.c (checkit): Use stdarg, not VA_* macros.
	* asprintf.c (asprintf): Use stdarg, not VA_* macros.
	* concat.c (concat_length, concat_copy, concat_copy2, concat)
	(reconcat): Use stdarg, not VA_* macros.
	* snprintf.c (snprintf): Use stdarg, not VA_* macros.
	* vasprintf.c (checkit): Use stdarg, not VA_* macros.
	* vsnprintf.c (checkit): Use stdarg, not VA_* macros.
From-SVN: r206881 
							
						 
						
							2014-01-21 15:09:10 +00:00  
				
					
						
							
							
								 
						
							
								996c0cb05f 
								
							 
						 
						
							
							
								
								libiberty: documentation markup and order fixes.  
							
							... 
							
							
							
							libiberty/:
	* splay-tree.c: Escape wrapping newlines in texinfo markup
	with '@', to fix function declaration output rendering.
	* gather-docs: Relax and improve macro name matching to actually
	match all current names and to allow input line wrapping.
	* bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
	hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
	memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
	pexecute.txh, random.c, setenv.c, setproctitle.c,
	simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
	strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
	Wrap long texinfo input lines.
	* functions.texi: Regenerate.
From-SVN: r169783 
							
						 
						
							2011-02-03 07:23:20 +00:00  
				
					
						
							
							
								 
						
							
								ee58dffdbc 
								
							 
						 
						
							
							
								
								Update the address and phone number of the FSF organization.  
							
							... 
							
							
							
							From-SVN: r99519 
							
						 
						
							2005-05-10 15:33:18 +00:00  
				
					
						
							
							
								 
						
							
								7a17ef5e63 
								
							 
						 
						
							
							
								
								ternary.h: Don't use PARAMS anymore.  
							
							... 
							
							
							
							include/
2005-03-27  Gabriel Dos Reis  <gdr@integreable-solutions.net>
        * ternary.h: Don't use PARAMS anymore.
libiberty/
2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
        Convert libiberty to use ISO C prototype style 6/n.
        * strerror.c (init_error_tables, errno_max, strerror,
        strerrno,
        strtoerrno, main): Use ISO C prototype style.
        * strncasecmp.c (strncasecmp): Likewise.
        * strncmp.c (strncmp): Likewise.
        * strndup.c (strndup): Likewise.
        * strrchr.c (strrchr): Likewise.
        * strsignal.c (init_signal_tables, signo_max, strsignal,
        strsigno, strtosigno, psignal, main): Likewise.
        * strstr.c (strstr): Likewise.
        * strtod.c (strtod, atof): Likewise.
        * strtol.c (strtol): Likewise.
        * strtoul.c (strtoul): Likewise.
        * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
        ternary_recursivesearch): Likewise.
        * tmpnam.c (tmpnam): Likewise.
        * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
        * vasprintf.c (int_vasprintf, vasprintf, checkit, main):
        Likewise.
        * vfork.c (vfork): Likewise.
        * vfprintf.c (vfprintf): Likewise.
        * vprintf.c (vprintf): Likewise.
        * vsnprintf.c (vsnprintf, checkit, main): Likewise.
        * vsprintf.c (vsprintf): Likewise.
        * waitpid.c (waitpid): Likewise.
        * xatexit.c (xatexit, xatexit_cleanup): Likewise.
        * xexit.c (xexit): Likewise.
        * xmalloc.c (xmalloc_set_program_name, xmalloc_failed,
        xmalloc,
        xcalloc, xrealloc): Likewise.
        * xmemdup.c (xmemdup): Likewise.
        * xstrdup.c (xstrdup): Likewise.
        * xstrerror.c (xstrerror): Likewise.
        * xstrndup.c (xstrndup): Likewise.
From-SVN: r97122 
							
						 
						
							2005-03-28 01:28:01 +00:00  
				
					
						
							
							
								 
						
							
								626ff3dea7 
								
							 
						 
						
							
							
								
								* vasprintf.c: Accept __va_copy in addition to va_copy.  
							
							... 
							
							
							
							From-SVN: r87203 
							
						 
						
							2004-09-08 21:29:42 +00:00  
				
					
						
							
							
								 
						
							
								27eb8ab145 
								
							 
						 
						
							
							
								
								Jan Hubicka <jh@suse.cz>  
							
							... 
							
							
							
							Jan Hubicka <jh@suse.cz>
	* vasprintf.c (int_vasprintf): Pass va_list by value.
	Use va_copy for copying va_list.
	(vasprintf): Pass va_list by value.
From-SVN: r73098 
							
						 
						
							2003-10-30 20:18:13 +00:00  
				
					
						
							
							
								 
						
							
								8d398258b5 
								
							 
						 
						
							
							
								
								asprintf.c: Change comment to note that -1 is returned upon error.  
							
							... 
							
							
							
							vasprintf.c: Likewise. (vasprintf): Return -1 upon error.
functions.texi: Document changes to asprintf and vasprintf.
From-SVN: r67395 
							
						 
						
							2003-06-03 18:19:17 +00:00  
				
					
						
							
							
								 
						
							
								f08b7eee21 
								
							 
						 
						
							
							
								
								cp-demangle.c (demangling_new): Cast 0 to enum.  
							
							... 
							
							
							
							* cp-demangle.c (demangling_new): Cast 0 to enum.
	(demangle_char): Cast return of strdup to char *.
	(is_gnu_v3_mangled_ctor): Cast 0 to enum.
	(is_gnu_v3_mangled_dtor): Likewise.
	* cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
	(work_stuff_copy_to_from): Cast return of xmalloc to char **.
	* fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
	* md5.c (md5_process_bytes): Cast results back to const void *.
	(md5_process_block): Add cast to const md5_uint32 *.
	* regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
	* safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
	unsigned short.
	* splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
	to void *.
	* vasprintf.c (int_vasprintf): Cast return of malloc to char *.
From-SVN: r57330 
							
						 
						
							2002-09-20 02:40:51 +00:00  
				
					
						
							
							
								 
						
							
								5bed56d982 
								
							 
						 
						
							
							
								
								argv.c, [...]: Improve manual formatting.  
							
							... 
							
							
							
							* argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
mkstemps.c, pexecute.c, random.c, strsitnal.c, vasprintf.c:
Improve manual formatting.
* functions.texi: Regenerate.
From-SVN: r46323 
							
						 
						
							2001-10-17 17:15:41 -04:00  
				
					
						
							
							
								 
						
							
								aac04c15d7 
								
							 
						 
						
							
							
								
								Makefile.in (TEXIFILES): Add fnmatch.txh.  
							
							... 
							
							
							
							* Makefile.in (TEXIFILES): Add fnmatch.txh.
(maint-undoc): New.
maint-tool: Add "undoc" tool.
* alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
documentation.
* fnmatch.txh: New.
* functions.texi: Regenerate.
From-SVN: r46274 
							
						 
						
							2001-10-15 22:50:13 -04:00  
				
					
						
							
							
								 
						
							
								7a98d9b248 
								
							 
						 
						
							
							
								
								asprintf.c: Don't define USE_STDARG.  
							
							... 
							
							
							
							* asprintf.c: Don't define USE_STDARG.  Use VPARAMS, VA_OPEN,
	VA_FIXEDARG & VA_CLOSE.
	* vasprintf.c: Check HAVE_STRING_H when including string.h.
	(checkit): Delete redundant prototype.  Add ATTRIBUTE_PRINTF_1.
	Use VA_OPEN, VA_FIXEDARG & VA_CLOSE.  Free allocated string.
From-SVN: r45382 
							
						 
						
							2001-09-04 18:19:18 +00:00  
				
					
						
							
							
								 
						
							
								838f8562e6 
								
							 
						 
						
							
							
								
								Warning fixes:  
							
							... 
							
							
							
							* cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
	* setenv.c (setenv): Initialize variable `ep'.
	* sigsetmask.c (abort): Prototype.
	* vasprintf.c: Include config.h.  Check ANSI_PROTOTYPES, not
	__STDC__ for stdarg.h include.
	(int_vasprintf): Prototype.
	(checkit): Prototype.  Use VPARAMS/ANSI_PROTOTYPES/VA_START in
	definition.  Cast `global_total_width' in comparison.
	(main): Prototype.  Return a value.
	* vfork.c (fork): Prototype.
	* xexit.c: Include config.h.
From-SVN: r35178 
							
						 
						
							2000-07-21 20:08:36 +00:00  
				
					
						
							
							
								 
						
							
								0fadedb2df 
								
							 
						 
						
							
							
								
								vasprintf.c (int_vasprintf): Don't re-read the format character as this mishandles strings like '%%s'.  
							
							... 
							
							
							
							* vasprintf.c (int_vasprintf): Don't re-read the format character
as this mishandles strings like '%%s'.
From-SVN: r31102 
							
						 
						
							1999-12-27 21:38:06 +00:00  
				
					
						
							
							
								 
						
							
								96e88994f8 
								
							 
						 
						
							
							
								
								mkstemp.c: Include config.h even when not IN_GCC.  
							
							... 
							
							
							
							* mkstemp.c: Include config.h even when not IN_GCC.  Wrap header
       inclusions inside HAVE_*_H macros.  Include ansidecl.h when not
       IN_GCC.
       * vasprintf.c: Include stdarg.h/varargs.h first.
       * vprintf.c: Likewise.
From-SVN: r22314 
							
						 
						
							1998-09-07 20:37:13 +00:00  
				
					
						
							
							
								 
						
							
								5890bc92d4 
								
							 
						 
						
							
							
								
								cplus-dem.c (gnu_special): Don't get confused by .<digits> strings that are not actually lengths.  
							
							... 
							
							
							
							* cplus-dem.c (gnu_special): Don't get confused by .<digits>
	strings that are not actually lengths.
	* config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
	since it gets built automatically
	* vasprintf.c (int_vasprintf): Increase buffer size for float/double
	values.
From-SVN: r18171 
							
						 
						
							1998-02-22 09:53:40 -07:00  
				
					
						
							
							
								 
						
							
								19ddc834bc 
								
							 
						 
						
							
							
								
								cplus-dem.c (demangle_signature): Don't look for return types on constructors.  
							
							... 
							
							
							
							Tue Oct 14 12:01:00 1997  Mark Mitchell  <mmitchell@usa.net>
	* cplus-dem.c (demangle_signature): Don't look for return types on
	constructors.  Handle member template constructors.
and update from devo.
From-SVN: r15901 
							
						 
						
							1997-10-14 15:10:45 -04:00  
				
					
						
							
							
								 
						
							
								6599da043e 
								
							 
						 
						
							
							
								
								Initial revision  
							
							... 
							
							
							
							From-SVN: r14877 
							
						 
						
							1997-08-21 18:57:35 -04:00