*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.15 1999/06/19 04:54:13 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.16 1999/06/19 05:00:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
portals = newp;
else
libpq_raise(&PortalError,
- varargform("Cannot alloc more memory in portals_realloc"));
+ vararg_format("Cannot alloc more memory in portals_realloc"));
for (i = oldsize; i < portals_array_size; i++)
portals[i] = (PortalEntry *) NULL;
caddr_t addr;
if (size <= 0)
- libpq_raise(&MemoryError, varargform("Invalid argument to pbuf_alloc()."));
+ libpq_raise(&MemoryError, vararg_format("Invalid argument to pbuf_alloc()."));
addr = (caddr_t) palloc(size);
if (addr == (caddr_t) NULL)
- libpq_raise(&MemoryError, varargform("Cannot Allocate space."));
+ libpq_raise(&MemoryError, vararg_format("Cannot Allocate space."));
return addr;
}
if (pointer)
pfree(pointer);
else
- libpq_raise(&MemoryError, varargform("Tried to free NULL memory pointer"));
+ libpq_raise(&MemoryError, vararg_format("Tried to free NULL memory pointer"));
}
int i;
if ((i = pbuf_getIndex(pname)) == -1)
- libpq_raise(&PortalError, varargform("Portal %s does not exist.", pname));
+ libpq_raise(&PortalError, vararg_format("Portal %s does not exist.", pname));
pbuf_freePortal(portals[i]->portal);
pbuf_freeEntry(i);
if (group == NULL)
libpq_raise(&PortalError,
- varargform("Group index %d out of bound.", group_index));
+ vararg_format("Group index %d out of bound.", group_index));
return group;
}
return i;
libpq_raise(&PortalError,
- varargform("Field-name %s does not exist.", field_name));
+ vararg_format("Field-name %s does not exist.", field_name));
/* not reached, here to make compiler happy */
return 0;
{
if (field_number < 0 || field_number >= group->no_fields)
libpq_raise(&PortalError,
- varargform("Field number %d out of bound.", field_number));
+ vararg_format("Field number %d out of bound.", field_number));
}
/* --------------------------------
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/format.c,v 1.12 1999/06/19 04:54:19 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/format.c,v 1.13 1999/06/19 05:00:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* ----------------
- * varargform
+ * vararg_format
* ----------------
*/
char *
-varargform(const char *fmt,...)
+vararg_format(const char *fmt,...)
{
va_list args;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.22 1999/06/19 04:54:19 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.23 1999/06/19 05:00:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
static char *
PortalVariableMemoryGetName(PortalVariableMemory this)
{
- return varargform("%s-var", PortalVariableMemoryGetPortal(this)->name);
+ return vararg_format("%s-var", PortalVariableMemoryGetPortal(this)->name);
}
/* ----------------
static char *
PortalHeapMemoryGetName(PortalHeapMemory this)
{
- return varargform("%s-heap", PortalHeapMemoryGetPortal(this)->name);
+ return vararg_format("%s-heap", PortalHeapMemoryGetPortal(this)->name);
}
/* ----------------
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.56 1999/06/19 04:54:23 momjian Exp $
+ * $Id: c.h,v 1.57 1999/06/19 05:00:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define LogTrap(condition, exception, printArgs) \
{ if ((assert_enabled) && (condition)) \
ExceptionalCondition(CppAsString(condition), &(exception), \
- varargform printArgs, __FILE__, __LINE__); }
+ vararg_format printArgs, __FILE__, __LINE__); }
/*
* LogTrapMacro is the same as LogTrap but it's intended for use in macros:
((bool) ((! assert_enabled) || (! condition) || \
(ExceptionalCondition(CppAsString(condition), \
&(exception), \
- varargform printArgs, __FILE__, __LINE__))))
+ vararg_format printArgs, __FILE__, __LINE__))))
#ifndef USE_ASSERT_CHECKING
#define LogAssert(condition, printArgs)
/* ----------------
- * varargform is used by assert and the exception handling stuff
+ * vararg_format is used by assert and the exception handling stuff
* ----------------
*/
-extern char *varargform(const char *fmt,...);
+extern char *vararg_format(const char *fmt,...);