"Tin"
};
-/*
- * Default lwnotice/lwerror handlers
- *
- * Since variadic functions cannot pass their parameters directly, we need
- * wrappers for these functions to convert the arguments into a va_list
- * structure.
- */
-
-void
-lwnotice(const char *fmt, ...)
-{
- va_list ap;
-
- va_start(ap, fmt);
-
- /* Call the supplied function */
- (*lwnotice_var)(fmt, ap);
-
- va_end(ap);
-}
-
-void
-lwerror(const char *fmt, ...)
-{
- va_list ap;
-
- va_start(ap, fmt);
-
- /* Call the supplied function */
- (*lwerror_var)(fmt, ap);
-
- va_end(ap);
-}
-
-void
-lwdebug(int level, const char *fmt, ...)
-{
- va_list ap;
-
- va_start(ap, fmt);
-
- /* Call the supplied function */
- (*lwdebug_var)(level, fmt, ap);
-
- va_end(ap);
-}
-
/*
* Default allocators
*
return ret;
}
+/*
+ * Default lwnotice/lwerror handlers
+ *
+ * Since variadic functions cannot pass their parameters directly, we need
+ * wrappers for these functions to convert the arguments into a va_list
+ * structure.
+ */
+
static void
default_noticereporter(const char *fmt, va_list ap)
{
if ( debuglogger ) lwdebug_var = debuglogger;
}
+void
+lwnotice(const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+
+ /* Call the supplied function */
+ (*lwnotice_var)(fmt, ap);
+
+ va_end(ap);
+}
+
+void
+lwerror(const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+
+ /* Call the supplied function */
+ (*lwerror_var)(fmt, ap);
+
+ va_end(ap);
+}
+
+void
+lwdebug(int level, const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+
+ /* Call the supplied function */
+ (*lwdebug_var)(level, fmt, ap);
+
+ va_end(ap);
+}
+
+
+
const char*
lwtype_name(uint8_t type)
{
( srid % ( SRID_MAXIMUM - SRID_USER_MAXIMUM - 1 ) );
lwnotice("SRID value %d > SRID_MAXIMUM converted to %d", srid, newsrid);
}
-
+
return newsrid;
}