ereport(ERROR, (errmsg_internal("%s", errmsg)));
}
+static void
+pg_warning(const char *fmt, va_list ap)
+{
+ char errmsg[PGC_ERRMSG_MAXLEN+1];
+
+ vsnprintf (errmsg, PGC_ERRMSG_MAXLEN, fmt, ap);
+
+ errmsg[PGC_ERRMSG_MAXLEN]='\0';
+ ereport(WARNING, (errmsg_internal("%s", errmsg)));
+}
+
static void
pg_notice(const char *fmt, va_list ap)
{
va_end(ap);
}
+void
+lwpgwarning(const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+
+ pg_warning(fmt, ap);
+
+ va_end(ap);
+}
+
void
lwpgerror(const char *fmt, ...)
{
void lwpgerror(const char *fmt, ...);
void lwpgnotice(const char *fmt, ...);
+void lwpgwarning(const char *fmt, ...);
#endif /* !defined _LWGEOM_PG_H */