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

◆ append_stringbuffer()

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

Definition at line 785 of file raster2pgsql.c.

785 {
786 buffer->length++;
787
788 buffer->line = rtrealloc(buffer->line, sizeof(char *) * buffer->length);
789 if (buffer->line == NULL) {
790 rterror(_("append_stringbuffer: Could not allocate memory for appending string to buffer"));
791 return 0;
792 }
793
794 buffer->line[buffer->length - 1] = (char *) str;
795
796 return 1;
797}
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
Definition rt_context.c:199
void * rtrealloc(void *mem, size_t size)
Definition rt_context.c:179
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: