version 1.4.56b
[polyglot.git] / util.h
diff --git a/util.h b/util.h
index 4eee73a..3855a82 100644 (file)
--- a/util.h
+++ b/util.h
         }                                                                \\r
     }                                                                    \\r
 \r
+#define TO_BOOL(string) ((my_string_case_equal(string,"false") ||   \\r
+                          my_string_equal(string,"0"))?FALSE:TRUE)\r
 \r
-\r
+#define IS_BOOL(string) (my_string_case_equal(string,"false")||     \\r
+                         my_string_case_equal(string,"true") ||     \\r
+                         my_string_case_equal(string,"1")    ||     \\r
+                         my_string_case_equal(string,"0"))\r
 // types\r
 \r
 typedef signed char sint8;\r
@@ -173,6 +178,15 @@ extern double my_timer_elapsed_real (const my_timer_t * timer);
 \r
 extern char * my_error();\r
 \r
+extern void my_dequote              (char *out, \r
+                                    const char *in, \r
+                                    const char *special);\r
+extern void my_quote                (char *out, \r
+                                    const char *in, \r
+                                    const char *special);\r
+\r
+extern void my_sleep                (int msec);\r
+\r
 #endif // !defined UTIL_H\r
 \r
 // end of util.h\r