Index: trunk/psLib/src/sys/psString.h
===================================================================
--- trunk/psLib/src/sys/psString.h	(revision 31152)
+++ trunk/psLib/src/sys/psString.h	(revision 40551)
@@ -40,4 +40,17 @@
 #define PS_FILE_LINE p_psFileLine(__FILE__,__LINE__)
 
+// gcc (since 8.1) warns if the output may be truncated by snprint.
+// since that is sometimes a desired behavior, this version of snprintf
+// is defined to fool the compiler about this warning:
+// the following NOOP function is used to fool the compiler
+// see snprintf_nowarn in ohana.h
+#define ps_snprintf_nowarn(...) (snprintf(__VA_ARGS__) < 0 ? psNOOP() : 0)
+void psNOOP (void);
+
+// some constants to use in snprintf statements and variable definitions to ensure
+// consistency
+# define PS_SMALLWORD 16
+# define PS_BIGWORD 128
+
 /** Allocates a new psString.
  *
