PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ append_stringbuffer()

static int append_stringbuffer ( STRINGBUFFER buffer,
const char *  str 
)
static

Definition at line 810 of file raster2pgsql.c.

References _, stringbuffer_t::length, stringbuffer_t::line, rterror(), and rtrealloc().

Referenced by append_sql_to_buffer(), build_overview(), and convert_raster().

810  {
811  buffer->length++;
812 
813  buffer->line = rtrealloc(buffer->line, sizeof(char *) * buffer->length);
814  if (buffer->line == NULL) {
815  rterror(_("append_stringbuffer: Could not allocate memory for appending string to buffer"));
816  return 0;
817  }
818 
819  buffer->line[buffer->length - 1] = (char *) str;
820 
821  return 1;
822 }
#define _(String)
Definition: shpcommon.h:24
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
Definition: rt_context.c:199
uint32_t length
Definition: raster2pgsql.h:196
void * rtrealloc(void *mem, size_t size)
Definition: rt_context.c:179
Here is the call graph for this function:
Here is the caller graph for this function: