diff th_string.h @ 299:0311f139fcf6

Refactor how various printf modifier flags etc. are handled. Still needs work and refining.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 22 Feb 2016 18:31:11 +0200
parents 15e2ee6c7bfc
children 2c87abec62db
line wrap: on
line diff
--- a/th_string.h	Mon Feb 22 18:29:53 2016 +0200
+++ b/th_string.h	Mon Feb 22 18:31:11 2016 +0200
@@ -48,6 +48,19 @@
 };
 
 
+enum
+{
+    TH_PF_NONE  = 0x00,
+    TH_PF_ALT   = 0x01,
+    TH_PF_SIGN  = 0x02,
+    TH_PF_SPACE = 0x04,
+    TH_PF_GROUP = 0x08,
+
+    TH_PF_ZERO  = 0x10,
+    TH_PF_LEFT  = 0x20,
+};
+
+
 typedef struct
 {
     char *buf;