]> git.draconx.ca Git - cdecl99.git/blobdiff - t/test.h
Port to use getline.h from dxcommon.
[cdecl99.git] / t / test.h
index 32b4e8cb959fdf4600eeddb779c104089d53e6be..ad8547f4aab2e5c621e75bef5c825510e41e1735 100644 (file)
--- a/t/test.h
+++ b/t/test.h
@@ -36,6 +36,8 @@
  */
 #if HAVE_UNSIGNED_LONG_LONG_INT
 typedef unsigned long long test_uintmax;
+#elif HAVE_UNSIGNED___INT64
+typedef unsigned __int64 test_uintmax;
 #else
 typedef unsigned long test_uintmax;
 #endif
@@ -51,6 +53,8 @@ void print_error(const char *fmt, ...);
 void *malloc_nofail(size_t size);
 void *realloc_nofail(void *ptr, size_t size);
 
+int test_getline(char **linebuf, size_t *n);
+
 bool test_strtoumax(test_uintmax *out, const char *s, test_uintmax limit);
 
 static inline bool test_strtoul(unsigned long *val, const char *str)