PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ append_stringbuffer()

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

Definition at line 797 of file raster2pgsql.c.

797 {
798 buffer->length++;
799
800 buffer->line = rtrealloc(buffer->line, sizeof(char *) * buffer->length);
801 if (buffer->line == NULL) {
802 rterror(_("append_stringbuffer: Could not allocate memory for appending string to buffer"));
803 return 0;
804 }
805
806 buffer->line[buffer->length - 1] = (char *) str;
807
808 return 1;
809}
void rterror(const char *fmt,...) __attribute__((format(printf
Wrappers used for reporting errors and info.
void * rtrealloc(void *mem, size_t size)
Definition rt_context.c:199
Datum buffer(PG_FUNCTION_ARGS)
#define str(s)
#define _(String)
Definition shpcommon.h:24

References _, buffer(), rterror(), rtrealloc(), and str.

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

Here is the call graph for this function:
Here is the caller graph for this function: