mirror of
https://github.com/postgres/postgres.git
synced 2025-12-16 16:42:29 +03:00
more cleanups...of note, appendStringInfo now performs like sprintf(),
where you state a format and arguments. the old behavior required each appendStringInfo to have to have a sprintf() before it if any formatting was required. Also shortened several instances where there were multiple appendStringInfo() calls in a row, doing nothing more then adding one more word to the String, instead of doing them all in one call.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: stringinfo.h,v 1.7 1998/09/01 04:36:21 momjian Exp $
|
||||
* $Id: stringinfo.h,v 1.8 1998/12/14 08:11:17 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -42,6 +42,6 @@ extern StringInfo makeStringInfo(void);
|
||||
* appendStringInfo
|
||||
* similar to 'strcat' but reallocates more space if necessary...
|
||||
*/
|
||||
extern void appendStringInfo(StringInfo str, char *buffer);
|
||||
extern void appendStringInfo(StringInfo str, const char *fmt,...);
|
||||
|
||||
#endif /* STRINGINFO_H */
|
||||
|
||||
Reference in New Issue
Block a user